<CPackWiXPatch>
<CPackWiXFragment Id="#PRODUCT">
<Feature Description="This feature adds [PRODUCTNAME] to the windows PATH so libraries can be found." Id="Add_PATH" Title="Add libraries to the PATH variable">
<Component Id="SetEnvSystem" Directory="TARGETDIR" Guid="">
<Condition>ADDTOPATH = "System"</Condition>
<Environment Action="set" Id="Path_System" Name="PATH" Part="last" Permanent="no" System="yes" Value="[INSTALL_ROOT]bin"/>
</Component>
<Component Id="SetEnvUser" Directory="TARGETDIR" Guid="">
<Condition>ADDTOPATH = "User"</Condition>
<Environment Action="set" Id="Path_User" Name="PATH" Part="last" Permanent="no" System="no" Value="[INSTALL_ROOT]bin"/>
</Component>
</Feature>
</CPackWiXFragment>
</CPackWiXPatch>
|