View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015784CMakeCPackpublic2015-10-12 10:322016-03-07 09:12
ReporterRonny Krüger 
Assigned ToNils Gladitz 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 3.3.2 
Target VersionFixed in VersionCMake 3.5 
Summary0015784: The WiX patch file parser ignores text nodes.
DescriptionThe following xml fragment is supposed to run the "test" action after the installer has finished but only if the product is not installed.

<nowiki><code xml>
  <CPackWiXPatch>
    <CPackWiXFragment Id="#PRODUCT">
      <CustomAction Id = "test" ... />
      <InstallExecuteSequence>
        <Custom Action="test" Before="InstallFinalize">NOT INSTALLED</Custom>
      </InstallExecuteSequence>
    </CPackWiXFragment>
  </CPackWiXPatch>
</nowiki>

Unfortunately this xml does not get completely through to WiX because the patch parser ignores the text node below the "Custom" node which contains the conditions on which the action is to be run.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0039581)
Nils Gladitz (developer)
2015-10-12 16:04

Thank you for the report.

I created a new "wix-text-node" topic to fix the issue:

https://cmake.org/gitweb?p=stage/cmake.git;a=commit;h=5a266095ee778fb700c067c55ff0b59777a72c50 [^]

If you can please give it a try and see if it fixes the issue for you as well.

This test case works for me:

https://github.com/ngladitz/cmake-wix-testsuite/tree/master/custom_action_with_condition [^]
(0039590)
Ronny Krüger (reporter)
2015-10-13 10:06

I have tested your change with my script and it works now as it should. Thanks for the quick fix.
(0039591)
Nils Gladitz (developer)
2015-10-13 10:29

Thank you for testing. I merged it to the "next" branch.
(0039606)
Nils Gladitz (developer)
2015-10-15 04:15

This is now in master: https://cmake.org/gitweb?p=cmake.git;a=commit;h=5a266095 [^]
(0040617)
Robert Maynard (manager)
2016-03-07 09:12

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2015-10-12 10:32 Ronny Krüger New Issue
2015-10-12 10:37 Brad King Assigned To => Nils Gladitz
2015-10-12 10:37 Brad King Status new => assigned
2015-10-12 16:04 Nils Gladitz Note Added: 0039581
2015-10-13 10:06 Ronny Krüger Note Added: 0039590
2015-10-13 10:29 Nils Gladitz Note Added: 0039591
2015-10-15 04:15 Nils Gladitz Note Added: 0039606
2015-10-15 04:15 Nils Gladitz Status assigned => resolved
2015-10-15 04:15 Nils Gladitz Fixed in Version => CMake 3.5
2015-10-15 04:15 Nils Gladitz Resolution open => fixed
2016-03-07 09:12 Robert Maynard Note Added: 0040617
2016-03-07 09:12 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team