Skip to content

Commit

Permalink
Fix user/system MSI problem
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Jul 7, 2023
1 parent 6a795d3 commit 83dee19
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions deploy/msi/Julia.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@

<WixVariable Id="WixUILicenseRtf" Value="License.rtf" />

<Media Id="1" Cabinet="Sample.cab" EmbedCab="yes" DiskPrompt="CD-ROM #1" />
<Media Id="1" Cabinet="Julia.cab" EmbedCab="yes" DiskPrompt="CD-ROM #1" />
<Property Id="DiskPrompt" Value="Julia Installation [1]" />

<MajorUpgrade AllowDowngrades="yes"/>

<Feature Id="Complete" Level="1">
<ComponentRef Id="JulialauncherExecutable" />
<ComponentRef Id="JuliaupExecutable" />
<ComponentRef Id="JuliaupExecutableSystem" />
<ComponentRef Id="JuliaupExecutableUser" />
<ComponentRef Id="ProgramMenuDir" />
</Feature>

Expand All @@ -38,13 +39,23 @@
<Shortcut Id="startmenuJulia" Directory="ProgramMenuDir" Name="Julia" WorkingDirectory="INSTALLFOLDER" Icon="Julia.exe" IconIndex="0" Advertise="yes" />
</File>

<Environment Id='UpdatePath' Name='PATH' Action='set' Permanent='no' System='yes' Part='last' Value='[INSTALLFOLDER]' />

</Component>

<Component Id="JuliaupExecutable" Guid="2a881338-e0f2-4df7-8c02-71373891961c">
<Component Id="JuliaupExecutableSystem" Guid="2a881338-e0f2-4df7-8c02-71373891961c" Condition="NOT (ALLUSERS=2 OR MSIINSTALLPERUSER=1)">

<File Id="JuliaupEXE" Name="juliaup.exe" DiskId="1" Source="juliaup.exe" KeyPath="yes">
<File Id="JuliaupEXESystem" Name="juliaup.exe" DiskId="1" Source="juliaup.exe" KeyPath="yes">
</File>

<Environment Id='UpdatePathSystem' Name='PATH' Action='set' Permanent='no' System='yes' Part='last' Value='[INSTALLFOLDER]' />
</Component>

<Component Id="JuliaupExecutableUser" Guid="587bc90d-fcc9-4163-8e90-342a0f4178cb" Condition="ALLUSERS=2 OR MSIINSTALLPERUSER=1">

<File Id="JuliaupEXEUser" Name="juliaup.exe" DiskId="1" Source="juliaup.exe" KeyPath="yes">
</File>

<Environment Id='UpdatePathUser' Name='PATH' Action='set' Permanent='no' System='no' Part='last' Value='[INSTALLFOLDER]' />
</Component>

</Directory>
Expand Down

0 comments on commit 83dee19

Please sign in to comment.