问题
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