无法在 CustomActionsData 中传递 TARGETDIR [英] can't pass TARGETDIR in CustomActionsData

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

问题描述

我有一个 VS2010 安装项目.我想将 TARGETDIR 参数传递给安装自定义操作.我将/TARGETDIR="[TARGETDIR]" 添加到自定义操作的 CustomData 属性.但是当我运行安装项目时,我得到 System.IO.FileNotFound 异常.怎么了?

I have a VS2010 setup project. I want to pass the TARGETDIR parameter to the Install custom action. I add /TARGETDIR="[TARGETDIR]" to the CustomData property of the custom action. But when I run the setup project I get System.IO.FileNotFound exception. What's wrong?

推荐答案

我不得不写/TARGETDIR="[TARGETDIR] " .有人说/TARGETDIR="[TARGETDIR]\" 也有效.天哪,这太蠢了.

I had to write /TARGETDIR="[TARGETDIR] " . Some say that /TARGETDIR="[TARGETDIR]\" also works. God this is stupid.

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

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