Commit 28c8b02b authored by Ludovic Fauvet's avatar Ludovic Fauvet Committed by Rafaël Carré

msi: improve 64-bit support

Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent d1f29d92
...@@ -23,9 +23,11 @@ ...@@ -23,9 +23,11 @@
<?if $(var.Platform) = "x64" ?> <?if $(var.Platform) = "x64" ?>
<?define Win64 = "yes" ?> <?define Win64 = "yes" ?>
<?define PlatformString = "64-bit"?> <?define PlatformString = "64-bit"?>
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
<?else ?> <?else ?>
<?define Win64 = "no" ?> <?define Win64 = "no" ?>
<?define PlatformString = "32-bit"?> <?define PlatformString = "32-bit"?>
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
<?endif ?> <?endif ?>
<?define AppFolder = "VLC" ?> <?define AppFolder = "VLC" ?>
......
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
InstallPrivileges='elevated' InstallPrivileges='elevated'
InstallScope='perMachine' InstallScope='perMachine'
InstallerVersion='200' InstallerVersion='200'
Compressed='yes'/> Compressed='yes'
Platforms='$(var.Platform)'/>
<MajorUpgrade Schedule="afterInstallInitialize" DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit."/> <MajorUpgrade Schedule="afterInstallInitialize" DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit."/>
...@@ -55,7 +56,7 @@ ...@@ -55,7 +56,7 @@
<Property Id="ApplicationFolderName" Value="$(var.Manufacturer)\$(var.AppFolder)" /> <Property Id="ApplicationFolderName" Value="$(var.Manufacturer)\$(var.AppFolder)" />
<Property Id="WixAppFolder" Value="WixPerMachineFolder" /> <Property Id="WixAppFolder" Value="WixPerMachineFolder" />
<Property Id="APPLICATIONFOLDER"> <Property Id="APPLICATIONFOLDER">
<RegistrySearch Id="FindInstallRegDir" Type="raw" Root="HKLM" Key="Software\VideoLAN\VLC" Name="InstallDir" /> <RegistrySearch Id="FindInstallRegDir" Type="raw" Root="HKLM" Win64="$(var.Win64)" Key="Software\VideoLAN\VLC" Name="InstallDir" />
</Property> </Property>
<WixVariable Id="WixUISupportPerUser" Value="0" /> <WixVariable Id="WixUISupportPerUser" Value="0" />
...@@ -65,7 +66,7 @@ ...@@ -65,7 +66,7 @@
<Media Id='1' Cabinet='product.cab' EmbedCab='yes' CompressionLevel="high" /> <Media Id='1' Cabinet='product.cab' EmbedCab='yes' CompressionLevel="high" />
<Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder' Name='PFiles'> <Directory Id='$(var.PlatformProgramFilesFolder)' Name='PFiles'>
<Directory Id='VideoLANFolder' Name='$(var.Manufacturer)'> <Directory Id='VideoLANFolder' Name='$(var.Manufacturer)'>
<Directory Id='APPLICATIONFOLDER' Name='$(var.AppFolder)' FileSource="$(var.SourceDir)"> <Directory Id='APPLICATIONFOLDER' Name='$(var.AppFolder)' FileSource="$(var.SourceDir)">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment