<CPackWiXPatch>
  <CPackWiXFragment Id="CM_CP_bin.codacheck.exe">
    <Environment Id="PATH" Name="PATH" Value="[TARGETDIR]\bin" Permanent="yes" Part="last" Action="set" System="yes" />
  </CPackWiXFragment>
</CPackWiXPatch>

<CPackWiXPatch>
  <CPackWiXFragment Id="CM_CP_bin.codacheck.exe">
    <Environment Id="PATH" Name="PATH" Value="[INSTALL_ROOT]\bin" Permanent="yes" Part="last" Action="set" System="yes" />
  </CPackWiXFragment>
</CPackWiXPatch>

Change variable for installation dir
Change variable for installation dir
