ahmed.gad_it
Posts: 21
Joined: Fri Jun 08, 2018 12:07 pm

Running command line (not patch) during installation

Hi,

How can i run command line (not patch) during installation?

thanks!
arnau
Posts: 7
Joined: Thu Jul 19, 2018 11:51 am

Re: Running command line (not patch) during installation

As a custom action.
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Running command line (not patch) during installation

Hello,
How can i run command line (not patch) during installation?
You can achieve this by using a custom action. For example, you can save your script as a .BAT file, then add it as a temporary file and then use a "LaunchFile" custom action to launch the .BAT file.

To add your .BAT file as a temporary file, you can go to "Files and Folders" page and click on the "Add Temporary Files" button form the toolbar. After doing that, you can go to "Custom Actions" page and add a "LaunchFile" custom action with sequence. In the "File to launch" field, insert the following line:

Code: Select all

[&yourBatFile.bat]
where yourBatFile is the name of the earlier added temporary file.

Let me know if this helps!

Also, @Arnau, thank you for contributing to our forums!

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”