From df476b9dd88343204aacb22ae940cd4a31e0b179 Mon Sep 17 00:00:00 2001 From: Dennis Trinks Date: Wed, 20 Jun 2012 14:30:09 +0200 Subject: [PATCH] 1st release with properties --- CLIENT_DATA/setup32.ins | 16 ++++++++++--- OPSI/control | 50 ++++++++++++++++++++++++++++------------- 2 files changed, 47 insertions(+), 19 deletions(-) diff --git a/CLIENT_DATA/setup32.ins b/CLIENT_DATA/setup32.ins index e4af57d..37d0a54 100644 --- a/CLIENT_DATA/setup32.ins +++ b/CLIENT_DATA/setup32.ins @@ -6,7 +6,12 @@ [Actions] requiredWinstVersion >= "4.10.8.6" -DefVar $uncpath$ + +DefVar $officescan.fqdn$ +DEfVar $officescan.sharename$ +DefVar $domainuser.loginname$ +DEfVar $domainuser.password$ +DefVar $connectionstr$ DefVar $UninstallProgram$ DefVar $LogDir$ DefVar $ProductId$ @@ -19,7 +24,12 @@ DefVar $LicensePool$ 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 ; and adds the following variables: @@ -69,7 +79,7 @@ else endif [DosInAnIcon_TMWF] -net use f: \\virenscanner.dtnet.de\ofcscan /user:dtnet.de\dtrinks +net use f: $connectionstr$ F:\AutoPcc.exe /Silent [Winbatch_install] diff --git a/OPSI/control b/OPSI/control index 384c78c..11a2339 100644 --- a/OPSI/control +++ b/OPSI/control @@ -21,20 +21,38 @@ onceScript: customScript: userLoginScript: -;[ProductProperty] -;type: unicode -;name: install_architecture -;multivalue: False -;editable: False -;description: which architecture (32/64 bit) has to be installed -;values: ["32 only", "64 only", "both", "system specific"] -;default: ["system specific"] +[ProductProperty] +type: unicode +name: officescan.fqdn +multivalue: False +editable: True +description: FQDN TrenMicro-Server +values: [""] +default: [""] -;[ProductProperty] -;type: unicode -;name: apache-pw -;multivalue: False -;editable: True -;description: Passwort fuer Download der Konfigfiles -;values: ["Passwort"] -;default: ["Passwort"] \ No newline at end of file +[ProductProperty] +type: unicode +name: officescan.sharename +multivalue: False +editable: True +description: TrendMicro Client-Share on Server. ofcscan by default TM Installation +values: ["ofcscan"] +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: [""] \ No newline at end of file