@@ -48,9 +48,26 @@
4848 Source="..\COPYRIGHT.txt" />
4949 <File Id="pandocCOPYING" Name="COPYING.rtf"
5050 Source="..\COPYING.rtf" />
51− <Environment Id="UpdatePath" Name="PATH" Action="set"
52− Part="last" Value="[APPLICATIONFOLDER]" />
5351 </Component>
52+
53+ <Component Id="UpdatePathUser"
54+ Guid="C7B71304-09FC-421D-9EA2-AEFB7D61759D">
55+ <Condition><![CDATA[ ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)) ]]></Condition>
56+ <Environment Id="UpdatePathUser" Name="PATH" Action="set"
57+ Part="last" Value="[APPLICATIONFOLDER]" System="no" />
58+ <RegistryValue Root="HKCU" Key="Software\John MacFarlane\Pandoc"
59+ Name="UserPathUpdated" Type="integer" Value="1" KeyPath="yes"/>
60+ </Component>
61+
62+ <Component Id="UpdatePathMachine"
63+ Guid="0C642D0A-7175-4CD7-B11F-0A69F73FD757">
64+ <Condition><![CDATA[ ALLUSERS=1 OR (ALLUSERS=2 AND Privileged) ]]></Condition>
65+ <Environment Id="UpdatePathMachine" Name="PATH" Action="set"
66+ Part="last" Value="[APPLICATIONFOLDER]" System="yes" />
67+ <RegistryValue Root="HKLM" Key="Software\John MacFarlane\Pandoc"
68+ Name="SystemPathUpdated" Type="integer" Value="1" KeyPath="yes"/>
69+ </Component>
70+
5471 <Component Id="Documentation"
5572 Guid="A8D54A76-1A3D-4647-8327-81B69D39D8A3">
5673 <File Id="pandocREADME" Name="Pandoc User's Guide.html"
@@ -77,6 +94,8 @@
7794 <Feature Id="Complete" Level="1" Title="Pandoc $(var.VERSION)" Description="Complete package" Display="expand" ConfigurableDirectory="APPLICATIONFOLDER">
7895 <Feature Id="MainProgram" Title="Program" Description="The main executable." Level="1">
7996 <ComponentRef Id="MainExecutable" />
97+ <ComponentRef Id="UpdatePathUser" />
98+ <ComponentRef Id="UpdatePathMachine" />
8099 </Feature>
81100 <Feature Id="Manual" Title="Manual">
82101 <ComponentRef Id="Documentation" />