Installshield Automation is failing while running vbscript with error unable to create object

老子叫甜甜 提交于 2020-01-06 12:42:40

问题


I am using Installshield 2013 SP1 SAB(stand alone build). I am trying to change the product codes, strings and properties with help of following VBSCRIPT. But my VBScript is failing at the following code with error: "Unable to CreateObject with IS automation interface"

On Error Resume Next
Set oISM = CreateObject("IswiAuto20.ISWiProject")
if Err.Number <> 0 Then
 Wscript.Echo "Unable to CreateObject with IS automation interface" & vbNewLine
 Wscript.Quit Err.Number
End If

I have registered IswiAutomation20.dll manually, but even that does not solve my issue. I am using a 32-bit build server.

Tagging installshield gurus as they are the ones who can help. VBScript gurus can help me if I am wrong in the script.


回答1:


could be the case of the IswiAuto20 namespace. Try I**SW**iAuto20 instead of "IswiAuto20". Rob



来源:https://stackoverflow.com/questions/22221329/installshield-automation-is-failing-while-running-vbscript-with-error-unable-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!