views:

256

answers:

3

In a Setup project the executable files such as ".exe , .dll , .js , .vbs" are acceptable and there is no way to run a .bat file in a Custom Action.

The question is how to run the "xxxxxx.bat" during installation?

A: 

you need to bundle your bat file in your setup project. Than in your custom actions, call your bat file.

Adeel
Could you please tell me step by step?!
mammadalius
A: 

It seems you're familiar with custom actions, have you tried just selecting All files (.) when selecting the file for a custom action? And if you have, doesn't that work?

Kristoffer
A: 

If you are trying to run a batch file that have relative paths during the installation process, that will fail for sure. That's because the batch file will take into account the directory where the installer is running, and not where the files were being installed. Use installer builders that copies batch files into temporary directory.

gomugomuno