View Single Post
  #2  
Old 10-15-2003, 01:16 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
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