.net做安装包里取不到安装目录名 CustomActionData忘记修改这个属性了. 自定义操作\安装\主输出来自SetupClass(活动) ->属性->CustomActionData "/targetdir="[TARGETDIR]\""