Summary
Set All Component 64bit option to “YES “using Installshield Automation Interface script
Symptoms
In a project which contains a large amount of components changing 64bit option to YES manually is time consuming.
Resolution
It is possible to use Installshields Automation Interface functionality to automate this process. The example below uses vbscript code to set all the component 64 bit option to YES.
You can run the script using vbs editor or you can run the script using “wscript.exe” in cmdlet.
Path to wscript.exe “C:\Windows\System32>wscript.exe”
'Create project object for InstallShield 2019
Set pProject = CreateObject("ISWiAuto25.ISWiProject")
'Open project your project ism file
pProject.OpenProject "<Path to ISM File>"
'set 64 bit option to YES for single component
Set pComponent = pProject.ISWiComponents.Item("<Your Component name>")
pComponent.Attrib64BitComponent = "True"
'Set 64 bit option to YES for all component in ISM
Set pComponent = pProject.ISWiComponents
‘Msgbox pComponent.Count
For Each pComponent in pProject.ISWiComponents
'Setting Component to 64bit
pComponent.Attrib64BitComponent = "True"
'Setting Dot Scan option to None
pComponent.DotNetScanAtBuild = 0
Next
'Adding a Product Config and Release
pProject.AddProductConfig("Prod config").AddRelease("Release")
'Set an existing product configuration
Set productconfig = pProject.ISWiProductConfigs.Item("Prod config")
'Set and existing release
Set Release = productconfig.ISWiReleases("Release")
'Build the release
Release.Build()
'Save and close
pProject.SaveProject
pProject.CloseProject
Reference Link
Related Articles
Set File Version to Always Overwrite using an InstallShield Automation Interface script 26Number of Views How to Update All Components Using the Automation Interface 10Number of Views Using InstallShield Automation Interface In C# 3Number of Views Use PowerShell to Create a Project and Add a PowerShell Custom Action Using the InstallShield Automation Interface 14Number of Views How to change the version of each component to 64bit in InstallShield using IS IDE and Automation script 5Number 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