Re: [WiX-users] Component condition question
On 11-Apr-11 19:43, Greg wrote: I have a component with the following condition: lt;![CDATA[UPGRADE_FROM_VERSION= 6.1.8.85 AND InstallModeRemove]] That's problematic for two reasons: 1. InstallMode is an internal property and isn't guaranteed. 2. String comparison operators don't work correctly for versions. From the SDK: Note that the installer will not do direct comparisons of the Version data type in conditional statements. For example, you cannot use comparative operators to compare versions such as 01.10 and 1.010 in a conditional statement. Instead use a valid method to search for a version, such as described in Searching for Existing Applications, Files, Registry Entries or .ini File Entries, and then set a property. -- sig://boB http://joyofsetup.com/ -- Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Component condition question
Thanks Bob. I may be painting myself in a corner with that condition. But I think there must be a bug somewhere in one of my custom actions or in some wix code change I made that's causing the condition to fail. Is this a bad idea: I am setting InstallMode in a custom action, for example when the Change button is selected: Session.Property(InstallMode) = Change When running in silent mode, I set InstallMode to a value based on a command line parameter. I understand the potential problem with the version comparison, and I agree I may run into a problem with it someday. But isn't the SDK referring to a Version data type? I am doing a string comparison, and the UPGRADE_FROM_VERSION value is coming from a registry key as the SDK reference recommends - and there is no padding with zeros. The comparison in this case is 6.1.8.78 to 6.1.8.85, I have about 15 components, each with blocks of SQLs, with conditions like: UPGRADE_FROM_VERSION = 6.1.8.80 UPGRADE_FROM_VERSION = 6.1.8.78 UPGRADE_FROM_VERSION = 6.1.8.77 and I can see in the log from a full UI that for UPGRADE_FROM_VERSION= 6.1.8.78 the components with versions lower than 6.1.8.78 have Request: Null; Action: Null, and the others have Request: local; Action: local. Thanks, Greg -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Component-condition-question-tp6263309p6274877.html Sent from the wix-users mailing list archive at Nabble.com. -- Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Component condition question
On 14-Apr-11 20:48, Greg wrote: Is this a bad idea: I am setting InstallMode in a custom action, for example when the Change button is selected: Session.Property(InstallMode) = Change Sorry, I forgot that I renamed install mode for WixUI. There's no conflict. I understand the potential problem with the version comparison, and I agree I may run into a problem with it someday. But isn't the SDK referring to a Version data type? I am doing a string comparison, and the UPGRADE_FROM_VERSION value is coming from a registry key as the SDK reference recommends - and there is no padding with zeros. The doc is saying that version numbers don't work well with string comparisons. The zeroes are just one example. Another is 1.9.100 1.10.0. So they'll work for some version numbers and not others. -- sig://boB http://joyofsetup.com/ -- Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Component condition question
Try to use condition UPGRADE_FROM_VERSION = 6.1.8.85. Not sure it will fix your problem. Better approach is to use Upgrade element to find previous versions of your product, and then use properties which are set by FindRelatedProducts. -Maksim -Original Message- From: Greg [mailto:g...@swansonsoftware.com] Sent: Tuesday, April 12, 2011 11:53 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Component condition question Thanks Maksim. ThE uPGRADE_FROM_VERSION property is set to 6.1.8.78, which is the value I expected to see. The log shows uPGRADE_FROM_VERSION being set. Here's an example: MSI (s) (94!D0) [11:04:09:292]: PROPERTY CHANGE: Modifying UPGRADE_FROM_VERSION property. Its current value is '9.9.9.9'. Its new value: '6.1.8.78'. Greg -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Component-condition-question-tp6263309p6266492.html Sent from the wix-users mailing list archive at Nabble.com. -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Component condition question
I'm not sure I understand Maksim - the current value of UPGRADE_FROM_VERSION is 6.1.8.78, and the condition is UPGRADE_FROM_VERSION = 6.1.8.85 (ignoring AND InstallModeRemove for the moment). You are saying to try the condition UPGRADE_FROM_VERSION = 6.1.8.85, which is no different from what I have except for double quotes around the property name. I would like to use the approach you are suggesting but can't, FindRelatedProducts doesn't run during maintenance mode. Thanks, Greg -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Component-condition-question-tp6263309p6270119.html Sent from the wix-users mailing list archive at Nabble.com. -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Component condition question
Check that UPGRADE_FROM_VERSION is set during silent installation. -Original Message- From: Greg [mailto:g...@swansonsoftware.com] Sent: Tuesday, April 12, 2011 3:44 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Component condition question Hi: I have a component with the following condition: lt;![CDATA[UPGRADE_FROM_VERSION = 6.1.8.85 AND InstallModeRemove]] where UPGRADE_FROM_VERSION = 6.1.8.78 and InstallMode = Change. When I run the msi in full UI mode, the component installs. But when I run the msi in silent mode using the command line, the component does not install and the verbose log shows: MSI (s) (E0:18) [17:54:52:819]: Component: A22_6.1.8.81; Installed: Absent; Request: Local; Action: Null; Client State: Unknown I know the problem is with the UPGRADE_FROM_VERSION = 6.1.8.85 part of the condition because the component installs if I remove that and leave just the InstallModeRemove part of the condition. Is there anything I can do to debug this? Thanks, Greg -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Component-condition-question-tp6263309p6263309.html Sent from the wix-users mailing list archive at Nabble.com. -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Component condition question
Thanks Maksim. ThE uPGRADE_FROM_VERSION property is set to 6.1.8.78, which is the value I expected to see. The log shows uPGRADE_FROM_VERSION being set. Here's an example: MSI (s) (94!D0) [11:04:09:292]: PROPERTY CHANGE: Modifying UPGRADE_FROM_VERSION property. Its current value is '9.9.9.9'. Its new value: '6.1.8.78'. Greg -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Component-condition-question-tp6263309p6266492.html Sent from the wix-users mailing list archive at Nabble.com. -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Component condition question
Hi: I have a component with the following condition: lt;![CDATA[UPGRADE_FROM_VERSION = 6.1.8.85 AND InstallModeRemove]] where UPGRADE_FROM_VERSION = 6.1.8.78 and InstallMode = Change. When I run the msi in full UI mode, the component installs. But when I run the msi in silent mode using the command line, the component does not install and the verbose log shows: MSI (s) (E0:18) [17:54:52:819]: Component: A22_6.1.8.81; Installed: Absent; Request: Local; Action: Null; Client State: Unknown I know the problem is with the UPGRADE_FROM_VERSION = 6.1.8.85 part of the condition because the component installs if I remove that and leave just the InstallModeRemove part of the condition. Is there anything I can do to debug this? Thanks, Greg -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Component-condition-question-tp6263309p6263309.html Sent from the wix-users mailing list archive at Nabble.com. -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users