+ Reply to Thread
Results 1 to 6 of 6

Thread: XP Installs with "User" Privileges

  1. #1

    Default XP Installs with "User" Privileges

    I have a package I would like to deploy to computers "locked down" under active directory in Windows XP. Currently, I have 62 computers to maintain but expect that will increase to 180+. To install, I have to log onto each computer as administrator and install the package. I would like to be able to allow the users to install the package when advised it is available. All files will be written to folders where the user has rights, and no files will be registered or written to the Windows/System32 folder.

    Currently, regardless of what I do, I get a window that says I have to have administrative rights to run the install. I have tried setting the "RequestedExecutionLevel" variable to "asInvoker" or "HighestAvailable" to no avail (it is noted in the docs that this is for Vista only).

    I have disabled every feature within SetupBuilder that I can think of that would require administrative rights, but I still get the error message.

    Is there a way to create an installation package for a standard user to self-install?
    Attached Images Attached Images  
    Rob Mikkelsen

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: XP Installs with "User" Privileges

    Rob,

    You have enabled the "User Privilege Requirements" check in your project.

    See Requirements Visualizer -> User Privilege Requirements -> Administrator Rights. You have marked this checkbox.

    The above message "You must be logged in as administrator when installing this program" is displayed if you have enabled Administrator Rights checking and the installer is running on an account that does not have administrator rights.

    Does this help?

    Friedrich

  3. #3

    Default Re: XP Installs with "User" Privileges

    Friedrich,

    That did the trick. I feel like such a user! It didn't show up on the summary so I missed it completely. Now, for the next trick. Where is the %PRIVILEGES% variable defined? I would like to install and register some programs if the user is an administrator and bypass them otherwise. I have defined a variable switch at the top of the script but that requires that I keep two installation packages current. I would prefer to have the system auto-detect.

    I set up a dialog box at the top of the script so I could see the settings of the %PRIVILEGES% variable but received an error that the variable was undefined. I attempted to display the value in {PRIVILEGES} but the system displayed {PRIVILEGES} literally. There is not much in the help or the manual that describes it.

    I love this program - it is just so flexible. It will reduce my support requirements immensely!
    Rob Mikkelsen

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: XP Installs with "User" Privileges

    Hi Rob,
    That did the trick. I feel like such a user! It didn't show up on the summary so I missed it completely. Now, for the next trick. Where is the %PRIVILEGES% variable defined? I would like to install and register some programs if the user is an administrator and bypass them otherwise. I have defined a variable switch at the top of the script but that requires that I keep two installation packages current. I would prefer to have the system auto-detect.


    You can do:

    If %PRIVILEGES% Equals "Admin" Then
    Display Message Box "Yor are the Admin" -- ""
    End

    The installer automatically defines the %PRIVILEGES% variable at startup. I set up a dialog box at the top of the script so I could see the settings of the %PRIVILEGES% variable but received an error that the variable was undefined. I attempted to display the value in {PRIVILEGES} but the system displayed {PRIVILEGES} literally. There is not much in the help or the manual that describes it.
    There is no need to define that variable. It automatically holds one of the following values: Guest, User, Power, Admin

    And you can do something like the following:

    If %_SB_INSTALLERFLAG% Equals "1" on Position "$SB_ADMINISTRATORFLAG$" Then
    Display Message Box "You have Admin privileges" -- "Admin Mode"
    End
    I love this program - it is just so flexible. It will reduce my support requirements immensely!
    Thank you so much for your kind words

    Friedrich

  5. #5

    Default Re: XP Installs with "User" Privileges

    Friedrich,

    That worked just fine. Back to one installation baseline package that works with limited rights (with the exception of registering a few COM DLLs that were previously installed) or with full admin rights which will install everything.

    Fantastic! Thanks!

    Rob
    Rob Mikkelsen

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: XP Installs with "User" Privileges

    Rob,

    Great!!! You are welcome

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •