mthama
Posts: 15
Joined: Mon Feb 10, 2014 1:49 pm

How to create a installer that installs a .exe to be run with parameters?

Hello all,

Times ago, we successfully developed a .jar product that executes (after the installation) with parameters got in installation time. At that moment, we figured out that in Resources->Java Products->Products->Virtual Machine->Command LIne edit field, we can pass these parameters to the .jar file, using stored values passed at install moment.

Now, we're working on an installer that installs a .exe file instead a .jar file. The application do the very same features, only differing from the fact that it is a .exe. We've took some research on how to do this, but we haven't figured out yet. Can someone explain or point a link to us how can we proceed?

Many thanks!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to create a installer that installs a .exe to be run with parameters?

Hello,

To launch the .EXE file you can use the predefined Launch file custom action. Through the Command Line field you can specify command line parameters that will be passed to the target file.

Please note that the custom action should be added after the Finish Execution group from the Install Execution Stage.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

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

Return to “Building Installers”