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: Disable UAC during install?
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
‎Sep 11, 2007
02:16 PM
Disable UAC during install?
Does anyone know if there is a way to disable UAC during an installation?
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 12, 2007
10:34 AM
It's not possible without at least seeing a UAC prompt first, and possibly rebooting the machine, if by "disabling UAC" you mean what you can do in the control panel. What actual problem symptoms are you trying to address?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 13, 2007
11:50 AM
MichaelU wrote:
It's not possible without at least seeing a UAC prompt first, and possibly rebooting the machine, if by "disabling UAC" you mean what you can do in the control panel. What actual problem symptoms are you trying to address?
Thanks for the response. I've found that you can set the HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA key to 0 to disable UAC, but it requires a reboot.
The issue I have is that we have been unable to successfully load SQLExpress 2005 and connect the database for a non-admin user without UAC disabled. Any ideas?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 14, 2007
08:49 AM
The real question here is whether the attempt to load and connect to the database should be done with administrator privileges. If so, you should make sure that prerequisites are marked to require the privileges, and custom actions are sequenced deferred in system context in setups that require them. If you need CAs and cannot sequence them that way, you can sometimes work around it by setting the execution level of your setup.exe to Administrator, but this is at best a band-aid. (Of course in the real world, band-aids are sometimes a better business choice than the "ideal" solution.)
A setup should not be attempting to change something like UAC (if a company wants to change it, something like group policy should be used for that); instead a setup needs to work with UAC. The privilege-related failures one starts to see under UAC are not generally new problems, so fixing them fixes scenarios that were mishandled even on XP.
A setup should not be attempting to change something like UAC (if a company wants to change it, something like group policy should be used for that); instead a setup needs to work with UAC. The privilege-related failures one starts to see under UAC are not generally new problems, so fixing them fixes scenarios that were mishandled even on XP.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 17, 2007
12:29 PM
We were having the same issue. What we ended up doing was setting a username and password in the setup parameters for the SQL 2005 Express prerequisite, using that username and password in our SQL Connection to run any scripts during installation, and setting the connection string in our application to use the same username and password.
Pretty basic, but it worked.
-Pat
Pretty basic, but it worked.
-Pat
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)