cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rupeshkumar_rj
Level 2

error C8025: 'CoGetObject' : undefined identifier

I have written the setup.rul file for an application using the InstallShield ver11 IDE and tested it, works fine.

When I build the same application on InstallShield ver 6.2 and InstallShield Script Compiler Version 6.21.100.1396, this is the error which I get --

error C8025: 'CoGetObject' : undefined identifier

Here is the code which I have written to fetch the path of IIS wwwroot using the CoGetObject function --


set objVirPath = CoGetObject("IIS://localhost/W3SVC/1/Root", ""); //Local Path value from the Metabase
if(IsObject(objVirPath)) then
svNumValue = objVirPath.Path;
MessageBox(svNumValue , WARNING);
endif;


This will fetch the wwwroot path from the IIS metabase.

Can someone please help me on this. I am stuck at this point from a week now & have tried searching all the resources on the internet.
Labels (1)
0 Kudos
(3) Replies
Roman1
Level 9

Hello,

please use the actual version of IS 2011.

For older versions look at this:

http://training.acresso.com/showthread.php?p=321636

GetObject from the following site.
http://www.installsite.org/files/GetObject.zip
0 Kudos
rupeshkumar_rj
Level 2

Roman, Thanks for the reply!

The GetObject solution requires an additional DLL to be used. I am afraid that I cannot introduce an additional DLL into my project.

Is there any other function which can be used to read the IIS metabase.
0 Kudos
Roman1
Level 9

Hi,

I do not know any other solution.
0 Kudos