wix中的自定义动作 [英] custom action in wix

查看:117
本文介绍了wix中的自定义动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个wxs文件,正在调用一个用c#编写的自定义操作..
而且我正在启动条件之前用标签从installuisequence调用该自定义操作,但是在安装该安装程序时出现了错误,错误号为2762等.


如果您需要其他任何信息,请告诉我../


问候,
Amit Gaba

Hi,

i have a wxs file and i am calling one custom action written in c#..
and i am calling that custom action from installuisequence with the before launchconditions tag but i am getting error while installing that setup with error number 2762 etc..


If you need any other info let me know ../


Regards,
Amit Gaba

推荐答案

来自
From http://msdn.microsoft.com/en-us/library/windows/desktop/aa372835%28v=vs.85%29.aspx[^]

2762

	

Cannot write script record. Transaction not started.
	

The InstallExecuteSequence may have been authored incorrectly. Actions that change the system must be sequenced between the InstallInitialize and InstallFinalize actions. Perform package validation and check for ICE77. 



在启动条件之前,您不应该做任何事情.
典型的安装过程是:



You shouldn''t do anything before launch conditions.
A typical installation process is:


  1. 测试启动条件(是否可以完全安装软件)?
  2. 从用户那里收集信息(如果相关).
  3. 对计算机执行操作(复制文件,修改注册表,添加环境变量,创建快捷方式...).这些操作可以在具有提升的权限的独立MSIEXEC.EXE进程中执行.
  4. 提交.

  1. Test launch conditions (can the software be installed at all)?
  2. Gather information from the user, if relevant.
  3. Do things to the machine (copy files, modify the registry, add environment variables, create shortcuts...). These actions may be executed in a separate (''server'') MSIEXEC.EXE process, that runs with elevated authority.
  4. Commit.



根据您的自定义操作的作用,应在正确的位置对其进行排序.

希望这会有所帮助,
巴勃罗.



Depending on what your custom action does, you should sequence it in the right position.

Hope this helps,
Pablo.


这篇关于wix中的自定义动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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