|
34 | 34 | </DirectorySearch>
|
35 | 35 | </Property>
|
36 | 36 |
|
37 |
| - <!-- |
38 |
| - Property WSL_INSTALL is set at runtime and used as the condition to run the `WSLFeatureComponent` Component: |
39 |
| - WSL is installed only if all these conditions are met: |
40 |
| - - WSL isn't already installed |
41 |
| - - The user has set property `MACHINE_PROVIDER` to "wsl" |
42 |
| - - The user hasn't set property `WITH_WSL` to 0 |
43 |
| - --> |
44 |
| - <SetProperty Id="WSL_INSTALL" Before="AppSearch" Value="1" Sequence="first" Condition="(HAS_WSLFEATURE = 0) AND (MACHINE_PROVIDER = "wsl") AND (NOT (WITH_WSL = 0))" /> |
45 |
| - <!-- |
46 |
| - Property HYPERV_INSTALL is set at runtime and used as the condition to run the `HyperVFeatureComponent` Component: |
47 |
| - HyperV is installed only if all these conditions are met: |
48 |
| - - HyperV isn't already installed |
49 |
| - - The user has set property `MACHINE_PROVIDER` to "hyperv" |
50 |
| - - The user hasn't set property `WITH_HYPERV` to 0 |
51 |
| - --> |
52 |
| - <SetProperty Id="HYPERV_INSTALL" Before="AppSearch" Value="1" Sequence="first" Condition="(HAS_HYPERVFEATURE = 0) AND (MACHINE_PROVIDER = "hyperv") AND (NOT (WITH_HYPERV = 0))" /> |
53 | 37 | <!--
|
54 | 38 | Property CREATE_MACHINE_PROVIDER_CONFIG_FILE is set at runtime and used as the condition to run the `MachineProviderConfigFile` Component:
|
55 | 39 | The machine provider config file is created (or is not deleted if it already exist) if these conditions are met:
|
|
71 | 55 | <CustomAction Id="CheckWSL" Execute="firstSequence" DllEntry="CheckWSL" BinaryRef="PodmanHooks" />
|
72 | 56 | <CustomAction Id="CheckHyperV" Execute="firstSequence" DllEntry="CheckHyperV" BinaryRef="PodmanHooks" />
|
73 | 57 | <util:BroadcastEnvironmentChange />
|
74 |
| - <ComponentGroup Id="WSLFeature" Directory="INSTALLDIR"> |
75 |
| - <Component Id="WSLFeatureComponent" Guid="F6A693BC-186C-4E64-8015-C3073013B3A8" Condition="(NOT Installed) AND (WSL_INSTALL = 1)"> |
76 |
| - <CreateFolder /> |
77 |
| - <PanelSW:Dism EnableFeature="VirtualMachinePlatform" ErrorHandling="prompt" /> |
78 |
| - <PanelSW:Dism EnableFeature="Microsoft-Windows-Subsystem-Linux" ErrorHandling="prompt" /> |
79 |
| - </Component> |
80 |
| - </ComponentGroup> |
81 |
| - <ComponentGroup Id="HyperVFeature" Directory="INSTALLDIR"> |
82 |
| - <Component Id="HyperVFeatureComponent" Guid="F7B2D4C9-6C89-46BB-B4EA-FF39424972F3" Condition="(NOT Installed) AND (HYPERV_INSTALL = 1)"> |
83 |
| - <CreateFolder /> |
84 |
| - <PanelSW:Dism EnableFeature="Microsoft-Hyper-V" ErrorHandling="prompt" /> |
85 |
| - </Component> |
86 |
| - </ComponentGroup> |
87 | 58 | <Feature Id="Complete" Level="1">
|
88 | 59 | <ComponentRef Id="INSTALLDIR_Component" />
|
89 | 60 | <ComponentRef Id="EnvEntriesComponent" />
|
|
94 | 65 | <?endif?>
|
95 | 66 | <ComponentRef Id="GuideHTMLComponent" />
|
96 | 67 | <ComponentGroupRef Id="ManFiles" />
|
97 |
| - <ComponentGroupRef Id="WSLFeature" /> |
98 |
| - <ComponentGroupRef Id="HyperVFeature" /> |
99 | 68 | </Feature>
|
100 | 69 | <Feature Id="MachineProviderConfig" Level="1">
|
101 | 70 | <ComponentRef Id="MachineProviderConfigFile" />
|
|
114 | 83 | </UI>
|
115 | 84 |
|
116 | 85 | <InstallExecuteSequence>
|
117 |
| - <Custom Action="CheckWSL" Before="SetWSL_INSTALL" /> |
118 |
| - <Custom Action="CheckHyperV" Before="SetHYPERV_INSTALL" /> |
119 |
| - <ForceReboot After="DismX86" Condition="(NOT Installed) AND (NOT UpdateStarted) AND (NOT BURNMSIUNINSTALL) AND ((WSL_INSTALL = 1) OR (HYPERV_INSTALL = 1)) AND (NOT AFTERREBOOT)" /> |
| 86 | + <Custom Action="CheckWSL" Before="InstallFiles" /> |
| 87 | + <Custom Action="CheckHyperV" Before="InstallFiles" /> |
120 | 88 | </InstallExecuteSequence>
|
121 | 89 | <Binary Id="PodmanHooks" SourceFile="artifacts/podman-msihooks.dll" />
|
122 | 90 |
|
|
0 commit comments