set target framework for virtual directory NSIS
how can i set the Target Framework o开发者_开发问答f Virtual Directory ? i am creating the Virtual Directory using "NsisIIS::CreateVDir" command in NSIS.
is there any way to set the Target framework to .net 4.0 fro this created VD ?
Thanks
Iknow it is an old post, but if anybody is looking and finds this post, may be this helps.
I used:
Section "Aplicacion de administracion"
; Set output path to the installation directory.
SetOutPath "$INSTDIR\WebApp"
; Primary project outputs
File /r /x *.config "Precompiled\WebApp\*.*"
; Config files
SetOverwrite off
File "Precompiled\WebApp\*.config"
SetOverwrite on
StrCpy $1 "SDGCC App Pool"
NsisIIS::CreateVDir "WebApplication" "$INSTDIR\WebApp"
SectionEnd
and it worked fine. Be sure than the app pool exits.
Hope this help.
精彩评论