Skip to content

Commit

Permalink
Windows installer: set GStreamer installation path based on registry …
Browse files Browse the repository at this point in the history
…search
  • Loading branch information
ferjm committed Oct 10, 2018
1 parent d048aa9 commit 593f69c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions support/windows/Servo.wxs.mako
Expand Up @@ -20,6 +20,12 @@
<Media Id="1"
Cabinet="Servo.cab"
EmbedCab="yes"/>
<Property Id="GSTINSTALLDIR">
<RegistrySearch Id="GStreamerRegistry" Type="raw" Root="HKLM" Key="SOFTWARE\WOW6432Node\GStreamer1.0\x86" Name="InstallDir"/>
</Property>
<Property Id="GSTINSTALLDIR64">
<RegistrySearch Id="GStreamerRegistry64" Type="raw" Root="HKLM" Key="SOFTWARE\WOW6432Node\GStreamer1.0\x86_64" Name="InstallDir"/>
</Property>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFiles64Folder" Name="PFiles">
<Directory Id="MozResearch" Name="Mozilla Research">
Expand All @@ -39,8 +45,8 @@
Icon="servo.exe"
Advertise="yes"/>
</File>
${include_dependencies()}
<Environment Id="PATH" Name="PATH" Value="C:\gstreamer\1.0\x86\bin;C:\gstreamer\1.0\x86_64\bin" Permanent="yes" Part="last" Action="set" System="yes" />
${include_dependencies()}
<Environment Id="PATH" Name="PATH" Value="[GSTINSTALLDIR]\1.0\x86\bin;[GSTINSTALLDIR64]\1.0\x86_64\bin" Permanent="yes" Part="last" Action="set" System="yes" />
</Component>

${include_directory(resources_path, "resources")}
Expand Down

0 comments on commit 593f69c

Please sign in to comment.