简体   繁体   中英

set target framework for virtual directory NSIS

how can i set the Target Framework of 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM