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.
Related Articles
Using the Automation Interface to Build a Project 8Number of Views Building a Project Using the Automation Interface 4Number of Views Use PowerShell to Create a Project and Add a PowerShell Custom Action Using the InstallShield Automation Interface 15Number of Views Using the Automation Interface With VB .NET 4Number of Views How to Update All Components Using the Automation Interface 11Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago