stop immunet on install to correct config

This commit is contained in:
Mario Fetka
2012-02-15 15:19:22 +01:00
parent d64def3fa8
commit bc01b7a4c2
3 changed files with 74 additions and 119 deletions

58
CLIENT_DATA/local.xml Normal file
View File

@@ -0,0 +1,58 @@
<config>
<agent>
<initialscan>1</initialscan>
<agent_registered>1</agent_registered>
<scansettings>
<clamav>
<defInit>1</defInit>
<enable>1</enable>
<updater>
<enable>1</enable>
</updater>
<options>
<ondemand>
<scanarchives>1</scanarchives>
<scanpacked>1</scanpacked>
</ondemand>
</options>
</clamav>
<tetra>
<options>
<ondemand>
<scanarchives>1</scanarchives>
<scanpacked>1</scanpacked>
</ondemand>
</options>
</tetra>
<ethos>
<enable>1</enable>
</ethos>
<spero>
<enable>1</enable>
</spero>
<action>
<malware>1</malware>
<suspicious>1</suspicious>
</action>
</scansettings>
<driver>
<protmode>
<active>1</active>
<file>1</file>
<process>1</process>
</protmode>
</driver>
<cloud>
<upload>
<enabled>1</enabled>
</upload>
</cloud>
</agent>
<ui>
<notification>
<verbose>1</verbose>
<gaming>1</gaming>
<cloud>1</cloud>
</notification>
</ui>
</config>

View File

@@ -113,14 +113,16 @@ else
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
Message "Installing " + $ProductId$ + " 32 Bit..."
comment "Start setup program"
Winbatch_install_32
Sub_check_exitcode
comment "Copy files"
Files_install_32 /32Bit
Winbatch_install_32
Sub_check_exitcode
comment "Patch Registry"
Registry_install /32Bit
comment "Create shortcuts"
LinkFolder_install
comment "Stop Immunet Service"
Dosbatch_stop_immunet
if ($agent_scansettings_clamav_devInit$ = "1")
Dosbatch_agent_scansettings_clamav_devInit_32
endif
@@ -148,16 +150,18 @@ else
if ($agent_scansettings_tetra_options_ondemand_scanpacked$ = "1")
Dosbatch_agent_scansettings_tetra_options_ondemand_scanpacked_32
endif
comment "Start Immunet Service"
Dosbatch_start_immunet
endif
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
Message "Installing " + $ProductId$ + " 64 Bit..."
comment "Start setup program"
Winbatch_install_64
Sub_check_exitcode
comment "Copy files"
Files_install_64 /64Bit
Winbatch_install_64
Sub_check_exitcode
comment "Patch Registry"
Registry_install /64Bit
comment "Create shortcuts"
@@ -167,6 +171,12 @@ else
endif
[Dosbatch_stop_immunet]
net stop immunetprotect
taskkill /IM iptray.exe
[Dosbatch_start_immunet]
net start immunetprotect
[Dosbatch_agent_scansettings_clamav_devInit_32]
@@ -227,7 +237,7 @@ xml ed -O -u "/config/agent/scansettings/tetra/options/ondemand/scanpacked" -v $
[Files_install_32]
; Example of recursively copying some files into the installation directory:
;
;copy -s "%ScriptPath%\custom\*.*" "$InstallDir32$"
copy -s "%ScriptPath%\*.xml" "$InstallDir32$"
[Winbatch_install_64]
; Choose one of the following examples as basis for your installation
@@ -240,7 +250,7 @@ xml ed -O -u "/config/agent/scansettings/tetra/options/ondemand/scanpacked" -v $
[Files_install_64]
; Example of recursively copying some files into the installation directory:
;
;copy -s "%ScriptPath%\custom\*.*" "$InstallDir64$"
copy -s "%ScriptPath%\*.xml" "$InstallDir64$"
[Registry_install]
; Example of setting some values of an registry key: