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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users