Video Screencast Help

UAC was turned off automatically during installation

Created: 04 Mar 2010 • Updated: 08 Sep 2010 | 3 comments
We use Wise for Windows Installer 6.20 to create our installers. Recently, we found some wierd installation issues with Vista and Windows 7. Both of them are 64-bit and we logged in as admin.

During the install, on Vista, when the installation completed, I noticed a Windows Security Alert in my tray which informed me that UAC has been disabled. I did not disable it myself. On Windows 7 machine, we got this message “you must restart your computer to turn off UAC”. 

Can anyone give me some explanation why this is happening. It seems like Wise installer turn off UAC automatically during install/uninstall, why it does this? is there a way to disable such action?

Here are the section in install log related to the privileges:

MSI (c) (DC:8C) [13:44:50:576]: MSI_LUA: Setting AdminUser property to 1 because this is the client or the user has already permitted elevation
MSI (c) (DC:8C) [13:44:50:576]: MSI_LUA: Setting MsiRunningElevated property to 1 because the install is already running elevated.
MSI (c) (DC:8C) [13:44:50:576]: PROPERTY CHANGE: Adding MsiRunningElevated property. Its value is '1'.
MSI (c) (DC:8C) [13:44:50:577]: PROPERTY CHANGE: Adding Privileged property. Its value is '1'.
...
MSI (s) (AC:E0) [13:45:16:016]: MSI_LUA: Credential prompt not required, user is an admin
...
MSI (s) (AC:E0) [13:45:16:018]: Product installation will be elevated because user is admin and product is being installed per-machine.
MSI (s) (AC:E0) [13:45:16:018]: Running product '{F7A87702-62BD-4847-AD87-3C3AA7F8297C}' with elevated privileges: Product is assigned.
...
MSI (s) (AC:E0) [13:45:16:038]: MSI_LUA: Setting MsiRunningElevated property to 1 because the install is already running elevated.
MSI (s) (AC:E0) [13:45:16:038]: PROPERTY CHANGE: Adding MsiRunningElevated property. Its value is '1'.
MSI (s) (AC:E0) [13:45:16:038]: PROPERTY CHANGE: Adding Privileged property. Its value is '1'.
·        

Comments 3 CommentsJump to latest comment

EdT's picture

Wise for Windows Installer 6.2 pre-dates both Vista and Windows 7 by a considerable amount of time, and has no code for switching off the UAC.
The log above does not show anything related to this issue, as far as I can tell.
Are you installing a 32 bit app on the 64 bit operating system?

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Yake Li's picture

Yes. Our app is 32-bit.
We also observed during the uninstall there is a brief moment where UAC is disabled and but then re-enabled. This is not happening during install.

Please advise.

Thanks!

EdT's picture

Try looking further at verbose logs of the install and uninstall, and see whether there are any actions that might be causing your UAC activity.
Did you create these installs yourself or were they created by someone else?
Are there any non-standard custom actions in the custom action table?
Are manifest files being used? 
Are you controlling UAC by group policy?
I don't really know what else to suggest - there is not much information in your posting to go on.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.