danz
Posts: 2
Joined: Thu Jul 19, 2012 12:26 pm

Launch cmd file before Installation

Good Eve AI...


is it possible when I run a installer/exe file before the installation it will run or launch a cmd file first before to proceed on the installation


lets say i want to remove some Registry file (REG Folder) first and after that it will continue to install..



sorry for my bad grammar/english..

I hope you get my point..


Thanks in Advance.. more power!
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Launch cmd file before Installation

Hello and welcome to Advanced Installer forums,

In order to achieve this you can add the related cmd file to your package as a temporary file. Then, you could launch the cmd file using a "Launch File or Open URL" custom action with sequence scheduled under "Wizard Dialogs Stage -> Paths Resolution -> MigrateFeatureStates" standard action. Please take a look on our "Launch a CMD or BAT file" article.

Let us know if this helps, otherwise give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
danz
Posts: 2
Joined: Thu Jul 19, 2012 12:26 pm

Re: Launch cmd file before Installation

thank you for your reply..


but it doesn't work on "Wizard Dialogs stage" and put the "Viewer.exe" after "Path Resolution"
and i also tried after "user selection"




its works only on the "Install Execution Stage" after "Finish Execution"

so the file launch after the installation..
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Launch cmd file before Installation

Hello,

I'm afraid I'm not sure why you are encountering this behavior. Can you please give us more details about your scenario (maybe exemplify)? Also, can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”