Execute custom action at preinstall step - Advanced Installer Community
dilvish
Posts: 14
Joined: Tue Oct 22, 2013 1:58 pm

Execute custom action at preinstall step

Is there any way to execute custom action before Installing prerequisites?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Execute custom action at preinstall step

Hello,

Unfortunately this cannot be achieved.

However, you can try to create another package that will execute the related custom action. You can add this package as a pre-install one, before your prerequisites.
In this package which will be added in the prerequisite section, to launch your custom action you can go in the “Custom Actions” page and add the predefined Launch attached file custom action with sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.

Also you should disable the "Register product with Windows Installer" option from the "Product details" page.

If you need any help, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dilvish
Posts: 14
Joined: Tue Oct 22, 2013 1:58 pm

Re: Execute custom action at preinstall step

Thank you for quick answers.
I want to run some custom action before donwloding stage...
In this custom action i want to copy prerequsites from local folder to AppData.
However i am note sure than i can get current location of installer file.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Execute custom action at preinstall step

Hello,

I'm not sure I fully understand your scenario. Can you please give us more details(maybe exemplify)? Why do you want to copy the related files?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”