Permission problem on Windows 2008 Server
Hi, does anyone have some experience on permission/installing on Windows 2008 Server? I have a command which is setting Default Document in IIS7, which is using appcmd.exe. When I ran the command in a Command Line Window everything worked, but running that command in NSIS nothing is happening. Does anyone know why it is like that? I think I have a permission problem, but I got no error messages.
I have shipped with an example script.
Best Regards, Frode
******** Script ********
Name "AppCmdTest"
OutFile "AppCmdTest.exe"
ShowInstDetails show
Page components
Page instfiles
Section "Set Default Document"
Push $0
; Add index.php as Default Document
ExecWait '%windir%\system32\inetsrv\appcmd.exe set config /section:defaultDocument /enabled:true /+files.[value=$\'index.php$\']' $0
DetailPrint "ExecWait returned: $0"
Pop $0
SectionEnd