Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-15-2003, 11:45 AM
dsmith dsmith is online now
Registered User
 
Join Date: 06-05-2003
Posts: 5
Set InstallShield's setup.exe version

Any ideas on how to get VBP to explicitly set setup.exe's FILEVERSION and PRODUCTVERSION that is created by InstallShield's IsCmdBld.exe? I currently have a macro %VER% which contains major.minor.revision.build number and would like to use it.
Reply With Quote
  #2  
Old 10-15-2003, 01:16 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
I think a Run Script action with VBScript code like this would work for InstallShield Developer / DevStudio:

' create the InstallShield Developer automation object
Set objInst = CreateObject("ISWiAutomation.ISWiProject") ' use "ISWiAutomation9.ISWiProject" for DevStudio

' open the project file
objInst.OpenProject "C:\MyFolder\MyInstall.ism"

' this would be used to increment the version
' retrieve and split the ProductVersion
'verArr = Split(objInst.ProductVersion, ".")
' increment last field
'verArr(UBound(verArr)) = CStr(verArr(UBound(verArr)) + 1)
' update the project
'objInst.ProductVersion = Join(verArr, ".")

' use this to set to a specific value
objInst.ProductVersion = "%VER%"

' and save changes
objInst.SaveProject
objInst.CloseProject
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 07:12 AM.


Copyright © 1999-2023 Kinook Software, Inc.