|
92 | 92 | Before="AddUserToHypervAdminGroup"
|
93 | 93 | Sequence="execute"/>
|
94 | 94 | <CustomAction Id="AddUserToHypervAdminGroup" BinaryKey="WixCA" DllEntry="WixQuietExec64" Execute="deferred" Impersonate="no" Return="ignore" />
|
95 |
| - <SetProperty Action="CACreateSMBShare" |
96 |
| - Id="CreateSMBShare" |
97 |
| - Value=""[POWERSHELLEXE]" -NonInteractive -ExecutionPolicy Bypass -NoProfile -Command "New-SmbShare -Name '[SHAREDDIRNAME]' -Path '[USERFOLDER]' -FullAccess '[LogonUser]'"" |
98 |
| - Before="CreateSMBShare" |
99 |
| - Sequence="execute"/> |
100 |
| - <CustomAction Id="CreateSMBShare" BinaryKey="WixCA" DllEntry="WixQuietExec64" Execute="deferred" Impersonate="no" Return="ignore" /> |
101 |
| - <SetProperty Action="CAEnableFileAndPrinterSharing" |
102 |
| - Id="EnableFileAndPrinterSharing" |
103 |
| - Value=""[POWERSHELLEXE]" -NonInteractive -ExecutionPolicy Bypass -NoProfile -Command "Set-NetFirewallRule -Group '@FirewallAPI.dll,-28502' -Enabled True -Profile 'Private,Public'"" |
104 |
| - Before="EnableFileAndPrinterSharing" |
105 |
| - Sequence="execute"/> |
106 |
| - <CustomAction Id="EnableFileAndPrinterSharing" BinaryKey="WixCA" DllEntry="WixQuietExec64" Execute="deferred" Impersonate="no" Return="ignore" /> |
107 |
| - <SetProperty Action="CARemoveSMBShare" |
108 |
| - Id="RemoveSMBShare" |
109 |
| - Value=""[POWERSHELLEXE]" -NonInteractive -ExecutionPolicy Bypass -NoProfile -Command "Remove-SmbShare -Name '[SHAREDDIRNAME]' -Force"" |
110 |
| - Before="RemoveSMBShare" |
111 |
| - Sequence="execute"/> |
112 |
| - <CustomAction Id="RemoveSMBShare" BinaryKey="WixCA" DllEntry="WixQuietExec64" Execute="deferred" Impersonate="no" Return="ignore" /> |
113 | 95 |
|
114 | 96 | <InstallExecuteSequence>
|
115 | 97 | <Custom Action="CreateCrcGroup" Before="ConfigureUsers"> NOT Installed AND NOT REMOVE~="ALL" AND NOT WIX_UPGRADE_DETECTED</Custom>
|
|
118 | 100 | <Custom Action="InstallHyperv" Before="CreateCrcGroup"> NOT Installed AND NOT REMOVE~="ALL" AND NOT WIX_UPGRADE_DETECTED</Custom>
|
119 | 101 | <Custom Action="RemoveCrcGroupRollback" After="CreateCrcGroup"> NOT Installed AND NOT REMOVE~="ALL" AND NOT WIX_UPGRADE_DETECTED</Custom>
|
120 | 102 | <Custom Action="RemoveCrcDaemonTask" Before='RemoveFiles'>Installed AND NOT UPGRADINGPRODUCTCODE</Custom>
|
121 |
| - <Custom Action="EnableFileAndPrinterSharing" After="AddUserToHypervAdminGroup"> NOT Installed AND NOT REMOVE~="ALL" AND NOT WIX_UPGRADE_DETECTED</Custom> |
122 |
| - <Custom Action="CreateSMBShare" After="EnableFileAndPrinterSharing"> NOT Installed AND NOT REMOVE~="ALL"</Custom> |
123 |
| - <Custom Action="RemoveSMBShare" After='RemoveCrcDaemonTask'>Installed AND NOT UPGRADINGPRODUCTCODE</Custom> |
124 | 103 | <ScheduleReboot After="InstallFinalize"> NOT Installed AND NOT REMOVE~="ALL" AND NOT WIX_UPGRADE_DETECTED</ScheduleReboot>
|
125 | 104 | </InstallExecuteSequence>
|
126 | 105 | <Feature Id="DefaultFeature" Title="Install core features" Absent="disallow" Level="1">
|
|
140 | 119 | <ProgressText Action="InstallHyperv">Installing Hyper-V</ProgressText>
|
141 | 120 | <ProgressText Action="AddUserToHypervAdminGroup">Adding user: [LogonUser] to Hyper-V Administrators group</ProgressText>
|
142 | 121 | <ProgressText Action="RemoveCrcDaemonTask">Removing crcDaemon task</ProgressText>
|
143 |
| - <ProgressText Action="CreateSMBShare">Creating share named: [SHAREDDIRNAME] for folder: [USERFOLDER]</ProgressText> |
144 |
| - <ProgressText Action="RemoveSMBShare">Removing share named: [SHAREDDIRNAME] for folder: [USERFOLDER]</ProgressText> |
145 |
| - <ProgressText Action="EnableFileAndPrinterSharing">Enabling file and printer Sharing</ProgressText> |
146 | 122 | </UI>
|
147 | 123 | <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
|
148 | 124 | <!-- this should help to propagate env var changes -->
|
|
0 commit comments