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: error C8025: 'CoGetObject' : undefined identifier
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
‎Jun 17, 2011
03:59 AM
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 --
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.
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.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 17, 2011
04:25 AM
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
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 17, 2011
04:59 AM
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.
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 17, 2011
05:00 AM
Hi,
I do not know any other solution.
I do not know any other solution.