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

WScript.CreateObject: Could not create object named "IswiAuto16.ISWiProject"

Hello All,

My VB script ran OK on Windows 2003 Enterprise until I ran it after
I tried to install the InstallShield 2010 on a Windows 2008 R2, Windows 7.
The error is:

(658, 1) WScript.CreateObject: Could not create object named "IswiAuto16.ISWiProject"


Here is the code snippet:

' Get the Computer/machine name using Wscript.Network
Set wshNetObj = WScript.CreateObject("WScript.Network")
machineNameStr = wshNetObj.ComputerName

' Get file system object
Set fileSysObj = WScript.CreateObject("Scripting.FileSystemObject")

' Get IS Automation Interface Project Object
Set isProjObj = WScript.CreateObject("IswiAuto16.ISWiProject")

If WScript.Arguments.Count = 0 Then
ShowCommandOptions
Else
.
.
.
End If
Labels (1)
0 Kudos
(3) Replies
Christopher_Pai
Level 16

Make sure you are using a 32bit scripting process. If you are defaulting to 64bit it won't be found.
0 Kudos
jnguyen
Level 2

Thanks Christopher Painter. It was a good suggestion!!!
0 Kudos
HookEm
Level 5

Yes Chris, thanks! Our CM guy is trying to get our build process to work on 64-bit Windows for the first time (finally!) and we had this same issue. The Perl script I wrote was failing to instantiate the IswiAuto16:ISWiProject object. After finding this thread I had him check and, sure enough, the new build system was defaulting to the 64-bit Perl process to run Perl scripts.
0 Kudos