Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 VS2010 安装项目。我想将TARGETDIR参数传递给Install自定义操作。/TARGETDIR="[TARGETDIR]"并且/TARGETDIR="[TARGETDIR]\"是错误的。
TARGETDIR
Install
/TARGETDIR="[TARGETDIR]"
/TARGETDIR="[TARGETDIR]\"
那么,正确的方法是什么?
除了括号之外,您还必须包含引号和尾部反斜杠:
/name="[目标目录]\"
MSDN 链接在这里。