Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (https://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   Unwanted Side Effect Updating InstallShield Project Version Number (https://www.kinook.com/Forum/showthread.php?t=1421)

mweinberger 12-29-2005 02:16 PM

Unwanted Side Effect Updating InstallShield Project Version Number
 
Hi all,

I'm using the function below as a prestep to build my InstallShield X project. The version number does indeed update, but there is an unwanted side effect. I set the project up to have a major upgrade. On the major upgrade I set the project to upgrade for ANY earlier version. Executing the code changes the major upgrade to be for any version prior to the version that VBPro just set, which would also not be a problem, except that the next time that I go and build the version number used to set the maximum remains put, which is a problem.

It seems like a bug. I need a workaround. What do you recommend?

Thanks in advance,

Function InstallShieldUpdateVersion()
'Create the InstallShield Developer automation object
Set objInst = CreateObject("ISWiAuto10.ISWiProject") 'For InstallShield X

'Open the project file
objInst.OpenProject Step.ExpProperty(Builder, "Filename")

'Use this code to set the version to a specific macro value
objInst.ProductVersion = Application.ExpandMacrosAndScript("%BUILD_VER%")

'Save changes
objInst.SaveProject
objInst.CloseProject
end function

Martin A. Weinberer

kinook 12-29-2005 02:58 PM

That sounds like a question for the InstallShield folks.


All times are GMT -5. The time now is 11:55 PM.


Copyright © 1999-2023 Kinook Software, Inc.