Solved how to provide parameters to a .ism file inside batch file

July 12, 2019 at 06:00:16
Specs: Windows 7
Hi Team,

There is a batch file, inside that I am executing 1 .ism file. When we manually open this file using double click, it shows few options on left hand side pane, like General information, Quick Summary etc. I used to open the file and used to make changes in above options, values in these options are like Title, subject, version number etc.Then I used to save the file and build it.

Now, I have execute or build this file using batch script. I have following line in my batch file -

"C:\Program Files (x86)\InstallShield\2013\System\ISCmdBld.exe" -p "C:\InstallShield 2013 Projects\%tm%\TM\DatacapTM_Install.ism" -y ""

So, just wanted to know, how should I pas parameter at the end of this line, under double quotes
so that options like Title, subject, version number should get the values.

I would be passing the values for these options using my code into the batch file but how to use them as a parameter to set those values in the .ism file or for those options ?

Please let me know.

Thank you.

Sushil Sahu

See More: how to provide parameters to a .ism file inside batch file

July 15, 2019 at 06:40:28
Hi Team,

Did you get time to look into my question? Please check it.

Thank you.

Sushil Sahu

Report •

July 15, 2019 at 17:34:16
✔ Best Answer
from google:

ISCmdBld.exe -p "C:\InstallShield 2014 Projects\My Othello Project\Othello.ism" -r "Othello Beta" -c COMP -a "Build 245"

The first parameter in the example above, starting with -p, is the path to the .ism file that you would like to build. Next, -r Othello Beta is the name of the release. The parameter -c COMP specifies that you would like your package to be compressed into one file. Finally, -a "Build 245" points to the specific product configuration.

If a command-line build completes without any errors, InstallShield sets the environment variable ERRORLEVEL to 0. If an error occurs during a command-line build, ERRORLEVEL is set to 1. If ERRORLEVEL is set to any other value, this typically indicates an invalid parameter was passed to ISCmdBld.exe, and the specific cause of the error is displayed in the Command Prompt window in which ISCmdBld.exe was running.

---------- end excerpt
it goes on to show all the arguments. This should give you what you need.

Report •
Related Solutions

Ask Question