lzerman
Posts: 2
Joined: Fri Dec 30, 2005 4:59 am

Windows Vista User Account Control (UAC) and QuickBooks

We need to install a QuickBooks add-in under Vista. The Advanced Installer script we have been using for XP appears to run successfully with Vista, but the application does not install correctly. This appears to be more of a QuickBooks problem then AI.

What we have to do manually is:

1. Disable UAC
2. Run the installer
3. Run the application to hook itself into QB.
4. Enable the UAC

This would not be so bad if this worked 100% of the time, but it does not.

So, is there a way to Disable the UAC with AI and then re-enable it? Just adding Admin rights to the install fails because of QuickBooks.

Thank you,

Leonard
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi Leonard,

The application itself should be changed so that it works correctly in Vista.
So, is there a way to Disable the UAC with AI and then re-enable it?
The UAC cannot be disabled/enabled from within AI. From a command prompt window (which has been opened with "Run as administrator" option), you can use the following commands:

1. To disable the UAC:

Code: Select all

%comspec% /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
2. To enable the UAC:

Code: Select all

%comspec% /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
A reboot will be necessary for the changes to take effect.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”