Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-29-2005, 03:16 PM
mweinberger mweinberger is online now
Registered User
 
Join Date: 12-23-2005
Posts: 40
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
Reply With Quote
  #2  
Old 12-29-2005, 03:58 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
That sounds like a question for the InstallShield folks.
Reply With Quote
Reply


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 05:16 AM.


Copyright © 1999-2023 Kinook Software, Inc.