/bundles/itninjaweb/img/Breadcrumb_cap_w.png
hi all

I am packaging IIS 6.0 with XP SP2 using wise 6.0

anyone knows how I can use a custom action to run these scripts


Install IIS:

sysocmgr.exe /i:c:\winnt\inf\sysoc.inf /u:"C:\Tools\IIS Answer Files\IIS Install.TXT" /q


Remove IIS:

sysocmgr.exe /i:c:\winnt\inf\sysoc.inf /u:"C:\Tools\IIS Answer Files\IIS Remove.TXT" /q

regards
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
Try this function

Function RunCMD(a_cmd)
Set ShellObj_g = CreateObject("WScript.Shell")
RunCMD=ShellObj_g.Run( "cmd /K " & a_cmd & " & Exit", 1, True)
Set ShellObj_g = Nothing
End Function

and you call this function like

RunCMD("sysocmgr.exe /i:c:\winnt\inf\sysoc.inf /u:" & Chr(34) & "C:\Tools\IIS Answer Files\IIS Install.TXT" & Chr(34) & " /q")

The other call is similar.

Regards
Andreo
Answered 01/15/2007 by: jamsek19
Orange Senior Belt

Please log in to comment
0
Sorry I forgot to tell:
You can use CustomAction by calling function from VBScript stored in Binary table (Type 6).
Best Regards
Andreo
Answered 01/15/2007 by: jamsek19
Orange Senior Belt

Please log in to comment
0
thanks jamsek19 for the script will run it with a custom action
Answered 01/16/2007 by: cygan
Fifth Degree Brown Belt

Please log in to comment