From: http://bbs.scmroad.com/viewthread.php? Tid = 1655, work required
Continuous integration InstallShield _ using command line or ant (Nant) to call InstallShield
You can call InstallShield in both cruisecontrol and cruisecontrol. net. In this way, you can package the tool while creating the build, and then hand it to Tester for testing.
There are three methods to call InstallShield,
1. Write the command that calls InstallShield to a bat or CMD file, and use cruisecontrol (cruisecontrol. net) or ant (Nant) to call this file.
2. Write the command that calls InstallShield directly to the build. xml file of ant (Nant ).
3. in fact, you can also write this part to cruisecontrol (cruisecontrol.. Net), but we do not recommend this. especially when there are many projects. however, if there are few projects, for example, one project, it is much more convenient to write them to one file. the downside is that you have to weigh the advantages and disadvantages. then optimize your project
In Windows, if it is cmd or bat, it is written as follows:
Reference:
Pushd installers/abcd_main
% InstallShield %-P abcd_main.ism-o ../release
If % errorlevel % NEQ 0 goto Error
Popd
If you write it to the ant build. xml script and use the build script to call installsheild, you can write it as follows:
Reference:
<Target name = "Build-ABCD-Main-installer" Description = "build ABCD" depends = "Build-ABCD-jar">
<Echo> build-ABCD-Main-installer </echo>
<Echo> remove the read-only attribute: attrib-R/S * </echo>
<Exec dir = "$ {dir. Installer. ABCD. Main}" executable = "attrib">
<Arg value = "-R"/>
<Arg value = "/s"/>
<Arg value = "*"/>
</Exec>
<Exec dir = "$ {dir. Installer. ABCD. Main}" executable = "C:/program files/Macrovision/is 2008 standalonebuild/issabld.exe">
<Arg line = "-p abcd. ISM-o ../testrelease"/>
</Exec>
</Target>
You can use InstallShield to package on the Windows command line.
The premise is that your InstallShield project file is slightly changed during each build. if you make a build every time, the InstallShield project file needs to be changed a lot, you can build it directly on the InstallShield GUI.
In this case, it is very difficult to build automatically. however, we can also find out what parameters InstallShield can accept. If you want to change the parameters in the GUI, you can give them in the command line, which saves a lot of trouble. in this regard, however, I do not know much about it. If you are more proficient, you can share it with me.