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

How to Use Python with the InstallShield Automation Interface

How to Use Python with the InstallShield Automation Interface

Discussion:

InstallShield automation is implemented as a COM object, hence it can be accessed from any language that supports COM extensions.

Python (32-bit version) supports writing COM clients using win32com.client module. This module can be installed "python -m pip install pywin32"  if it is not already present.

Solution:

The following is an example of using Python to open an existing project and update some of the contents:

import win32com.client
o = win32com.client.Dispatch("ISWiAuto26.ISWiProject")
o.OpenProject("C:\InstallShield 2020 Projects\Test.ism")
print(o.ProductName)
print(o.ProductVersion)
prodconf = o.ISWiProductConfigs("Product Configuration 1")
prodconf.Title= "Flexera"
prodconf.Subject= "InstallShield"
print(prodconf.Title)
print(prodconf.Subject)
No ratings
Version history
Last update:
‎Oct 11, 2021 10:27 AM
Updated by: