使用自定义参数/参数输入配置在 NSIS 中执行特定的 vbs 脚本
我试图获得正确的语法来使用 nsExec::ExecuteToStack 调用这两个命令,但仍然没有成功执行。可能我的输入格式错误。
第一个命令:
nsExec::ExecToStack `"$SYSDIR\CScript.exe" $0 //$SYSDIR\iisext.vbs //EnApp //"ASP.NET 4.0.30319"`
第二个命令:
cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 “true”
,恕我直言,应该类似于:
nsExec::ExecToStack /NOUNLOAD `"$SYSDIR\CScript.exe" $0 //C:\Inetpub\Adminscripts\adsutil.vbs //set "W3SVC/AppPools/Enable32BitAppOnWin64" “true”`
您能帮我为 ExecuteToStack 函数制作正确的执行字符串吗?
非常感谢!!!
I am trying to get coorrect sytax to call these two commands using nsExec::ExecuteToStack
, but still got no successful execution. Proboably I have wrong input formatting.
1st command:
nsExec::ExecToStack `"$SYSDIR\CScript.exe" $0 //$SYSDIR\iisext.vbs //EnApp //"ASP.NET 4.0.30319"`
2nd command:
cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 “true”
, which, imho, should be something similar to:
nsExec::ExecToStack /NOUNLOAD `"$SYSDIR\CScript.exe" $0 //C:\Inetpub\Adminscripts\adsutil.vbs //set "W3SVC/AppPools/Enable32BitAppOnWin64" “true”`
Could you please help me making correct execution string for ExecuteToStack function?
Thank you very much!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看来我已经找到了正确的语法:)
链接:
http://forums. winamp.com/showthread.php?t=290922
谢谢你,我找到了它,因为我根本不明白它为什么起作用:D
Seems like I have found a correct sytax for this one :)
Link:
http://forums.winamp.com/showthread.php?t=290922
Thank you that I found it because I simply do not uderstand why it works :D
你为什么要加倍斜杠?
在 MS Shell 中,您可能需要将反斜杠转义为
\/
,而不是斜杠。所以不,在 Windows shell 中,//
不等同于/
。请注意您的
"true"
参数被错误引用了“true”
,因为 shell 理解常规的简单引号和双引号,而不是印刷引号。我认为这是一个复制/粘贴问题。Why are you doubling slashes?
In MS Shell, you might need to escape backslashes as
\/
but not slashes. So no, in Windows shell,//
is not equivalent to/
.And beware of your
"true"
parameter that is misquoted“true”
as the shell understands regular simple and double quotes and not the typographic quotes. I suppose it is a copy/paste problem.