I worked in response to JShumaker to solve this problem. The best route seems to be the following InstallScript function, which I call to run the script package:
prototype SetIISValues(); function SetIISValues() string szProgram, szCmd; begin szProgram = TARGETDIR + "SetIISValues.bat"; szCmd = ""; LaunchAppAndWait (szProgram, szCmd, LAAW_OPTION_WAIT); end;
The script package calls this:
@echo off cscript.exe SetIISValues.vbs
And VBScript looks like this:
Option Explicit Dim IIsObject Set IIsObject = GetObject("IIS://localhost/w3svc/1") IIsObject.Put "Name", "Value" IIsObject.Setinfo
Executing this method eliminates the need to use ADSUTIL.VBS as part of the installation - the path (relative) to it does not matter if you do not need to use it.
source share