skummara
Flexera beginner

Automating ism in Install shield

Is there a way to automate the process of Release creation rather doing manually from wizard?
0 Kudos
1 Reply
banna_k
Flexera
Flexera

Re: Automating ism in Install shield

Hi @skummara,

 

Yes, its possible to automate using the automation interfaces.  More information on the automation interfaces can be found : https://docs.revenera.com/installshield26helplib/helplibrary/IHelpAutoISWiProject.htm#ref-automation...

Sample VB script code to add new release:

 

Set oISM = CreateObject("ISWiAuto23.ISWiProject")

' this time, open project as read-write
oISM.OpenProject "D:\MySetups\BuildMe.ism", False

' get existing configuration
Set oMyConfig = oISM.ISWiProductConfigs("DemoVersion1")
' add new release to existing configuration
Set oNewRelease = oMyConfig.AddRelease("new")

' set release properties
oNewRelease.Compressed = True

oNewRelease.SetupEXE = True
oNewRelease.TargetOS = 3 ' i.e., os9xNT: include both engines
' ...set other properties...
' if you want, build the new release

oNewRelease.Build( )

' for testing

MsgBox "Done!"

' this time, save the project before closing it

oISM.SaveProject
oISM.CloseProject

 

0 Kudos