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

VBScript not setting property.

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")
Session.Property("IISROOTFOLDER")=objIIsWebService.Path
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?

Thanks.
Labels (1)
0 Kudos
(1) Reply
RobertDickau
Flexera Alumni

If you create an MSI log file, is the value set correctly? What does the InstallScript code that obtains the property value look like?
0 Kudos