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
- :
- VBScript not setting property.
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
Jul 17, 2007
02:49 PM
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.
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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 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?