How to pass TARGETDIR into CustomActionsData?

感情迁移 提交于 2019-12-12 00:28:49

问题


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?


回答1:


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

/name="[TARGETDIR]\"

MSDN link here.



来源:https://stackoverflow.com/questions/11753054/how-to-pass-targetdir-into-customactionsdata

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!