cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
P_Duncan
Level 4

"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
Labels (1)
0 Kudos
(2) Replies
DebbieL
Level 17

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
0 Kudos
P_Duncan
Level 4

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
0 Kudos