Skip to content

Commit 9ec2834

Browse files
committed
feat: Add FULL_INVENTORY_POSTPONE MSI installer commandline option support
1 parent f9f8bfe commit 9ec2834

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/windows/packaging/MSI_main-v2.wxs.tt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@
313313
<SetProperty Id="CMDLINE_VARDIR" Before="AppSearch" Value="[VARDIR]" />
314314
<SetProperty Id="VARDIR" After="AppSearch" Value="[CMDLINE_VARDIR]"><![CDATA[CMDLINE_VARDIR<>"" OR CMDLINE_CONFIG="reset"]]></SetProperty>
315315

316+
<Property Id="FULL_INVENTORY_POSTPONE" Secure="yes">
317+
<RegistrySearch Id="FullInventoryPostpone" Root="HKLM" Key="[%agent_regpath%]" Name="full-inventory-postpone" Type="raw"/>
318+
</Property>
319+
<SetProperty Id="CMDLINE_FULL_INVENTORY_POSTPONE" Before="AppSearch" Value="[FULL_INVENTORY_POSTPONE]" />
320+
<SetProperty Id="FULL_INVENTORY_POSTPONE" After="AppSearch" Value="[CMDLINE_FULL_INVENTORY_POSTPONE]"><![CDATA[CMDLINE_FULL_INVENTORY_POSTPONE<>"" OR CMDLINE_CONFIG="reset"]]></SetProperty>
321+
316322
<!-- Configuration defaults after handling command line and registry checks -->
317323
<SetProperty Id="DEBUG" Action="DEBUG_Default" After="LaunchConditions" Value="0"><![CDATA[NOT DEBUG OR (DEBUG<>"1" AND DEBUG<>"2")]]></SetProperty>
318324
<SetProperty Id="LOGGER" Action="LOGGER_Default" After="LaunchConditions" Value="file"><![CDATA[NOT LOGGER]]></SetProperty>
@@ -335,6 +341,7 @@
335341
<SetProperty Id="NO_SSL_CHECK" Action="NO_SSL_CHECK_Default" After="LaunchConditions" Value="0"><![CDATA[NOT NO_SSL_CHECK OR NO_SSL_CHECK<>"1"]]></SetProperty>
336342
<SetProperty Id="CONF_RELOAD_INTERVAL" Action="CONF_RELOAD_INTERVAL_Default" After="LaunchConditions" Value="0"><![CDATA[NOT CONF_RELOAD_INTERVAL]]></SetProperty>
337343
<SetProperty Id="BACKEND_COLLECT_TIMEOUT" Action="BACKEND_COLLECT_TIMEOUT_Default" After="LaunchConditions" Value="180"><![CDATA[NOT BACKEND_COLLECT_TIMEOUT]]></SetProperty>
344+
<SetProperty Id="FULL_INVENTORY_POSTPONE" Action="FULL_INVENTORY_POSTPONE_Default" After="LaunchConditions" Value="14"><![CDATA[NOT FULL_INVENTORY_POSTPONE]]></SetProperty>
338345

339346
<!-- Installer configuration defaults -->
340347
<SetProperty Id="QUICKINSTALL" Action="QUICKINSTALL_Default" After="LaunchConditions" Value="1"><![CDATA[NOT QUICKINSTALL OR QUICKINSTALL<>"0"]]></SetProperty>

0 commit comments

Comments
 (0)