Start Cleanup and add license support
This commit is contained in:
@@ -71,7 +71,7 @@ Set $MinimumSpace$ = "50 MB"
|
||||
; the path were we find the product after the installation
|
||||
Set $InstallDir32$ = "%ProgramFiles32Dir%\Immunet"
|
||||
Set $InstallDir64$ = "%ProgramFiles64Dir%\Immunet"
|
||||
Set $LicenseRequired$ = "false"
|
||||
Set $LicenseRequired$ = "true"
|
||||
Set $LicensePool$ = "p_" + $ProductId$
|
||||
; ----------------------------------------------------------------
|
||||
|
||||
@@ -181,6 +181,10 @@ else
|
||||
LinkFolder_install
|
||||
comment "Stop Immunet Service"
|
||||
Dosbatch_stop_immunet
|
||||
comment "Set license key"
|
||||
Dosbatch_config_agent_license_key_32
|
||||
|
||||
|
||||
if ($agent_scansettings_clamav_devInit$ = "1")
|
||||
Dosbatch_agent_scansettings_clamav_devInit_32
|
||||
endif
|
||||
@@ -271,6 +275,9 @@ else
|
||||
LinkFolder_install
|
||||
comment "Stop Immunet Service"
|
||||
Dosbatch_stop_immunet
|
||||
comment "Set license key"
|
||||
Dosbatch_config_agent_license_key_64
|
||||
|
||||
if ($agent_scansettings_clamav_devInit$ = "1")
|
||||
Dosbatch_agent_scansettings_clamav_devInit_64
|
||||
endif
|
||||
@@ -359,6 +366,10 @@ taskkill /IM iptray.exe
|
||||
net start immunetprotect
|
||||
|
||||
|
||||
[Dosbatch_config_agent_license_key_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/license/key" -v $LicenseKey$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_clamav_devInit_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/clamav/defInit" -v $agent_scansettings_clamav_devInit$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
@@ -437,6 +448,11 @@ xml ed -O -u "/config/ui/notification/cloud" -v $ui_notification_cloud$ $Install
|
||||
|
||||
|
||||
|
||||
|
||||
[Dosbatch_config_agent_license_key_64]
|
||||
copy $InstallDir64$\local.xml $InstallDir64$\local.xml.old
|
||||
xml ed -O -u "/config/agent/license/key" -v $LicenseKey$ $InstallDir64$\local.xml.old > $InstallDir64$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_clamav_devInit_64]
|
||||
copy $InstallDir64$\local.xml $InstallDir64$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/clamav/defInit" -v $agent_scansettings_clamav_devInit$ $InstallDir64$\local.xml.old > $InstallDir64$\local.xml
|
||||
|
||||
Reference in New Issue
Block a user