我得到的威克斯的问题,管理的自定义操作:在我的自定义操作我创建了一个文件并将其保存在 INSTALLLOCATION 的路径。看起来一切正常,没有异常。但安装之后,刚刚创建的文件不存在在 INSTALLLOCATION 的
i got a problem with wix and managed custom actions: in my custom action i create a file and save it in the INSTALLLOCATION path. It seems like it works, no exception is thrown. But after the installation, the just created File not exists in the INSTALLLOCATION.
威克斯 - 文件:
<CustomAction Id="SetInstallPath" Property="CreateTimeStamp" Value="[INSTALLLOCATION]" Execute="immediate"/> <CustomAction Id="CreateTimeStamp" BinaryKey="SetupActions.dll" DllEntry="CreateTimeStampFile" Execute="deferred" Return="check"/> <InstallExecuteSequence> <Custom Action="SetInstallPath" Before="InstallFinalize"/> <Custom Action="CreateTimeStamp" Before="InstallFinalize"/> </InstallExecuteSequence>
定制动作-了Methode:
Custom-Action-Methode:
... var keys = new string[session.CustomActionData.Keys.Count]; session.CustomActionData.Keys.CopyTo(keys, 0); var cad = keys[0]; var filepath = cad + "myfile.xml"; File.Create(filepath); ...
任何人的想法? !在此先感谢
Anyone a idea? Thanks in advance!
罗宾
编辑:斯科特贝特格y中的文章后编辑的威克斯文件内容
Edited: After the post from Scott Boettger y edited the wix-file content.
推荐答案我不认为你的配置是正确的。这里有一些问题:
I don't think your configuration is correct. Here are some of the problems:
试着做这些修改,看看问题是否仍然存在。
Try making these modifications and see if the problem persists.
更多推荐
维克斯:在自定义操作写入文件
发布评论