cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bwlf
Level 3

Setting ProductVersion by script

We have a exe that is carrying a version number. How can we get that number in IS Product Version ? Preferable by script and not an external app.
I am using IS 2012 Installscript. The self extracting exe build should have that version number.
Labels (1)
0 Kudos
(4) Replies
LrdElder
Level 4

Try VerGetFileVersion
0 Kudos
bwlf
Level 3

yes, that is ok but how to get it in the page: General info/Product version so that the setup has this number ?
0 Kudos
LrdElder
Level 4

Oh! I misunderstood. I thought you were doing this during the install. Here is a VBScript example to change the version number of an Installshield project. I am taking this example from an Installshield training class so this is their code. I just wanna give credit where credit is due ....

set oProject = CreateObject("ISWiAutomation.ISWiProject")

oProject.OpenProject "C:\MySetups\FirstProject.ism"

oProject.ProductVersion = "1.2.3"

oProject.SaveProject
oPorject.CloseProject
0 Kudos
bwlf
Level 3

Thanks, I tryed it, it works smoothly.
0 Kudos