XXL66
Posts: 17
Joined: Mon Apr 28, 2008 3:00 pm

Run EXE as Custom Action

hello,

I want to run "regsvr32.exe" on a file after installation. Can this command be run as administrator on VISTA ?
Can i define that this Custom action only has to be done when installed on VISTA ?

I don't get this to work it seems. I have the EXE given a path by a property (searched) "RESULT_PROPERTY_REGSVR32.EXE"

What do i actually enter in the command line ?

If i choose immediate execution, will this be after all installations processes are finshied ?

thx !
XXL66
Posts: 17
Joined: Mon Apr 28, 2008 3:00 pm

Re: Run EXE as Custom Action

Ok, i got it to work on XP but in VISTA i get 0x80070005. This seems to be an "access denied" problem.

I need to run this as an administrator, but how ?

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

Re: Run EXE as Custom Action

Hi,

Please note that on Vista the custom actions which affect the system should run without impersonation. Please try running your custom action as Deferred with no impersonation and let me know if the problem persists.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”