1st release with properties

This commit is contained in:
Dennis Trinks 2012-06-20 14:30:09 +02:00
parent 902b9d973b
commit df476b9dd8
2 changed files with 47 additions and 19 deletions

View File

@ -6,7 +6,12 @@
[Actions] [Actions]
requiredWinstVersion >= "4.10.8.6" requiredWinstVersion >= "4.10.8.6"
DefVar $uncpath$
DefVar $officescan.fqdn$
DEfVar $officescan.sharename$
DefVar $domainuser.loginname$
DEfVar $domainuser.password$
DefVar $connectionstr$
DefVar $UninstallProgram$ DefVar $UninstallProgram$
DefVar $LogDir$ DefVar $LogDir$
DefVar $ProductId$ DefVar $ProductId$
@ -19,7 +24,12 @@ DefVar $LicensePool$
Set $LogDir$ = "%SystemDrive%\tmp" Set $LogDir$ = "%SystemDrive%\tmp"
;Set $uncpath$ = "\\virenscanner.dtnet.de\ofcscan\AutoPccP.exe" Set $officescan.fqdn$ = GetProductProperty ("officescan.fqdn","values")
Set $officescan.sharename$ = GetProductProperty ("officescan.sharename","values")
Set $domainuser.loginname$ = GetProductProperty ("domainuser.loginname","values")
Set $domainuser.password$ = GetProductProperty ("domainuser.password","values")
Set $connectionstr$ = "\\" + $officescan.fqdn$ + "\" + $officescan.sharename$ + " /user:" + $domainuser.loginname$ + " " + $domainuser.password$
; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh ; The token BUILDER_VARIABLES will be replaced by opsi-builder.sh
; and adds the following variables: ; and adds the following variables:
@ -69,7 +79,7 @@ else
endif endif
[DosInAnIcon_TMWF] [DosInAnIcon_TMWF]
net use f: \\virenscanner.dtnet.de\ofcscan /user:dtnet.de\dtrinks net use f: $connectionstr$
F:\AutoPcc.exe /Silent F:\AutoPcc.exe /Silent
[Winbatch_install] [Winbatch_install]

View File

@ -21,20 +21,38 @@ onceScript:
customScript: customScript:
userLoginScript: userLoginScript:
;[ProductProperty] [ProductProperty]
;type: unicode type: unicode
;name: install_architecture name: officescan.fqdn
;multivalue: False multivalue: False
;editable: False editable: True
;description: which architecture (32/64 bit) has to be installed description: FQDN TrenMicro-Server
;values: ["32 only", "64 only", "both", "system specific"] values: [""]
;default: ["system specific"] default: [""]
;[ProductProperty] [ProductProperty]
;type: unicode type: unicode
;name: apache-pw name: officescan.sharename
;multivalue: False multivalue: False
;editable: True editable: True
;description: Passwort fuer Download der Konfigfiles description: TrendMicro Client-Share on Server. ofcscan by default TM Installation
;values: ["Passwort"] values: ["ofcscan"]
;default: ["Passwort"] default: ["ofcscan"]
[ProductProperty]
type: unicode
name: domainuser.loginname
multivalue: False
editable: True
description: Domainuser accountname
values: [""]
default: [""]
[ProductProperty]
type: unicode
name: domainuser.password
multivalue: False
editable: True
description: Domainuser password
values: [""]
default: [""]