cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build a Project Using the Automation Interface

Build a Project Using the Automation Interface

Summary

Sample VBScript code that demonstrates how to build a project using the Automation interface.

Synopsis

This article provides a sample VBScript code that demonstrates how to build a project using the Automation Interface


Discussion

?InstallShield 2015:
set automation = CreateObject("ISWiAuto22.ISWiProject") 

set project = automation.OpenProject("C:\Test.ism")

set productConfig = project.AddProductConfig("Version2")

set release = productConfig.AddRelease("TestBuild")

release.Build()

set project = Nothing
set automation = Nothing

MsgBox "Completed Successfully"

Note that the automation object initially created corresponds to the InstallShield version.
InstallShield 2014:
Set automation = CreateObject("IswiAuto21.ISWiProject")
InstallShield 2013:
Set automation = CreateObject("IswiAuto20.ISWiProject")
InstallShield 2012 Spring:
Set automation = CreateObject("IswiAuto19.ISWiProject")

Additional Information

If you are using the automation interface on a 64-bit machine, you may need to load the automation interface through a 32-bit executable file. For example, if you are using VBScript with the automation interface, you may need to launch cscript.exe from the 32-bit system folder (SysWow64). Otherwise, the 64-bit scripting host may encounter an error when creating the automation object.

Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Feb 08, 2011 02:49 PM
Updated by: