@@ -34,6 +34,9 @@
3434 <Custom Action="SetPerMachineFolder" After="SetPerUserFolder">ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS=1 OR (ALLUSERS=2 AND Privileged))</Custom>
3535 </InstallUISequence>
3636
37+<CustomActionRef Id="WixBroadcastSettingChange" />
38+<CustomActionRef Id="WixBroadcastEnvironmentChange" />
39+
3740 <Directory Id="TARGETDIR" Name="SourceDir">
3841
3942 <Directory Id="ProgramFilesFolder">
@@ -59,23 +62,7 @@
5962 Source="..\.cabal-sandbox\bin\pandoc-citeproc.exe" />
6063 </Component>
6164
62− <Component Id="UpdatePathUser"
63− Guid="C7B71304-09FC-421D-9EA2-AEFB7D61759D">
64− <Condition><![CDATA[ ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)) ]]></Condition>
65− <Environment Id="UpdatePathUser" Name="PATH" Action="set"
66− Part="last" Value="[APPLICATIONFOLDER]" System="no" />
67− <RegistryValue Root="HKCU" Key="Software\John MacFarlane\Pandoc"
68− Name="UserPathUpdated" Type="integer" Value="1" KeyPath="yes"/>
69− </Component>
70−
71− <Component Id="UpdatePathMachine"
72− Guid="0C642D0A-7175-4CD7-B11F-0A69F73FD757">
73− <Condition><![CDATA[ ALLUSERS=1 OR (ALLUSERS=2 AND Privileged) ]]></Condition>
74− <Environment Id="UpdatePathMachine" Name="PATH" Action="set"
75− Part="last" Value="[APPLICATIONFOLDER]" System="yes" />
76− <RegistryValue Root="HKLM" Key="Software\John MacFarlane\Pandoc"
77− Name="SystemPathUpdated" Type="integer" Value="1" KeyPath="yes"/>
78− </Component>
65+<Environment Id='UpdatePath' Name='PATH' Action='set' Permanent='no' System='no' Part='last' Value='[INSTALLDIR]' />
7966
8067 <Component Id="Documentation"
8168 Guid="A8D54A76-1A3D-4647-8327-81B69D39D8A3">
@@ -116,7 +103,7 @@
116103 </Feature>
117104
118105 <Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" />
119− <UIRef Id="WixUI_Minimal" />
106+ <UIRef Id="WixUI_InstallDir" />
120107 <UIRef Id="WixUI_ErrorProgressText" />
121108 <WixVariable Id="WixUILicenseRtf" Value="..\COPYING.rtf" />
122109