PDA

View Full Version : quick question about commandline builds



oBladeo1
11-23-2005, 08:50 AM
This builds my project

"C:\Program Files\InstallShield 11\System\iscmdbld.exe" -p "C:\My InstallShield 10.5 Projects\Database Server Managment.ism" -r "Release 1" -a "Product Configuration 1"

can i change the product configuration options from the commandline?

JayFleming
11-23-2005, 09:23 AM
Which options exactly?
Your commandline above would allow you to set different releases/product configs using the -r and -a switches, to change the specific options on a product config you could use the automation interface and some scripting.

oBladeo1
11-23-2005, 09:45 AM
Which options exactly?
Your commandline above would allow you to set different releases/product configs using the -r and -a switches, to change the specific options on a product config you could use the automation interface and some scripting.

The product version override

thanks for your time

RobertDickau
11-23-2005, 09:57 AM
For the product version and other product properties, you'll generally want to use the Automation interface before performing a command-line build. (For that matter, you can also build using the Automation interface.)

JayFleming
11-23-2005, 10:11 AM
Quick VBScript snippet to set the version....

set args = WScript.Arguments
num = args.Count

if num <> 0 then
strProject = args.Item(0)
strVersion = args.item(1)

' Create a reference to the InstallShield automation layer
Set m_ISWiProject = CreateObject("ISWiAutomation.ISWiProject")

if strVersion <> "" then
m_ISWiProject.OpenProject strProject, FALSE
m_ISWiProject.ProductVersion = strVersion
m_ISWiProject.SaveProject
end if

end if

To be held in a .vbs file that gets called with the project name and version number as arguments...