Set Max Product Version (VersionMax) in the Upgrade table at build time can be achieved in Two ways,
1. Use COM object: ISWiProject.ISWiUpgradeTableEntries.VersionMax
InstallShield exposes a COM interface that allows you to perform many of the same tasks from a program, such as a Visual Basic executable, or a script, such as a VBScript file in Windows Scripting Host. By calling methods, setting properties, accessing collections, and so on, through the automation interface, you can open a project and modify its features and component data in many of the same ways that you would in the InstallShield interface.
Automation Objects:
Each InstallShield automation object represents an installation element such as a feature, a component, or a file. This section describes each of the InstallShield automation objects.
The highest-level object in the automation interface is the ISWiProject object. The first thing you must do to access the interface is create this object. Then, you can use its objects, methods, and properties to modify your project.
ISWiUpgradeTableEntry represents an upgrade item in the Upgrades view of InstallShield. You can retrieve an upgrade item by specifying an item in the ISWiUpgradeTableEntries collection.
2. Modify .ism project files directly as XML
Ex for ISWiUpgradeTableEntries:
Dim oProj As ISWiProject
Dim oUpgradeItem As ISWiUpgradeTableEntry
Set oProj = New ISWiProject
oProj.OpenProject "C:\MySetup.ism"
For Each oUpgradeItem In oProj.ISWiUpgradeTableEntries
oUpgradeItem.Language = "1033"
Next
oProj.SaveProject
oProj.CloseProject
To target a specific item, replace the For Each loop in the above code with this code:
For Each oUpgradeItem In oProj.ISWiUpgradeTableEntries
If oUpgradeItem.UpgradeCode = "{12345678-1234-1234-1234-123456789012}" Then
oUpgradeItem.Language = "1033"
End If
NextRelated Articles
What FlexNet inventory agent and beacon release number corresponds to each product version? 280Number of Views Change Installer Name at Build Time in InstallAnywhere. 8Number of Views Snow Update Service showing wrong product version 13Number of Views Work with Command Events at Build Time 2Number of Views Changing the Package/Product/Upgrade Code and Version Number for Upgrades 2Number 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. | |
Case id: 00001065
Activity: Status change: 2 hours ago