安装程序(vs installer包)备忘

1. 添加两个表 Binary和CustomAction

2. 在Binary表中,添加一行,如:命名为TestConnectCA,Data选择准备好的dll文件(C++或者其他)

3. 在CustomAction表中,添加一行
(Custom Action Type)http://msdn.microsoft.com/en-us/library/windows/desktop/aa372048(v=vs.85).aspx
Action Type  Source   Target
 1表示dll Binary表中的程序集 dll中的导出函数

4. 在ControlEvent表中,添加一行
(ControlEvent)http://msdn.microsoft.com/en-us/library/windows/desktop/aa368322(v=vs.85).aspx
Dialog_  Control_  Event  Argument Condition Ordering
Dlg名称  控件名称,比如按钮 事件  CA  设置为1确保触发

5. 在ControlCondition表中,修改下列条件:
EulaFormA_Property<>"Yes" becomes EulaFormA_Property<>"Yes" or LicenseViewed=""
EulaFormA_Property="Yes" becomes EulaFormA_Property="Yes" and LicenseViewed="1"
该属性LicenseViewed在CA中自动生成,并设定其值
If the property is not defined, it is created by the MsiSetProperty function

posted @ 2012-10-19 15:59  友学友  阅读(1020)  评论(0编辑  收藏  举报