Community Forums
Results 1 to 4 of 4

Thread: Is it possible to force "Run as Administrator"

  1. #1
    Join Date
    Sep 2012
    Posts
    1

    Is it possible to force "Run as Administrator"

    When I send an installer package (Single disk image, Setup.EXE) to our customers I have to tell them to right-click on the Setup.EXE and select "Run as administrator." Failure on their part to do this (e.g., by simply double-clicking the Setup.EXE and defaulting to "Open") causes certain files included in the installation to be incorrectly assigned privileges, which in turn leads to issues when running our installed software. Is there a way to build our installation package so that whatever it is that Windows does when the end-user selects "Run as administrator" is done by default with a double-click of Setup.EXE?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    2,074
    What option is selected in the Required Execution Level setting? (To find this setting, open the Releases view, select the release that you are building, and on the Setup.exe tab, you'll see this setting.)

    It sounds like you should have Administrator selected.

  3. #3
    Join Date
    Mar 2014
    Posts
    1
    Quote Originally Posted by DebbieL View Post
    What option is selected in the Required Execution Level setting? (To find this setting, open the Releases view, select the release that you are building, and on the Setup.exe tab, you'll see this setting.)

    It sounds like you should have Administrator selected.
    I have exactly the same problem, and I adjust the settings "Required Execution Level" as Administrator. But still my customer can double click on setup.exe and can run it without asking administrator stuff. How could that possible?

  4. #4
    Join Date
    Jan 2004
    Posts
    2,074
    The only case I know of is if the user is running as a limited user, and is on a machine with disabled UAC. In this case, there is no way to elevate, and I believe it lets you run things without elevation even if they require it.

    It's also possible that various other UAC settings might be confused for that, if the "test" is whether the UAC prompt appears.

Posting Permissions

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