程序文件目录中的 WIX 石蜡
我是 WIX 新手,我正在尝试从 Windows 的 Program Files 目录中创建一个组件。在命令行中,我 cd 到 C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies,然后运行命令paraffin -dir ./ -自定义 GlobalSoftware globalsoftware.wxs -g
.
这里我得到一个 System.UnauthorizedAccessException:访问路径 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies' 被拒绝。当我以管理员身份登录时,我遇到了同样的异常。
我该如何解决这个问题?
谢谢你,
文卡特·拉奥
I am new to WIX and I am trying to create a component from within the Program Files directory in Windows. In the Command line I cd to C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies then I run the commandparaffin -dir ./ -custom GlobalSoftware globalsoftware.wxs -g
.
Here i get a System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies' is denied. i get the same exception when I am logged in as an administrator.
How can I get around this problem?
Thank You,
Venkat Rao
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Paraffin 不是 WiX 的一部分,它是由 John Robbins 编写的,您应该联系他寻求支持或查看可用的源代码。
至于解决这个问题,我认为如果您试图获取项目的依赖项,您可以设置 CopyLocal=true ,然后在与您的 dll 相同的输出目录中找到该 dll 并尝试从那里获取它。
Paraffin is not a part of WiX, it's written by John Robbins and you should contact him for support or look through the available source code.
As far as getting around it, I'd think that if you are trying to harvest the dependency of your project you could just set CopyLocal=true and then find the dll in the same output directory as your dll and try harvesting it from there.
只需以管理员身份运行命令行即可。
Just had to run the command line as administrator.