Changeset 108057 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Feb 4, 2025 8:54:59 AM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167337
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/VirtualBox.wxs
r108038 r108057 160 160 <Binary Id="VBoxInstallHelper" SourceFile="$(env.PATH_OUT)\bin\VBoxInstallHelper.dll" /> 161 161 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" ?> 166 165 <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. --> 168 171 <Property Id="EXISTINGINSTALLDIR" Secure="yes"> 169 172 <RegistrySearch Id="RegistryGetInstallPath" Root="HKLM" Key="$(var.Property_RegKey)" Name="InstallDir" Type="raw" Bitness="$(var.Property_Bitness)" /> 170 173 </Property> 171 174 <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 180 176 <CustomAction Id="ca_UninstallTAPInstances" DllEntry="UninstallTAPInstances" Execute="deferred" Return="check" Impersonate="no" BinaryRef="VBoxInstallHelper" /> 181 182 177 <CustomAction Id="ca_UninstallVBoxDrv" DllEntry="UninstallVBoxDrv" Execute="deferred" Return="ignore" Impersonate="no" BinaryRef="VBoxInstallHelper" /> 183 178
Note:
See TracChangeset
for help on using the changeset viewer.