如何将TARGETDIR传递到CustomActionsData? [英] How to pass TARGETDIR into CustomActionsData?

查看:77
本文介绍了如何将TARGETDIR传递到CustomActionsData?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VS2010安装项目。我想将 TARGETDIR 参数传递给 Install 自定义操作。 / TARGETDIR = [TARGETDIR] / TARGETDIR = [TARGETDIR] \ 是错误的。

I have a VS2010 setup project. I want to pass the TARGETDIR parameter to the Install custom action. /TARGETDIR="[TARGETDIR]" and /TARGETDIR="[TARGETDIR]\" are wrong.

那么,什么是正确的方法?

So, what is the right method?

推荐答案

此外括号中必须包含引号和尾部反斜杠:

In addition to the brackets you must include quotation marks and a trailing backslash:


/ name = [TARGETDIR] \

/name="[TARGETDIR]\"

MSDN链接此处

这篇关于如何将TARGETDIR传递到CustomActionsData?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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