Skip to content
⌘ NSIS Forum Archive

Installation of serverside app for .Net 2.0

3 posts

_x_Vadim_x_#

Installation of serverside app for .Net 2.0

Hello All,
Is anybody have a script which creates virtual directory with selected 2.0 ASP.NET Version?
_x_Vadim_x_#
seems to be found solution by myself:

nsExec::Exec /TIMEOUT=20000 '$WINDIR\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -s W3SVC/1/ROOT/$VDIRNAME'
Afrow UK#
I recommend using this code (with added quotes):
nsExec::Exec /TIMEOUT=20000 '"$WINDIR\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe" -s "W3SVC/1/ROOT/$VDIRNAME"'
Otherwise, if any of the $vars contain spaces, the execution will probably fail.

-Stu