- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Microsoft VBScript runtime error: ActiveX component can't create object: 'ISWiAuto27.ISWiProject'
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Microsoft VBScript runtime error: ActiveX component can't create object: 'ISWiAuto27.ISWiProject'
Hello,
I am using InstallShield2021 R1 to create installer on win server 16, SAB of Installshield2021 is not installed on it.
I am trying to set some attributes like ProductVersion, ProductCode and PackageCode for my installation project through VBScript(VBScript is given below)
But getting Error "Microsoft VBScript runtime error: ActiveX component can't create object: 'ISWiAuto27.ISWiProject'"
If WScript.Arguments.Count = 0 Then
UpgradeVersion(WScript.Arguments.Item(0))
End If
Function UpgradeVersion( sProject )
Set oFile = CreateObject("Scripting.FileSystemObject")
If oFile.FileExists( sProject ) Then
Set oProject = CreateObject("IswiAuto27.ISWiProject") ' IS 2021, ISWiAutomation27.dll
oProject.OpenProject sProject
oProject.ProductVersion = WScript.Arguments.Item(1)
oProject.ProductCode = oProject.GenerateGUID
oProject.PackageCode = oProject.GenerateGUID
oProject.SaveProject
oProject.CloseProject
End If
End Function
Through InstallShield2021 Tool I am able to update ProductVersion, ProductCode, PackageCode and generate the installer. But my requirement to perform updation of general informatrion(ProductVersion, ProductCode, PackageCode) through script.
Suggestions will be helpfull.
Thanks
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)