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!

peddro
Posts: 10
Joined: Tue Jan 09, 2007 9:22 am

pass parameter to batch file

how do you pass a variable/parameter to a batch file run on install ?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Use "Add Predefined Custom Action->Launch File or Open URL" custom action and type in the "Command Line" something like this:

Code: Select all

"[#file.bat]" "[APPDIR]"
Note that the file.bat must exist in the "Files and Folders" page. In the .bat file access the command line parameters using %1, %2, etc.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
peddro
Posts: 10
Joined: Tue Jan 09, 2007 9:22 am

thank you i was tring something like "[#file.bat "[APPDIR]" ]"

Return to “Common Problems”