Start Cleanup and add license support

This commit is contained in:
Mario Fetka
2012-02-25 07:52:24 +01:00
parent 664b9bc3e9
commit f9a1dcb8ba
4 changed files with 23 additions and 9 deletions

View File

@@ -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