Changeset 108074 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Feb 5, 2025 3:06:51 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167367
- Location:
- trunk/src/VBox/Installer/win
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp
r108073 r108074 1108 1108 1109 1109 /** 1110 * Checks if the running OS is (at least) Windows 10 (e.g. >= build 10000).1110 * Checks if the running OS is supported for installing (at least Windows 10 (e.g. >= build 10000)). 1111 1111 * 1112 1112 * Called from the MSI installer as custom action. 1113 1113 * 1114 1114 * @returns Always ERROR_SUCCESS. 1115 * Sets public property VBOX_IS_WINDOWS_10 to "" (empty / false) or "1" (success). 1115 * Sets public property VBOX_IS_WINDOWS_SUPPORTED to "" (empty / false) or "1" (success). 1116 * Sets public property VBOX_WIN_VER_MAJOR to the Windows major version. 1117 * Sets public property VBOX_WIN_VER_MINOR to the Windows minor version. 1116 1118 * 1117 1119 * @param hModule Windows installer module handle. 1118 1120 */ 1119 UINT __stdcall IsWindows 10(MSIHANDLE hModule)1121 UINT __stdcall IsWindowsSupported(MSIHANDLE hModule) 1120 1122 { 1121 1123 /* … … 1132 1134 if (RT_SUCCESS(rc)) 1133 1135 { 1134 VBoxMsiSetProp(hModule, L"VBOX_IS_WINDOWS_10", dwMaj >= 10 ? L"1" : L""); 1136 /* We support installing on Windows 10 or newer. */ 1137 VBoxMsiSetProp(hModule, L"VBOX_IS_WINDOWS_SUPPORTED", dwMaj >= 10 ? L"1" : L""); 1135 1138 VBoxMsiSetPropDWORD(hModule, L"VBOX_WIN_VER_MAJOR", dwMaj); 1136 1139 … … 1141 1144 VBoxMsiSetPropDWORD(hModule, L"VBOX_WIN_VER_MINOR", dwMin); 1142 1145 1143 logStringF(hModule, "IsWindows 10: Detected Windows %u.%u", dwMaj, dwMin);1146 logStringF(hModule, "IsWindowsSupported: Detected Windows %u.%u", dwMaj, dwMin); 1144 1147 } 1145 1148 else 1146 logStringF(hModule, "IsWindows 10: Error reading CurrentMinorVersionNumber (%Rrc)", rc);1149 logStringF(hModule, "IsWindowsSupported: Error reading CurrentMinorVersionNumber (%Rrc)", rc); 1147 1150 } 1148 1151 else 1149 logStringF(hModule, "IsWindows 10: Error reading CurrentMajorVersionNumber (%Rrc)", rc);1152 logStringF(hModule, "IsWindowsSupported: Error reading CurrentMajorVersionNumber (%Rrc)", rc); 1150 1153 1151 1154 RegCloseKey(hKey); 1152 1155 } 1153 1156 else 1154 logStringF(hModule, "IsWindows 10/RegOpenKeyExW: Error opening CurrentVersion key (%ld)", lrc);1157 logStringF(hModule, "IsWindowsSupported/RegOpenKeyExW: Error opening CurrentVersion key (%ld)", lrc); 1155 1158 1156 1159 return ERROR_SUCCESS; /* Never return failure. */ -
trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.def
r107990 r108074 33 33 IsMSCRTInstalled 34 34 IsPythonInstalled 35 IsWindows 1035 IsWindowsSupported 36 36 GetPlatformArchitecture 37 37 ArePythonAPIDepsInstalled -
trunk/src/VBox/Installer/win/UserInterface.wxi
r108038 r108074 1185 1185 <Custom Action="ca_OriginalTargetDir" After="FileCost" Condition="(NOT INSTALLDIR) AND (NOT EXISTINGINSTALLDIR)" /> 1186 1186 <Custom Action="ca_DefaultTargetDir" After="FileCost" Condition="NOT Installed AND (NOT INSTALLDIR) AND EXISTINGINSTALLDIR" /> 1187 <Custom Action="ca_IsWindows 10" After="CostFinalize" />1187 <Custom Action="ca_IsWindowsSupported" After="CostFinalize" /> 1188 1188 1189 1189 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?> -
trunk/src/VBox/Installer/win/VBoxMergeApp.wxi
r107383 r108074 51 51 <?if $(env.VBOX_SIGNING_MODE) != "none" ?> 52 52 <?if $(env.KBUILD_TARGET_ARCH) = "amd64" ?> 53 <Component Id="cp_VBoxSupCat_PreW10" Guid="673195c2-f315-42e7-ff00-5acbd91ea0bd" Bitness="$(var.Property_Bitness)" Condition="(NOT VBOX_IS_WINDOWS_ 10)">53 <Component Id="cp_VBoxSupCat_PreW10" Guid="673195c2-f315-42e7-ff00-5acbd91ea0bd" Bitness="$(var.Property_Bitness)" Condition="(NOT VBOX_IS_WINDOWS_SUPPORTED)"> 54 54 <File Id="file_VBoxSup_PreW10.cat" Name="VBoxSup.cat" Source="$(env.PATH_OUT)\bin\VBoxSup-PreW10.cat" /> 55 55 </Component> 56 56 <?endif?> 57 <Component Id="cp_VBoxSupCat_W10" Guid="589be90d-0286-4684-503d-a1681f9587bc" Bitness="$(var.Property_Bitness)" Condition="(VBOX_IS_WINDOWS_ 10)">57 <Component Id="cp_VBoxSupCat_W10" Guid="589be90d-0286-4684-503d-a1681f9587bc" Bitness="$(var.Property_Bitness)" Condition="(VBOX_IS_WINDOWS_SUPPORTED)"> 58 58 <File Id="file_VBoxSup.cat" Name="VBoxSup.cat" Source="$(env.VBOX_PATH_ATTESTATION_SIGNED)\VBoxSup.cat" /> 59 59 </Component> -
trunk/src/VBox/Installer/win/VBoxMergeAppCA.wxi
r108038 r108074 44 44 <?endif?> 45 45 46 <CustomAction Id="ca_IsWindows 10" DllEntry="IsWindows10" Execute="immediate" Return="ignore" Impersonate="no" BinaryRef="VBoxInstallHelper" />46 <CustomAction Id="ca_IsWindowsSupported" DllEntry="IsWindowsSupported" Execute="immediate" Return="ignore" Impersonate="no" BinaryRef="VBoxInstallHelper" /> 47 47 48 48 <!-- Makes sure we check if the chosen target directory is valid before allowing to install. See @bugref{10616} --> -
trunk/src/VBox/Installer/win/VBoxMergeAppSeq.wxi
r108038 r108074 52 52 <Custom Action="ca_CheckTargetDirPost" After="InstallFinalize" Condition="NOT REMOVE"/> 53 53 54 <Custom Action="ca_IsWindows 10" After="FileCost"/>54 <Custom Action="ca_IsWindowsSupported" After="FileCost"/> 55 55 56 56 </Include> -
trunk/src/VBox/Installer/win/VBoxMergeNetAdp6.wxi
r107006 r108074 28 28 <?if $(env.VBOX_SIGNING_MODE) != "none" ?> 29 29 <?if $(env.KBUILD_TARGET_ARCH) = "amd64" ?> 30 <Component Id="cp_NetAdp6DriverCat_PreW10" Guid="40aab6d8-a9ca-41bd-3c5e-bd768d44faa7" Bitness="$(var.Property_Bitness)" Condition="(NETWORKTYPE="NDIS6") AND (NOT VBOX_IS_WINDOWS_ 10)">30 <Component Id="cp_NetAdp6DriverCat_PreW10" Guid="40aab6d8-a9ca-41bd-3c5e-bd768d44faa7" Bitness="$(var.Property_Bitness)" Condition="(NETWORKTYPE="NDIS6") AND (NOT VBOX_IS_WINDOWS_SUPPORTED)"> 31 31 <!-- Note: ShortName is required to avoid naming collisions the the MSI file table. --> 32 32 <File Id="file_VBoxNetAdp6_PreW10.cat" ShortName="NetAdp61.cat" Name="VBoxNetAdp6.cat" Source="$(env.PATH_OUT)\bin\VBoxNetAdp6-PreW10.cat" /> 33 33 </Component> 34 34 <?endif?> 35 <Component Id="cp_NetAdp6DriverCat_W10" Guid="37431619-c0ac-4f6a-029e-6a8ac4cd58ad" Bitness="$(var.Property_Bitness)" Condition="(NETWORKTYPE="NDIS6") AND (VBOX_IS_WINDOWS_ 10)">35 <Component Id="cp_NetAdp6DriverCat_W10" Guid="37431619-c0ac-4f6a-029e-6a8ac4cd58ad" Bitness="$(var.Property_Bitness)" Condition="(NETWORKTYPE="NDIS6") AND (VBOX_IS_WINDOWS_SUPPORTED)"> 36 36 <!-- Note: ShortName is required to avoid naming collisions the the MSI file table. --> 37 37 <File Id="file_VBoxNetAdp6_W10.cat" ShortName="NetAdp62.cat" Name="VBoxNetAdp6.cat" Source="$(env.VBOX_PATH_ATTESTATION_SIGNED)\VBoxNetAdp6.cat" /> -
trunk/src/VBox/Installer/win/VBoxMergeNetLwf.wxi
r107006 r108074 30 30 <?if $(env.VBOX_SIGNING_MODE) != "none" ?> 31 31 <?if $(env.KBUILD_TARGET_ARCH) = "amd64" ?> 32 <Component Id="cp_NetLwfDriverCat_PreW10" Guid="cede9469-b1bc-4194-348f-8799485a6283" Bitness="$(var.Property_Bitness)" Condition="(NETWORKTYPE="NDIS6") AND (NOT VBOX_IS_WINDOWS_ 10)">32 <Component Id="cp_NetLwfDriverCat_PreW10" Guid="cede9469-b1bc-4194-348f-8799485a6283" Bitness="$(var.Property_Bitness)" Condition="(NETWORKTYPE="NDIS6") AND (NOT VBOX_IS_WINDOWS_SUPPORTED)"> 33 33 <!-- Note: ShortName is required to avoid naming collisions the the MSI file table. --> 34 34 <File Id="file_VBoxNetLwf_PreW10.cat" ShortName="NetLwf1.cat" Name="VBoxNetLwf.cat" Source="$(env.PATH_OUT)\bin\VBoxNetLwf-PreW10.cat" /> 35 35 </Component> 36 36 <?endif?> 37 <Component Id="cp_NetLwfDriverCat_W10" Guid="0932500d-4d45-4d79-8693-3192528d7cae" Bitness="$(var.Property_Bitness)" Condition="(NETWORKTYPE="NDIS6") AND (VBOX_IS_WINDOWS_ 10)">37 <Component Id="cp_NetLwfDriverCat_W10" Guid="0932500d-4d45-4d79-8693-3192528d7cae" Bitness="$(var.Property_Bitness)" Condition="(NETWORKTYPE="NDIS6") AND (VBOX_IS_WINDOWS_SUPPORTED)"> 38 38 <!-- Note: ShortName is required to avoid naming collisions the the MSI file table. --> 39 39 <File Id="file_VBoxNetLwf_W10.cat" ShortName="NetLwf2.cat" Name="VBoxNetLwf.cat" Source="$(env.VBOX_PATH_ATTESTATION_SIGNED)\VBoxNetLwf.cat" /> -
trunk/src/VBox/Installer/win/VBoxMergeUSB.wxi
r107006 r108074 29 29 <?if $(env.VBOX_SIGNING_MODE) != "none" ?> 30 30 <?if $(env.KBUILD_TARGET_ARCH) = "amd64" ?> 31 <Component Id="cp_USBFilterDriverCat_PreW10" Guid="ef18fb4d-4530-40db-2957-de2dc90243ab" Bitness="$(var.Property_Bitness)" Condition="(NOT VBOX_IS_WINDOWS_ 10)">31 <Component Id="cp_USBFilterDriverCat_PreW10" Guid="ef18fb4d-4530-40db-2957-de2dc90243ab" Bitness="$(var.Property_Bitness)" Condition="(NOT VBOX_IS_WINDOWS_SUPPORTED)"> 32 32 <!-- Note: ShortName is required to avoid naming collisions the the MSI file table. --> 33 33 <File Id="file_VBoxUSBMon_PreW10.cat" ShortName="UsbMon1.cat" Name="VBoxUSBMon.cat" Source="$(env.PATH_OUT)\bin\VBoxUSBMon-PreW10.cat" /> 34 34 </Component> 35 35 <?endif?> 36 <Component Id="cp_USBFilterDriverCat_W10" Guid="341ce4ca-d00e-4a43-f4e3-453eacc6b493" Bitness="$(var.Property_Bitness)" Condition="(VBOX_IS_WINDOWS_ 10)">36 <Component Id="cp_USBFilterDriverCat_W10" Guid="341ce4ca-d00e-4a43-f4e3-453eacc6b493" Bitness="$(var.Property_Bitness)" Condition="(VBOX_IS_WINDOWS_SUPPORTED)"> 37 37 <!-- Note: ShortName is required to avoid naming collisions the the MSI file table. --> 38 38 <File Id="file_VBoxUSBMon_W10.cat" ShortName="UsbMon2.cat" Name="VBoxUSBMon.cat" Source="$(env.VBOX_PATH_ATTESTATION_SIGNED)\VBoxUSBMon.cat" /> … … 48 48 <?if $(env.VBOX_SIGNING_MODE) != "none" ?> 49 49 <?if $(env.KBUILD_TARGET_ARCH) = "amd64" ?> 50 <Component Id="cp_USBDeviceDriverCat_PreW10" Guid="43cc14cb-06e9-46c2-d507-20423150ccbd" Bitness="$(var.Property_Bitness)" Condition="(NOT VBOX_IS_WINDOWS_ 10)">50 <Component Id="cp_USBDeviceDriverCat_PreW10" Guid="43cc14cb-06e9-46c2-d507-20423150ccbd" Bitness="$(var.Property_Bitness)" Condition="(NOT VBOX_IS_WINDOWS_SUPPORTED)"> 51 51 <File Id="file_VBoxUSB_PreW10.cat" Name="VBoxUSB.cat" Source="$(env.PATH_OUT)\bin\VBoxUSB-PreW10.cat" /> 52 52 </Component> 53 53 <?endif?> 54 <Component Id="cp_USBDeviceDriverCat_W10" Guid="2127015e-7a96-4b8d-6015-b1e51a75b5ba" Bitness="$(var.Property_Bitness)" Condition="(VBOX_IS_WINDOWS_ 10)">54 <Component Id="cp_USBDeviceDriverCat_W10" Guid="2127015e-7a96-4b8d-6015-b1e51a75b5ba" Bitness="$(var.Property_Bitness)" Condition="(VBOX_IS_WINDOWS_SUPPORTED)"> 55 55 <File Id="file_VBoxUSB_W10.cat" Name="VBoxUSB.cat" Source="$(env.VBOX_PATH_ATTESTATION_SIGNED)\VBoxUSB.cat" /> 56 56 </Component>
Note:
See TracChangeset
for help on using the changeset viewer.