Installing the InstallShield 2009 version of the InstallScript project from IsCmdBld.exe

I am very new to InstallShield and have inherited the InstallScript project. I basically figured out my way and fixed most of the problems. However, I want to build this project automatically on our build server with every build of our product. It works fine for me. For some reason, I cannot increase the version number.

I use the command:

IsCmdBld.exe -P <.ism location>
-L <some_path_variable>=<some_value>
-L <some_path_variable2>=<some_value2>

It works.

However, adding -y 1.2.3 , -y "1.2.3" , -z Version=1.2.3 , -z Version="1.2.3" , -z "Version=1.2.3" , -z ProductVersion=1.2.3 , -z ProductVersion="1.2.3" or -z "ProductVersion=1.2.3". does not work.

When I say that this does not work, I mean that using the resulting installer does not try to update, as if I manually increased the version line in the product properties table from inside InstallShield.

Is there something I am missing? I know that I do not pay much attention, just hoping that someone has encountered this problem before. In addition, using the -c COMP switch does not work.

Any thoughts appreciated.

+4
source share
2 answers

I believe that IsCmdBld only supports passing ProductVersion properties for MSI projects , but not for InstallScript projects . I believe you need to do something like this before calling IsCmdBld :

 set project = CreateObject("ISWiAuto15.ISWiProject") project.OpenProject "C:\test.ism" project.ProductVersion = "2.0.0" project.CloseProject set project = nothing 

Alternatively, you can save your project type in XML format and use XPath / XPoke to update ProductVersion in the Property table. The syntax is a bit scary due to DTD, but it can be done.

+7
source

This is an old question, but I finally could figure out how to make it work from the command line for me, so I decided to share it. I created the Path variable (VersionNumber in the example below) in the project and set the product version of this path variable in the "General Information" section.

You can then install it on the command line using the -l flag.

 ISCmdBld.exe -p project.ism -l VersionNumber=1.1.0 
+3
source

Source: https://habr.com/ru/post/1299662/


All Articles