Custom Action - SelfRegModules - Error - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

MBonevil
Posts: 45
Joined: Fri Jan 22, 2010 4:48 pm

Custom Action - SelfRegModules - Error

Hi,

I want to call an .exe with the command line option "/regserver" after the files is installed.

I added a Custom Action in the step "SelfRegModules".

I got an error at install time.
Error.jpg
Error.jpg (28.85 KiB) Viewed 1861 times
I think this is because all the steps is done two times...
The first time, nothing is installed on the hard drive, the second time all is installed.

Best regards,

Martin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Custom Action - SelfRegModules - Error

Hello,

Steps are never executed two times. What you are seeing the first time is the deferred actions getting written in the install script. The second time the script is executed.
Make sure your custom action is set as Immediate and placed after InstallExecute standard action (this standard action executes the install script above).

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”