123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <?xml version="1.0" encoding="UTF-8"?>
- <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
- xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
- xmlns:fire="http://schemas.microsoft.com/wix/FirewallExtension">
- <?include Global.wxi ?>
- <?include Version.wxi ?>
- <?define FirstProductVersion=1.0.0 ?>
- <?define PlexMediaPlayerRegistryKey=Software\Plex, Inc.\Plex Media Player?>
-
- <Product Id="$(var.ProductUUID)"
- Name="$(var.ProductName)"
- Language="1033"
- Version="$(var.Version)"
- Manufacturer="Plex"
- UpgradeCode="$(var.ProductUUID)">
-
-
- <Package Id="*" Platform="x64" InstallerVersion="405" Compressed="yes" Description="$(var.ProductDesc)" InstallPrivileges="elevated"/>
-
- <Property Id="ALLUSERS" Value="1" />
-
-
- <Property Id="REINSTALLMODE" Value="amus"/>
-
- <Condition Message="?(var.LaunchCondition_PerUser)">ALLUSERS</Condition>
-
-
- <Media Id="1" Cabinet="pmp.cab" EmbedCab="yes" CompressionLevel="high" />
-
-
- <Condition Message="$(var.OldWindowsError)">
- <![CDATA[VersionNT >= 601]]>
- </Condition>
-
-
- <Icon Id="PlexMediaPlayerIcon" SourceFile="Plex.ico" />
-
- <?include ControlPanel.wxi ?>
-
- <Upgrade Id="$(var.ProductUUID)">
-
- <UpgradeVersion Minimum="$(var.Version)"
- IncludeMinimum="no"
- OnlyDetect="yes"
- Property="NEWERPRODUCTFOUND" />
-
- <UpgradeVersion Minimum="$(var.FirstProductVersion)"
- Maximum="$(var.Version)"
- IncludeMinimum="yes"
- IncludeMaximum="no"
- Property="PREVIOUSVERSIONINSTALLED" />
- </Upgrade>
-
-
- <util:CloseApplication Id="PlexMediaPlayer" CloseMessage="yes" Target="PlexMediaPlayer.exe" ElevatedCloseMessage="yes" RebootPrompt="yes" />
- <util:CloseApplication Id="PMPHelper" CloseMessage="yes" Target="PMPHelper.exe" ElevatedCloseMessage="yes" RebootPrompt="yes" />
- <InstallExecuteSequence>
- <Custom Action="WixCloseApplications" After="InstallInitialize" />
- </InstallExecuteSequence>
- <Property Id="AUTOLAUNCH" Value="0"/>
- <Property Id="WixShellExecTarget" Value="[INSTALLLOCATION]PlexMediaPlayer.exe" />
- <CustomAction Id="LaunchPMP" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" Return="ignore"/>
- <InstallExecuteSequence>
-
- <Custom Action="PreventDowngrades" After="FindRelatedProducts">NEWERPRODUCTFOUND</Custom>
-
- <RemoveExistingProducts After="InstallInitialize">PREVIOUSVERSIONINSTALLED</RemoveExistingProducts>
- <Custom Action="LaunchPMP" After="InstallFinalize"><![CDATA[AUTOLAUNCH = 1]]></Custom>
- </InstallExecuteSequence>
-
- <CustomAction Id="PreventDowngrades" Error="$(var.NewerVersionError)" />
-
- <Directory Id="TARGETDIR" Name="SourceDir">
- <Directory Id="ProgramFiles64Folder">
- <Directory Id="INSTALLLOCATION" Name="Msi">
- </Directory>
- </Directory>
- <Directory Id="ProgramMenuFolder">
- <Directory Id="PlexStartMenuFolder" Name="Plex Media Player"/>
- </Directory>
- </Directory>
-
-
- <DirectoryRef Id="PlexStartMenuFolder">
- <Component Id="PlexMediaPlayerShortcuts" Guid="*">
- <Shortcut Id="PlexMediaPlayerExeShortcut"
- Name="Plex Media Player"
- Description="Plex Media Player for Windows"
- Target="[INSTALLLOCATION]PlexMediaPlayer.exe"
- WorkingDirectory="INSTALLLOCATION" />
-
- <RegistryKey Root="HKCU" Key="Software\Plex, Inc.\Plex Media Player">
- <RegistryValue Name="InstallFolder" Type="string" Value="[INSTALLLOCATION]" Action="write" KeyPath="no" />
- </RegistryKey>
-
-
-
- <fire:FirewallException Id="FWX1" Name="Plex Media Player" Program="[INSTALLLOCATION]PlexMediaPlayer.exe" Scope="any" IgnoreFailure="yes" />
- <fire:FirewallException Id="FWX2" Name="Plex Media Player Helper" Program="[INSTALLLOCATION]PMPHelper.exe" Scope="any" IgnoreFailure="yes" />
-
- <RemoveFolder Id="PlexStartMenuFolder" On="uninstall" />
- </Component>
- </DirectoryRef>
-
- <Feature Id="ProductFeature" Title="Plex" Level="1">
- <ComponentGroupRef Id="ProgramFilesComponentGroup" />
- <ComponentRef Id="PlexMediaPlayerShortcuts" />
- </Feature>
- </Product>
- </Wix>
|