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
- :
- "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:06 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
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 03, 2009
11:32 AM
You mentioned that you make sure to register IsWiAutomation15.dll. Are you registering any additional files? Perhaps the following topic would help:
http://helpnet.acresso.com/Robo/BIN/Robo.dll?tpc=/robo/projects/installshield15helplib/StandAloneBuild_Installing.htm
http://helpnet.acresso.com/Robo/BIN/Robo.dll?tpc=/robo/projects/installshield15helplib/StandAloneBuild_Installing.htm
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 06, 2009
09:40 AM
Thanks for the reply Debbie, and for the link.
I tried registering the other files, but it still didn't work.
Anyways, I've given up and am taking a different approach. I'm using the default Standalone installer, and I've created another installer that just installs my redists on top of that. It's not quite the perfect solution I was hoping for, but it'll do.
Thanks again,
Paul
I tried registering the other files, but it still didn't work.
Anyways, I've given up and am taking a different approach. I'm using the default Standalone installer, and I've created another installer that just installs my redists on top of that. It's not quite the perfect solution I was hoping for, but it'll do.
Thanks again,
Paul