VirtualBox

Changeset 108057 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Feb 4, 2025 8:54:59 AM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167337
Message:

Windows/Installer: Use ProgramFiles64 (i.e. "Program Files") as the initial target directory on ARM64. bugref:10849

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/VirtualBox.wxs

    r108038 r108057  
    160160    <Binary Id="VBoxInstallHelper" SourceFile="$(env.PATH_OUT)\bin\VBoxInstallHelper.dll" />
    161161
    162     <!-- Custom actions -->
    163 
    164     <!-- Figure out where a previous installation was, if any -->
    165 <?if $(env.KBUILD_TARGET_ARCH) = "amd64" ?>
     162    <!-- Figure out the initial (original) installation directory.
     163         Note: For ARM64 this also will be ProgramFiles64Folder. See https://learn.microsoft.com/en-us/windows/arm/faq -->
     164<?if $(env.KBUILD_TARGET_ARCH) = "amd64" or $(env.KBUILD_TARGET_ARCH) = "arm64" ?>
    166165    <CustomAction Id="ca_OriginalTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[ProgramFiles64Folder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
    167 
     166<?else?>
     167    <CustomAction Id="ca_OriginalTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[ProgramFilesFolder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
     168<?endif?>
     169
     170    <!-- Figure out where a previous installation was, if any. -->
    168171    <Property Id="EXISTINGINSTALLDIR" Secure="yes">
    169172        <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir" Type="raw" Bitness="$(var.Property_Bitness)" />
    170173    </Property>
    171174    <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
    172 <?else?>
    173     <CustomAction Id="ca_OriginalTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[ProgramFilesFolder]\$(env.VBOX_VENDOR_SHORT)\VirtualBox" />
    174 
    175     <Property Id="EXISTINGINSTALLDIR" Secure="yes">
    176         <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir" Type="raw" Bitness="$(var.Property_Bitness)" />
    177     </Property>
    178     <CustomAction Id="ca_DefaultTargetDir" Execute="firstSequence" Property="INSTALLDIR" Value="[EXISTINGINSTALLDIR]" />
    179 <?endif?>
     175
    180176    <CustomAction Id="ca_UninstallTAPInstances" DllEntry="UninstallTAPInstances" Execute="deferred" Return="check" Impersonate="no" BinaryRef="VBoxInstallHelper" />
    181 
    182177    <CustomAction Id="ca_UninstallVBoxDrv" DllEntry="UninstallVBoxDrv" Execute="deferred" Return="ignore" Impersonate="no" BinaryRef="VBoxInstallHelper" />
    183178
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette