move to new buildsystem and do devel xmlconfig
This commit is contained in:
@@ -1 +0,0 @@
|
||||
This dir should contain custom Innunet config.XML
|
||||
@@ -28,6 +28,25 @@ set $INST_architecture$ = GetProductProperty("install_architecture","system spec
|
||||
|
||||
Set $LogDir$ = "%SystemDrive%\tmp"
|
||||
|
||||
DevVar $agent_scansettings_clamav_devInit$
|
||||
DevVar $agent_scansettings_clamav_enable$
|
||||
DevVar $agent_scansettings_clamav_updater_enable$
|
||||
DevVar $agent_scansettings_clamav_options_ondemand_scanarchives$
|
||||
DevVar $agent_scansettings_clamav_options_ondemand_scanpacked$
|
||||
DevVar $agent_scansettings_tetra_options_ondemand_scanarchives$
|
||||
DevVar $agent_scansettings_tetra_options_ondemand_scanpacked$
|
||||
|
||||
|
||||
; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
|
||||
; and adds the following variables:
|
||||
; from builder-product.cfg : all variables definded by attribute WINST[index]
|
||||
; from builder-product.cfg : VENDOR PN VERSION RELEASE PRIORITY ADVICE TYPE
|
||||
; from opsi-builder.cfg : CREATOR_TAG CREATOR_NAME CREATOR_EMAIL
|
||||
; auto generated winst-variables
|
||||
; $IconFile$: path to product picture
|
||||
;
|
||||
@@BUILDER_VARIABLES@@
|
||||
|
||||
; ----------------------------------------------------------------
|
||||
; - Please edit the following values -
|
||||
; ----------------------------------------------------------------
|
||||
@@ -43,6 +62,34 @@ Set $LicenseRequired$ = "false"
|
||||
Set $LicensePool$ = "p_" + $ProductId$
|
||||
; ----------------------------------------------------------------
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_clamav_devInit$ = GetProductProperty("agent_scansettings_clamav_devInit", "1")
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_clamav_enable$ = GetProductProperty("agent_scansettings_clamav_enable", "1")
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_clamav_updater_enable$ = GetProductProperty("agent_scansettings_clamav_updater_enable", "1")
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_clamav_options_ondemand_scanarchives$ = GetProductProperty("agent_scansettings_clamav_options_ondemand_scanarchives", "1")
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_clamav_options_ondemand_scanpacked$ = GetProductProperty("agent_scansettings_clamav_options_ondemand_scanpacked", "1")
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_tetra_options_ondemand_scanarchives$ = GetProductProperty("agent_scansettings_tetra_options_ondemand_scanarchives", "1")
|
||||
|
||||
comment "Flag_NoWindowsTour"
|
||||
comment "description: No Windows Tour"
|
||||
Set $agent_scansettings_tetra_options_ondemand_scanpacked$ = GetProductProperty("agent_scansettings_tetra_options_ondemand_scanpacked", "1")
|
||||
|
||||
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
|
||||
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
|
||||
isFatalError
|
||||
@@ -74,6 +121,34 @@ else
|
||||
Registry_install /32Bit
|
||||
comment "Create shortcuts"
|
||||
LinkFolder_install
|
||||
if ($agent_scansettings_clamav_devInit$ = "1")
|
||||
Dosbatch_agent_scansettings_clamav_devInit_32
|
||||
endif
|
||||
|
||||
if ($agent_scansettings_clamav_enable$ = "1")
|
||||
Dosbatch_agent_scansettings_clamav_enable_32
|
||||
endif
|
||||
|
||||
if ($agent_scansettings_clamav_updater_enable$ = "1")
|
||||
Dosbatch_agent_scansettings_clamav_updater_enable_32
|
||||
endif
|
||||
|
||||
if ($agent_scansettings_clamav_options_ondemand_scanarchives$ = "1")
|
||||
Dosbatch_agent_scansettings_clamav_options_ondemand_scanarchives_32
|
||||
endif
|
||||
|
||||
if ($agent_scansettings_clamav_options_ondemand_scanpacked$ = "1")
|
||||
Dosbatch_agent_scansettings_clamav_options_ondemand_scanpacked_32
|
||||
endif
|
||||
|
||||
if ($agent_scansettings_tetra_options_ondemand_scanarchives$ = "1")
|
||||
Dosbatch_agent_scansettings_tetra_options_ondemand_scanarchives_32
|
||||
endif
|
||||
|
||||
if ($agent_scansettings_tetra_options_ondemand_scanpacked$ = "1")
|
||||
Dosbatch_agent_scansettings_tetra_options_ondemand_scanpacked_32
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
|
||||
@@ -91,17 +166,68 @@ else
|
||||
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
[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
|
||||
|
||||
[Dosbatch_agent_scansettings_clamav_enable_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/clamav/enable" -v $agent_scansettings_clamav_enable$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_clamav_updater_enable_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/clamav/updater/enable" -v $agent_scansettings_clamav_updater_enable$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_clamav_updater_enable_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/clamav/updater/enable" -v $agent_scansettings_clamav_updater_enable$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_clamav_options_ondemand_scanarchives_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/clamav/options/ondemand/scanarchives" -v $agent_scansettings_clamav_options_ondemand_scanarchives$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_clamav_options_ondemand_scanpacked_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/clamav/options/ondemand/scanpacked" -v $agent_scansettings_clamav_options_ondemand_scanpacked$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_tetra_options_ondemand_scanarchives_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/tetra/options/ondemand/scanarchives" -v $agent_scansettings_tetra_options_ondemand_scanarchives$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
[Dosbatch_agent_scansettings_tetra_options_ondemand_scanpacked_32]
|
||||
copy $InstallDir32$\local.xml $InstallDir32$\local.xml.old
|
||||
xml ed -O -u "/config/agent/scansettings/tetra/options/ondemand/scanpacked" -v $agent_scansettings_tetra_options_ondemand_scanpacked$ $InstallDir32$\local.xml.old > $InstallDir32$\local.xml
|
||||
|
||||
;/config/agent/scansettings/ethos/enable
|
||||
;/config/agent/scansettings/spero/enable
|
||||
;/config/agent/scansettings/action/malware
|
||||
;/config/agent/scansettings/action/suspicious
|
||||
;/config/agent/driver/protmode/active
|
||||
;/config/agent/driver/protmode/file
|
||||
;/config/agent/driver/protmode/process
|
||||
;/config/agent/cloud/upload/enabled
|
||||
;/config/ui/notification/verbose
|
||||
;/config/ui/notification/gaming
|
||||
;/config/ui/notification/cloud
|
||||
;/config/ui/banner/currentfile
|
||||
;/config/ui/banner/lastmod
|
||||
;/config/updater/lastupdatechecked
|
||||
|
||||
|
||||
[Winbatch_install_32]
|
||||
; Choose one of the following examples as basis for your installation
|
||||
; You can use $LicenseKey$ var to pass a license key to the installer
|
||||
;
|
||||
; === Nullsoft Scriptable Install System ================================================================
|
||||
"%ScriptPath%\X86FILE" /S
|
||||
"$Install32Exe$" /S
|
||||
|
||||
[Files_install_32]
|
||||
; Example of recursively copying some files into the installation directory:
|
||||
;
|
||||
copy -s "%ScriptPath%\custom\*.*" "$InstallDir32$"
|
||||
;copy -s "%ScriptPath%\custom\*.*" "$InstallDir32$"
|
||||
|
||||
[Winbatch_install_64]
|
||||
; Choose one of the following examples as basis for your installation
|
||||
@@ -109,12 +235,12 @@ copy -s "%ScriptPath%\custom\*.*" "$InstallDir32$"
|
||||
;
|
||||
; === MSI package =======================================================================================
|
||||
; You may use the parameter PIDKEY=$Licensekey$
|
||||
"%ScriptPath%\AMD64FILE" /S
|
||||
"$Install64Exe$" /S
|
||||
|
||||
[Files_install_64]
|
||||
; Example of recursively copying some files into the installation directory:
|
||||
;
|
||||
copy -s "%ScriptPath%\custom\*.*" "$InstallDir64$"
|
||||
;copy -s "%ScriptPath%\custom\*.*" "$InstallDir64$"
|
||||
|
||||
[Registry_install]
|
||||
; Example of setting some values of an registry key:
|
||||
|
||||
@@ -26,6 +26,16 @@ set $INST_architecture$ = GetProductProperty("install_architecture","system spec
|
||||
|
||||
Set $LogDir$ = "%SystemDrive%\tmp"
|
||||
|
||||
; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
|
||||
; and adds the following variables:
|
||||
; from builder-product.cfg : all variables definded by attribute WINST[index]
|
||||
; from builder-product.cfg : VENDOR PN VERSION RELEASE PRIORITY ADVICE TYPE
|
||||
; from opsi-builder.cfg : CREATOR_TAG CREATOR_NAME CREATOR_EMAIL
|
||||
; auto generated winst-variables
|
||||
; $IconFile$: path to product picture
|
||||
;
|
||||
@@BUILDER_VARIABLES@@
|
||||
|
||||
; ----------------------------------------------------------------
|
||||
; - Please edit the following values -
|
||||
; ----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user