cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
toanpn
Level 2

IsCmdBld.exe - Passing Command-Line Build Parameters in an .ini File

Hello,

I am using InstallShield 2016 Professional. I am trying to use "IsCmdBld.exe" command line  to build a release for my application. 

I want to be able to override Path Variables with values as parameters for my build.

I can only make this work if I pass "-l" option with the path strings in the command line as below:

iscmdbld.exe -p "project.ism" -l VarPath1="C:\Path1" -l VarPath2="C:\Path2" -l VarPath3="C:\Path3"

Since I have a few path variables for my build, I want to use the .ini file method to do the overrides.

Follow the https://docs.revenera.com/isxhelp19/helplibrary/IHelpExampleini.htm , I created an ini file with the following entries in the [BuildLocation] section as below:

mySetup.ini:

[Project]

Name="C:\MyApp\project.ism"

[BuildLocation]

PATH1="C:\Path1"

PATH2="C:\Path2"

PATH3="C:\Path3"

In Command prompt, I ran the following command:

iscmdbld.exe -i "c:\myApp\mySetup.ini"

Basically, myApp.exe was created in the Package folder but PATH1, PATH2 and PATH3 did not get overridden like when I used "-l".

Can someone tell me what am I doing wrong?

Your reply is greatly appreciated.

Thanks in advance,

Tony

 

 

Labels (1)
0 Kudos
(2) Replies
toanpn
Level 2

Hello Everyone,

The actual command line I used to build my application and parameters passed with "-l" overrode Path Variables with the paths in quotes:

iscmdbld.exe -p "project.ism" -l PATH1="C:\Path1" -l PATH2="C:\Path2" -l PATH3="C:\Path3"

Has anyone able to use IsCmdBld.exe with the .ini file as parameters that successfully overrode for Path Variables?

Thanks,

Tony

 

0 Kudos
varul
Revenera Moderator Revenera Moderator
Revenera Moderator

Currently iscmdbld using ini file wont support path variable overwrite, as a work around you can use a batch file using the command
iscmdbld.exe -p "project.ism" -l PATH1="C:\Path1" -l PATH2="C:\Path2" -l PATH3="C:\Path3" and then try build.
0 Kudos