This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: "Class not registered" error with automation
Subscribe
- 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
Apr 03, 2009
11:12 AM
"Class not registered" error with automation
Hi,
We are in the process of upgrading our Windows Installer probjects from IS 11.5 to to IS 2009. We use the Automation interface to change the GUID in each of our builds using this small script:
On Error Resume Next
Sub ErrorOut
WScript.StdOut.WriteLine Err.Description
WScript.Quit(Err.Number Mod 255)
End Sub
Dim pProj
Set pProj = CreateObject("IsWiAuto15.ISWiProject")
If Err.Number <> 0 Then ErrorOut
pProj.OpenProject("build.ism")
If Err.Number <> 0 Then ErrorOut
pProj.ProductCode = pProj.GenerateGUID
If Err.Number <> 0 Then ErrorOut
pProj.SaveProject
If Err.Number <> 0 Then ErrorOut
pProj.CloseProject
If Err.Number <> 0 Then ErrorOut
We also use the standalone to perform the builds on our build servers and development machines. To make this easier, I've created an installer that installs the standalone build files, plus all of the setup prereqs that we need. In my installer, I make sure to register IsWiAutomation15.dll.
When I run the automation script on my development machine (which has InstallShield 2009 installed) it works. When I run it on our build server (which does not have IS installed, but does have IsWiAutomation15.dll registered), I get:
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Class not registered
I've determined that the line it fails at is the OpenProject line. This worked with 11.5. Any ideas on what I'm missing here? Is there another dll that I need to register?
Thanks,
Paul
We are in the process of upgrading our Windows Installer probjects from IS 11.5 to to IS 2009. We use the Automation interface to change the GUID in each of our builds using this small script:
On Error Resume Next
Sub ErrorOut
WScript.StdOut.WriteLine Err.Description
WScript.Quit(Err.Number Mod 255)
End Sub
Dim pProj
Set pProj = CreateObject("IsWiAuto15.ISWiProject")
If Err.Number <> 0 Then ErrorOut
pProj.OpenProject("build.ism")
If Err.Number <> 0 Then ErrorOut
pProj.ProductCode = pProj.GenerateGUID
If Err.Number <> 0 Then ErrorOut
pProj.SaveProject
If Err.Number <> 0 Then ErrorOut
pProj.CloseProject
If Err.Number <> 0 Then ErrorOut
We also use the standalone to perform the builds on our build servers and development machines. To make this easier, I've created an installer that installs the standalone build files, plus all of the setup prereqs that we need. In my installer, I make sure to register IsWiAutomation15.dll.
When I run the automation script on my development machine (which has InstallShield 2009 installed) it works. When I run it on our build server (which does not have IS installed, but does have IsWiAutomation15.dll registered), I get:
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Class not registered
I've determined that the line it fails at is the OpenProject line. This worked with 11.5. Any ideas on what I'm missing here? Is there another dll that I need to register?
Thanks,
Paul
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 03, 2009
11:33 AM
Duplicate post. Please see the follow-up here:
http://community.acresso.com/showthread.php?t=187277
http://community.acresso.com/showthread.php?t=187277
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)