This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Setting ProductVersion by script
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Aug 01, 2012
08:39 AM
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.
I am using IS 2012 Installscript. The self extracting exe build should have that version number.
(4) Replies
‎Aug 01, 2012
10:14 AM
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
set oProject = CreateObject("ISWiAutomation.ISWiProject")
oProject.OpenProject "C:\MySetups\FirstProject.ism"
oProject.ProductVersion = "1.2.3"
oProject.SaveProject
oPorject.CloseProject