无法将带有空格的 Wix SourceDir 路径发送到自定义操作 ExeCommand [英] Not able to send Wix SourceDir path with spaces to custom action ExeCommand

查看:20
本文介绍了无法将带有空格的 Wix SourceDir 路径发送到自定义操作 ExeCommand的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当 SourceDir 路径有空格时,我无法传递[SourceDir]"路径.

i am not to able to pass "[SourceDir]" path when SourceDir path has spaces.

例如:SourceDir = "C:TempSetup" 我可以将 "C:TempSetup" 路径发送到自定义操作SourceDir = "C:Temp setupSetup" wix 仅将 "C:Temp" 传递给自定义操作

ex: SourceDir = "C:TempSetup" i am able to send "C:TempSetup" path to custom action SourceDir = "C:Temp setupSetup" wix passing only "C:Temp" to custom action

 ExeCommand="[SourceDir]Setup"

推荐答案

你需要用引号括起来,像这样:

You need to enclose it in quotes like so:

ExeCommand=""[SourceDir]Setup""

这篇关于无法将带有空格的 Wix SourceDir 路径发送到自定义操作 ExeCommand的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆