View Full Version : VBScript not setting property.

07-17-2007, 02:49 PM
I am creating a web project and the IISROOTFOLDER is getting the wrong directory. I found a posting that had the following VBScript code to get the correct root folder:

Dim objIIsWebService
Set objIIsWebService = GetObject("IIS://localhost/W3SVC/1/ROOT")
MsgBox Session.Property("IISROOTFOLDER") --This shows the correct path!

I created a custom action with Immediate Execution and Always Execute to execute after installinitialize. I then have another custom action right after this one (installcript) that prints out the IISROOTFOLDER property and it is back to the incorrect folder.

What am I missing?


07-20-2007, 05:31 PM
If you create an MSI log file, is the value set correctly? What does the InstallScript code that obtains the property value look like?