Mitch
Posts: 10
Joined: Thu Mar 06, 2008 11:35 pm
Location: Golden, CO USA
Contact: Website

Vista UAC and Regserver

Vista won't allow me to register my application using a custom action if the UAC is enabled, even if the user has admin priviledges. I assume there must be a way to do this using the COM section of AdvancedInstaller Pro but I can't seem to get it to work. Can you provide an example or step by step instructions?

Thanks,
Mitch
gabriel
Posts: 15
Joined: Mon Mar 17, 2008 3:39 pm
Location: Craiova
Contact: Yahoo Messenger

Hi,
Please try using a custom action without an impersonation property in Execution Options group.

Let me know if using no impersonation resolves your problem.

Regards,
Ovidiu

_________________
Ovidiu Blejdea
Advanced Installer Team
http://www.advancedinstaller.com
Mitch
Posts: 10
Joined: Thu Mar 06, 2008 11:35 pm
Location: Golden, CO USA
Contact: Website

Thanks, that worked. However this user has Admin Priveledges and I though I haven't tested yet I presume it should work with a Standard User who requires elevation to install the program.

Mitch
gabriel
Posts: 15
Joined: Mon Mar 17, 2008 3:39 pm
Location: Craiova
Contact: Yahoo Messenger

Hi,

Yes, it should work fine.

Glad to be of service,
Ovidiu

________________
Ovidiu Blejdea
Advanced Installer team
http://www.advancedinstaller.com
Mitch
Posts: 10
Joined: Thu Mar 06, 2008 11:35 pm
Location: Golden, CO USA
Contact: Website

Oops, not done yet. Since self registration for a COM DLL didn't work on Vista with UAC Enabled I tried the same strategy of using a custom action to register:

RegSvr32.exe /s "[#dll]"

Deferred with no impersonation

and ended up with an Ole Error. Any ideas on how to make this work?

Mitch
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Have you tried registering the COM with the "Extract registration info from native library" option? Also, how did you configure the custom action which runs regsvr32.exe? Are you using a configuration similar to the one in this thread?
http://www.advancedinstaller.com/forums ... php?t=4574

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mitch
Posts: 10
Joined: Thu Mar 06, 2008 11:35 pm
Location: Golden, CO USA
Contact: Website

Yes, I tried the Auto Register/Self Register option first and got an Ole Error and then tried the strategy that worked with registering the COM server.

Property Name: RESULT_PROPERTY_REGSVR32.EXE
Source Type: Executable
Command Line: /s "[#RockWare_GIS_Link_2.dll]"

Synchronous execution, check return code

Deferred with no impersonation

Always Execute

Expression: NOT Installed

This appears to be a common Vista MSI problem and the only solutions I could find were to turn off UAC.

Mitch

Return to “Common Problems”