This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Basic MSI - Stop Setup if UAC Disabled for Standard User
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 14, 2008
09:34 AM
Basic MSI - Stop Setup if UAC Disabled for Standard User
QA reported that if a standard user tries to launch Setup.exe to install prerequisites that the Setup prerequisite dialog comes up and starts to flash infinitely. I suspect that it is trying to launch the UAC but it is not able to since the user has disabled it.
Is there any way to handle this behavior? Thanks.
Dan:confused:
Is there any way to handle this behavior? Thanks.
Dan:confused:
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 14, 2008
02:10 PM
We recently encountered and fixed this case, actually. If you can accept an unofficial hotfix (I believe the fix has gone through QA, but it's planned for a different distribution method at some later date), you can back up and replace the setupPreReq.exe in your Redist\Language Independent\i386 folder with the one in the attached zip.
To clarify potential expectations, the new behavior will still potentially be an infinite loop, but it will now wait for the user to click Install before continuing the next iteration. There is unfortunately no way to acquire administrative privileges in this scenario, and I personally consider the behavior a bug in Vista, as similar code would potentially acquire the privileges on XP where there is no UAC.
To clarify potential expectations, the new behavior will still potentially be an infinite loop, but it will now wait for the user to click Install before continuing the next iteration. There is unfortunately no way to acquire administrative privileges in this scenario, and I personally consider the behavior a bug in Vista, as similar code would potentially acquire the privileges on XP where there is no UAC.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 15, 2008
08:08 AM
Just to let you know that I performed a similar test using the Visual Studio Bootstrapper and it performed exactly as I would expect. The prerequisite editor first tested that the user has administrative priviledges and if it cannot confirm this then it errors out gracefully.
For this release we have chosen to remove the flag "Require Administrative Privileges" from the PRQ file as this causes the bad behavior. When the user clicks to Install the prerequisite (in this case MS Visual Studio 2005 Redist) the redistributable MSI package errors out gracefully and the infinite loop is prevented ... well to the same extent as you indicate - the user is given a prompt to try again or cancel. At least the user can exit the setup without having to reboot the machine 😄
You may want to look at the Visual Studio prerequisite design and see if you can replicate their behavior.
For this release we have chosen to remove the flag "Require Administrative Privileges" from the PRQ file as this causes the bad behavior. When the user clicks to Install the prerequisite (in this case MS Visual Studio 2005 Redist) the redistributable MSI package errors out gracefully and the infinite loop is prevented ... well to the same extent as you indicate - the user is given a prompt to try again or cancel. At least the user can exit the setup without having to reboot the machine 😄
You may want to look at the Visual Studio prerequisite design and see if you can replicate their behavior.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)