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
(1) Reply
DebbieL
Level 17

Duplicate post. Please see the follow-up here:
http://community.acresso.com/showthread.php?t=187277
0 Kudos