Community Forums
Results 1 to 2 of 2

Thread: VBScript not setting property.

  1. #1
    Join Date
    Mar 2007
    Posts
    10

    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.

  2. #2
    Join Date
    Oct 2001
    Location
    Here and there
    Posts
    16,243
    If you create an MSI log file, is the value set correctly? What does the InstallScript code that obtains the property value look like?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •