Skip to content

Commit

Permalink
build: Tune when to check and set configuration defaults in MSI packa…
Browse files Browse the repository at this point in the history
…ging
  • Loading branch information
g-bougard committed Sep 25, 2023
1 parent f83286c commit cd508c0
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions contrib/windows/packaging/MSI_main-v2.wxs.tt
Original file line number Diff line number Diff line change
Expand Up @@ -313,38 +313,38 @@
<SetProperty Id="VARDIR" After="AppSearch" Value="[CMDLINE_VARDIR]"><![CDATA[CMDLINE_VARDIR<>"" OR CMDLINE_CONFIG="reset"]]></SetProperty>

<!-- Configuration defaults after handling command line and registry checks -->
<SetProperty Id="DEBUG" Action="DEBUG_Default" After="AppSearch" Value="0">NOT DEBUG</SetProperty>
<SetProperty Id="LOGGER" Action="LOGGER_Default" After="AppSearch" Value="file">NOT LOGGER</SetProperty>
<SetProperty Id="LOGFILE_MAXSIZE" Action="LOGFILE_MAXSIZE_Default" After="AppSearch" Value="4">NOT LOGFILE_MAXSIZE</SetProperty>
<SetProperty Id="NO_HTTPD" Action="NO_HTTPD_Default" After="AppSearch" Value="0">NOT NO_HTTPD</SetProperty>
<SetProperty Id="HTTPD_IP" Action="HTTPD_IP_Default" After="AppSearch" Value="0.0.0.0">NOT HTTPD_IP</SetProperty>
<SetProperty Id="HTTPD_PORT" Action="HTTPD_PORT_Default" After="AppSearch" Value="62354">NOT HTTPD_PORT</SetProperty>
<SetProperty Id="HTTPD_TRUST" Action="HTTPD_TRUST_Default" After="AppSearch" Value="127.0.0.1/32">NOT HTTPD_TRUST</SetProperty>
<SetProperty Id="SCAN_HOMEDIRS" Action="SCAN_HOMEDIRS_Default" After="AppSearch" Value="0">NOT SCAN_HOMEDIRS</SetProperty>
<SetProperty Id="SCAN_PROFILES" Action="SCAN_PROFILES_Default" After="AppSearch" Value="0">NOT SCAN_PROFILES</SetProperty>
<SetProperty Id="TIMEOUT" Action="TIMEOUT_Default" After="AppSearch" Value="180">NOT TIMEOUT</SetProperty>
<SetProperty Id="DELAYTIME" Action="DELAYTIME_Default" After="AppSearch" Value="3600">NOT DELAYTIME</SetProperty>
<SetProperty Id="NO_COMPRESSION" Action="NO_COMPRESSION_Default" After="AppSearch" Value="0">NOT NO_COMPRESSION</SetProperty>
<SetProperty Id="NO_P2P" Action="NO_P2P_Default" After="AppSearch" Value="0">NOT NO_P2P</SetProperty>
<SetProperty Id="REMOTE_WORKERS" Action="REMOTE_WORKERS_Default" After="AppSearch" Value="1">NOT REMOTE_WORKERS</SetProperty>
<SetProperty Id="HTML" Action="HTML_Default" After="AppSearch" Value="0">NOT HTML</SetProperty>
<SetProperty Id="JSON" Action="JSON_Default" After="AppSearch" Value="0">NOT JSON</SetProperty>
<SetProperty Id="LAZY" Action="LAZY_Default" After="AppSearch" Value="1">NOT LAZY</SetProperty>
<SetProperty Id="LISTEN" Action="LISTEN_Default" After="AppSearch" Value="0">NOT LISTEN</SetProperty>
<SetProperty Id="NO_SSL_CHECK" Action="NO_SSL_CHECK_Default" After="AppSearch" Value="0">NOT NO_SSL_CHECK</SetProperty>
<SetProperty Id="CONF_RELOAD_INTERVAL" Action="CONF_RELOAD_INTERVAL_Default" After="AppSearch" Value="0">NOT CONF_RELOAD_INTERVAL</SetProperty>
<SetProperty Id="BACKEND_COLLECT_TIMEOUT" Action="BACKEND_COLLECT_TIMEOUT_Default" After="AppSearch" Value="180">NOT BACKEND_COLLECT_TIMEOUT</SetProperty>
<SetProperty Id="DEBUG" Action="DEBUG_Default" After="SetDEBUG" Value="0">NOT DEBUG</SetProperty>
<SetProperty Id="LOGGER" Action="LOGGER_Default" After="SetLOGGER" Value="file">NOT LOGGER</SetProperty>
<SetProperty Id="LOGFILE_MAXSIZE" Action="LOGFILE_MAXSIZE_Default" After="SetLOGFILE_MAXSIZE" Value="4">NOT LOGFILE_MAXSIZE</SetProperty>
<SetProperty Id="NO_HTTPD" Action="NO_HTTPD_Default" After="SetNO_HTTPD" Value="0">NOT NO_HTTPD</SetProperty>
<SetProperty Id="HTTPD_IP" Action="HTTPD_IP_Default" After="SetHTTPD_IP" Value="0.0.0.0">NOT HTTPD_IP</SetProperty>
<SetProperty Id="HTTPD_PORT" Action="HTTPD_PORT_Default" After="SetHTTPD_PORT" Value="62354">NOT HTTPD_PORT</SetProperty>
<SetProperty Id="HTTPD_TRUST" Action="HTTPD_TRUST_Default" After="SetHTTPD_TRUST" Value="127.0.0.1/32">NOT HTTPD_TRUST</SetProperty>
<SetProperty Id="SCAN_HOMEDIRS" Action="SCAN_HOMEDIRS_Default" After="SetSCAN_HOMEDIRS" Value="0">NOT SCAN_HOMEDIRS</SetProperty>
<SetProperty Id="SCAN_PROFILES" Action="SCAN_PROFILES_Default" After="SetSCAN_PROFILES" Value="0">NOT SCAN_PROFILES</SetProperty>
<SetProperty Id="TIMEOUT" Action="TIMEOUT_Default" After="SetTIMEOUT" Value="180">NOT TIMEOUT</SetProperty>
<SetProperty Id="DELAYTIME" Action="DELAYTIME_Default" After="SetDELAYTIME" Value="3600">NOT DELAYTIME</SetProperty>
<SetProperty Id="NO_COMPRESSION" Action="NO_COMPRESSION_Default" After="SetNO_COMPRESSION" Value="0">NOT NO_COMPRESSION</SetProperty>
<SetProperty Id="NO_P2P" Action="NO_P2P_Default" After="SetNO_P2P" Value="0">NOT NO_P2P</SetProperty>
<SetProperty Id="REMOTE_WORKERS" Action="REMOTE_WORKERS_Default" After="SetREMOTE_WORKERS" Value="1">NOT REMOTE_WORKERS</SetProperty>
<SetProperty Id="HTML" Action="HTML_Default" After="SetHTML" Value="0">NOT HTML</SetProperty>
<SetProperty Id="JSON" Action="JSON_Default" After="SetJSON" Value="0">NOT JSON</SetProperty>
<SetProperty Id="LAZY" Action="LAZY_Default" After="SetLAZY" Value="1">NOT LAZY</SetProperty>
<SetProperty Id="LISTEN" Action="LISTEN_Default" After="SetLISTEN" Value="0">NOT LISTEN</SetProperty>
<SetProperty Id="NO_SSL_CHECK" Action="NO_SSL_CHECK_Default" After="SetNO_SSL_CHECK" Value="0">NOT NO_SSL_CHECK</SetProperty>
<SetProperty Id="CONF_RELOAD_INTERVAL" Action="CONF_RELOAD_INTERVAL_Default" After="SetCONF_RELOAD_INTERVAL" Value="0">NOT CONF_RELOAD_INTERVAL</SetProperty>
<SetProperty Id="BACKEND_COLLECT_TIMEOUT" Action="BACKEND_COLLECT_TIMEOUT_Default" After="SetBACKEND_COLLECT_TIMEOUT" Value="180">NOT BACKEND_COLLECT_TIMEOUT</SetProperty>

<!-- Installer configuration defaults -->
<SetProperty Id="QUICKINSTALL" Action="QUICKINSTALL_Default" After="AppSearch" Value="1">NOT QUICKINSTALL</SetProperty>
<SetProperty Id="ADD_FIREWALL_EXCEPTION" Action="ADD_FIREWALL_EXCEPTION_Default" After="AppSearch" Value="1">NOT ADD_FIREWALL_EXCEPTION</SetProperty>
<SetProperty Id="EXECMODE" Action="EXECMODE_Default" After="AppSearch" Value="1">NOT EXECMODE</SetProperty>
<SetProperty Id="RUNNOW" Action="RUNNOW_Default" After="AppSearch" Value="0">NOT RUNNOW</SetProperty>
<SetProperty Id="AGENTMONITOR" Action="AGENTMONITOR_Default" After="AppSearch" Value="0">NOT AGENTMONITOR</SetProperty>
<SetProperty Id="TASK_FREQUENCY" Action="TASK_FREQUENCY_Default" After="AppSearch" Value="hourly">NOT TASK_FREQUENCY</SetProperty>
<SetProperty Id="TASK_MINUTE_MODIFIER" Action="TASK_MINUTE_MODIFIER_Default" After="AppSearch" Value="15">NOT TASK_MINUTE_MODIFIER</SetProperty>
<SetProperty Id="TASK_HOURLY_MODIFIER" Action="TASK_HOURLY_MODIFIER_Default" After="AppSearch" Value="1">NOT TASK_HOURLY_MODIFIER</SetProperty>
<SetProperty Id="TASK_DAILY_MODIFIER" Action="TASK_DAILY_MODIFIER_Default" After="AppSearch" Value="1">NOT TASK_DAILY_MODIFIER</SetProperty>
<SetProperty Id="QUICKINSTALL" Action="QUICKINSTALL_Default" After="SetQUICKINSTALL" Value="1">NOT QUICKINSTALL</SetProperty>
<SetProperty Id="ADD_FIREWALL_EXCEPTION" Action="ADD_FIREWALL_EXCEPTION_Default" After="SetADD_FIREWALL_EXCEPTION" Value="1">NOT ADD_FIREWALL_EXCEPTION</SetProperty>
<SetProperty Id="EXECMODE" Action="EXECMODE_Default" After="SetEXECMODE" Value="1">NOT EXECMODE</SetProperty>
<SetProperty Id="RUNNOW" Action="RUNNOW_Default" After="SetRUNNOW" Value="0">NOT RUNNOW</SetProperty>
<SetProperty Id="AGENTMONITOR" Action="AGENTMONITOR_Default" After="SetAGENTMONITOR" Value="0">NOT AGENTMONITOR</SetProperty>
<SetProperty Id="TASK_FREQUENCY" Action="TASK_FREQUENCY_Default" After="SetTASK_FREQUENCY" Value="hourly">NOT TASK_FREQUENCY</SetProperty>
<SetProperty Id="TASK_MINUTE_MODIFIER" Action="TASK_MINUTE_MODIFIER_Default" After="SetTASK_MINUTE_MODIFIER" Value="15">NOT TASK_MINUTE_MODIFIER</SetProperty>
<SetProperty Id="TASK_HOURLY_MODIFIER" Action="TASK_HOURLY_MODIFIER_Default" After="SetTASK_HOURLY_MODIFIER" Value="1">NOT TASK_HOURLY_MODIFIER</SetProperty>
<SetProperty Id="TASK_DAILY_MODIFIER" Action="TASK_DAILY_MODIFIER_Default" After="SetTASK_DAILY_MODIFIER" Value="1">NOT TASK_DAILY_MODIFIER</SetProperty>

<!-- Fix properties handled as a checkbox, they must be undefined to uncheck the CB -->
<SetProperty Id="QUICKINSTALL" Sequence="ui" Action="QUICKINSTALL_Unset" After="AppSearch" Value=""><![CDATA[QUICKINSTALL<>"1"]]></SetProperty>
Expand Down

0 comments on commit cd508c0

Please sign in to comment.