Wix CopyFile 仅在目标机器上
我需要能够根据保存文件夹路径的注册表设置复制目标计算机硬盘驱动器上存在的文件。
我已经尝试了一两天了,但遇到困难,有人可以帮忙吗?
谢谢,
B
I need to be able to copy a file that exists on the target machines hard-drive based on a registry setting that holds the folder path.
I have been trying to get this going for a day or two and am having difficulty, can anyone help?
Thanks,
B
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以首先在注册表中搜索该文件,如下所示:
然后使用自定义操作设置文件名
,然后按照前面的答案所述复制文件...
You can first search your registry for the file as follows:
Then use a Custom Action to set the file name
and then copy file as described by the previous answer...
尝试按照以下方式进行操作:
您可以使用RegistrySearch 用注册表中的值填充MYTESTDIR。
Try something along these lines:
You can populate MYTESTDIR with a value from the registry using a RegistrySearch.