Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Product Version


2 replies to this topic

mmorris

mmorris
  • Members
  • 17 posts

Posted 24 January 2002 - 23:38

I have IS 7.0 incorporated into an automatic build system.  I have everything working fine using the ISCmdBld.exe command line, except for the product version.  Is there a way to be able to automatically set the product version number from a command line or any other automated interface?

JeffPClark

JeffPClark
  • Members
  • 9 posts

Posted 25 January 2002 - 20:35

Here's a code snippet that sets the product name, version, and package code.


       Dim ismProject As ISWiProject
       Set ismProject = New ISWiProject
       ismProject.OpenProject strISMFile       'Name and path of the ISM file
       
       ismProject.ProductName = strProject & " " & strVersion
       ismProject.ProductVersion = strVersion  'Version number as string
                                               'i.e. "3.1.2"
       
       guid = "{" & CreateUUID & "}"           'CreateUUID - sub that generates a GUID
       ismProject.PackageCode = guid
       
       guid = "{" & CreateUUID & "}"
       ismProject.ProductCode = guid
       
       ismProject.SaveProject
       ismProject.CloseProject


JeffPClark

JeffPClark
  • Members
  • 9 posts

Posted 11 February 2002 - 16:19

Unfortunately, I am now unable to make the 'SaveProject' method work correctly.