Hello Matt,
For this you can add your BAT file as a temporary file to your project. Then, in order to pass the path of added temporary file to your custom action you can use its associated property. Go to "Files and Folders" page, select the BAT temporary file and from its context menu choose "Properties...". You can use the associated property from
"Edit Temporary File" dialog. For example, you can use the following line of code in a .VBS custom action:
Code: Select all
createobject("WScript.Shell").run Session.Property("BAT_PROP"), false
If you have any questions let us know.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging