cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
twitiger
Level 3

ISWiAuto17: Class not registered

I have a project using Installshield 2010.
Now I want to upgrade to InstallShield 2011.

I changed the setproductversion.vbs using IswiAuto17
And you can see the setproductversion.vbs
Set Args = wscript.Arguments

If Args.Count() = 2 Then
' strISMPath = Args.item(0)
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
strISMPath = fso.GetAbsolutePathName(Args.item(0))
strProductVersion = Args.item(1)
Else
wscript.echo "Usage: setproductversion ismPath strProductVersion"
End If

Dim m_ISWiProject
' Create a reference to the InstallShield automation layer
Set m_ISWiProject = CreateObject("IswiAuto17.ISWiProject")

m_ISWiProject.OpenProject strISMPath 'Name and path of the ISM file

m_ISWiProject.ProductVersion = strProductVersion

m_ISWiProject.SaveProject
m_ISWiProject.CloseProject

Set m_ISWiProject = nothing

And the makefile is as below:
011-09-19 20:14:54 | **** Building Client Tools and Drivers x86 Installer ****
2011-09-19 20:14:54 | regsvr32 /s D:\\build\\toolchain\\win32\\installshield-2011\\System\\ISWiAutomation17.dll
2011-09-19 20:14:54 | D:/build/toolchain/win32/bin/chmod.exe u+w d:/build/ob/sb-611334/test/winbuild/win32/paac/src/installer/clientTools-x86.ism
2011-09-19 20:14:54 | **** Setting product Version ****
2011-09-19 20:14:54 | cscript /nologo d:\\build\\ob\\sb-611334\\test\\winbuild\\win32\\paac\\src\\installer\\setproductversion.vbs d:\\build\\ob\\sb-611334\\test\\winbuild\\win32\\paac\\src\\installer\\clientTools-x86.ism "1.0.0.14298"
2011-09-19 20:14:54 | d:\build\ob\sb-611334\test\winbuild\win32\paac\src\installer\setproductversion.vbs(17, 1) ISWiAuto17: Class not registered

Who can help me on it?

Thank you very much!
Labels (1)
0 Kudos
(3) Replies
twitiger
Level 3

When I don't run vbs, it gave the error message:

2011-09-20 01:13:41 | Building Release: setup
2011-09-20 01:13:41 |
2011-09-20 01:13:41 | DoUpgradeAndBuildEx
2011-09-20 01:13:41 | DoUpgradeAndBuildExInternal
2011-09-20 01:13:41 | DoUpgrade
2011-09-20 01:13:41 | DoIsmUpgrade
2011-09-20 01:13:41 | GetNewFileName
2011-09-20 01:13:41 | spProject->Open Failed
2011-09-20 01:13:41 | Upgrade Needed
2011-09-20 01:13:41 | ISDEV : fatal error -6199: Internal build error
2011-09-20 01:13:41 | Unspecified error

Who can help me on it?

Thank you very much!
0 Kudos
MichaelU
Level 12 Flexeran
Level 12 Flexeran

If this is a 64-bit machine, it's possible that your scripts invoke the 64-bit cscript engine which is incapable of loading the 32-bit InstallShield automation interface. Perhaps try explicitly specifying the 32-bit version of cscript.exe, generally located at C:\Windows\SysWow64\cscript.exe. (You don't have to do this for regsvr32, as it can figure this out, but feel free to explicitly specify that one too if it makes your script clearer.)
0 Kudos
twitiger
Level 3

MichaelU wrote:
If this is a 64-bit machine, it's possible that your scripts invoke the 64-bit cscript engine which is incapable of loading the 32-bit InstallShield automation interface. Perhaps try explicitly specifying the 32-bit version of cscript.exe, generally located at C:\Windows\SysWow64\cscript.exe. (You don't have to do this for regsvr32, as it can figure this out, but feel free to explicitly specify that one too if it makes your script clearer.)


2011-09-22 01:49:57 | regsvr32 /s D:\\build\\toolchain\\win32\\installshield-2011\\System\\ISWiAutomation17.dll
2011-09-22 01:49:57 | C:\\Windows\\SysWow64\\cscript.exe /nologo d:\\build\\ob\\sb-614847\\aurora\\winbuild\\win32\\paac\\src\\installer\\setproductversion.vbs d:\\build\\ob\\sb-614847\\test\\winbuild\\win32\\paac\\src\\installer\\test.ism "1.0.0.14376"
2011-09-22 01:49:57 | d:\build\ob\sb-614847\test\winbuild\win32\paac\src\installer\setproductversion.vbs(17, 1) ISWiAuto17: Class not registered

It also failed.
0 Kudos