简体   繁体   English

为虚拟目录NSIS设置目标框架

[英]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. 我正在NSIS中使用“ NsisIIS :: CreateVDir”命令创建虚拟目录。

is there any way to set the Target framework to .net 4.0 fro this created VD ? 有什么办法可以通过创建的VD将Target框架设置为.net 4.0?

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. 希望能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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