Wix 使用总结(续)--关于Feature和Component的状态判断安装过程
2009-11-17 12:01
579 查看
安装过程中,有时候需要根据用户的设置来进行不同的安装,其中一个方面就是根据用户选择安装的Feature或者Component,来判断下一步的操作。
Wix中提供了相关的判断方法和内置的状态值。
Prepending some special characters to the names will give them extra meaning:
% environment variable (name is case insensitive)
$ action state of component
? installed state of component
& action state of feature
! installed state of feature
The last four can return the following integer values:
-1 no action to be taken
1 advertised (only for components)
2 not present
3 on the local computer
4 run from the source
A few examples to make things clearer:
(&FeatureName = 3) AND NOT (!FeatureName = 3)
Run action only if the product will be installed locally. Do not run action on a reinstallation.
The term &FeatureName = 3 means the action is to install the feature locally.
The term NOT (!FeatureName = 3) means the feature is not installed locally.
(&FeatureName = 2) AND (!FeatureName = 3)
Run action only if the feature will be uninstalled.
This condition only checks for a transition of the feature from an installed state of local to the absent state.
(?ComponentName = 3) AND ($ComponentName = 2 OR $ComponentName = 4)
Run action only if the component was installed locally, but is transitioning out of state.
The term ?ComponentName = 3 means the component is installed locally.
The term $ComponentName = 2 means that the action state on the component is absent.
The term $ComponentName = 4 means that the action state on the component is run from source. Note that an action state of advertise is not valid for a component.
?ComponentName = $ComponentName
Run action only on the reinstallation of a component.
Wix中提供了相关的判断方法和内置的状态值。
Prepending some special characters to the names will give them extra meaning:
% environment variable (name is case insensitive)
$ action state of component
? installed state of component
& action state of feature
! installed state of feature
The last four can return the following integer values:
-1 no action to be taken
1 advertised (only for components)
2 not present
3 on the local computer
4 run from the source
A few examples to make things clearer:
(&FeatureName = 3) AND NOT (!FeatureName = 3)
Run action only if the product will be installed locally. Do not run action on a reinstallation.
The term &FeatureName = 3 means the action is to install the feature locally.
The term NOT (!FeatureName = 3) means the feature is not installed locally.
(&FeatureName = 2) AND (!FeatureName = 3)
Run action only if the feature will be uninstalled.
This condition only checks for a transition of the feature from an installed state of local to the absent state.
(?ComponentName = 3) AND ($ComponentName = 2 OR $ComponentName = 4)
Run action only if the component was installed locally, but is transitioning out of state.
The term ?ComponentName = 3 means the component is installed locally.
The term $ComponentName = 2 means that the action state on the component is absent.
The term $ComponentName = 4 means that the action state on the component is run from source. Note that an action state of advertise is not valid for a component.
?ComponentName = $ComponentName
Run action only on the reinstallation of a component.
相关文章推荐
- Wix 使用总结(续)--关于Feature和Component的状态判断安装过程(转)
- CentOS6.5(带图形安装)在使用过程中遇到的一些网络问题迷惑(关于联网)
- 关于VS2012下fftw3的安装与使用小总结
- CocoaPods 的详细安装步骤,使用方法以及安装过程中出现的各种错误总结
- 关于Redis的安装及使用技巧总结
- 关于安装linux redhat后无法使用yum命令安装gcc-c++问题的解决过程
- 关于cocoapods的安装使用注意的事项(各种出错的总结)
- java和struts使用中的一点总结--关于写在页面上的select域的选项选中后保存状态的办法!
- 关于centOS7下使用rpm方式安装mysql5.6过程说明
- 关于angular的$state.include()方法与ui-sref和ui-sref-active的使用或者关于angular激活状态的判断
- spark菜鸟笔记-关于spark安装过程中遇到的问题总结
- 关于 12c GI 安装过程中,如果使用 NFS 方式提供 ASM 磁盘, 出现 ORA-15018 ORA-15072 ORA-15080 错误 (文档 ID 1945862.1)
- 总结:关于使用ffmpeg video4linux2 打开usb摄像头流的失败过程排查
- 关于Linq使用过程中遇见的一些小问题的总结
- 安装Xen、创建Xen虚拟机、使用Xen虚拟机过程中经常出现的错误总结
- Setup Factory 7.0使用总结六:安装过程中安装系统组件
- 关于PackagerManager的一些使用:判断手机上是否安装了某个应用
- BugFree的安装与使用以及使用过程中可能出现的问题总结
- 安装Xen、创建Xen虚拟机、使用Xen虚拟机过程中经常出现的错误总结