PatchTextFile und Variablen

Antworten
j.kroepke
Beiträge: 18
Registriert: 06 Jun 2013, 16:26

PatchTextFile und Variablen

Beitrag von j.kroepke »

Hallo,

ich habe ein Problem mit der PatchTextFile Selection. Diese scheint Probleme mit Variablen im Paramter zu haben.

Hier das Script:

Code: Alles auswählen

[Initial]
;Standard Text, der während der Installation angezeigt wird
Message = Bitte warten, das Produkt wird installiert
;Loglevel einstellen
setLogLevel = 6
;Bei Fehlern abbrechen
ExitOnError=false
;Syntax Fehler werden in einem separaten Fenster angezeigt
ScriptErrorMessages=on
;Single-Step Mode nicht verwenden
TraceMode=off
;Im Batchmode das Winst-Fenster nicht im Vordergrund anzeigen
StayOnTop=false

 
[Actions]
;Variable für die Ermittlung des Betriebssystems
	DefVar $OS$
	set $OS$ = GetOS
;Variable für die Ermittlung der Betriebssystem Unterversion
	DefVar $NTVersion$
	set $NTVersion$ = GetNTVersion
;Name des Produkts (max. 12 Zeichen)
	DefVar $ProductName$
	Set $ProductName$ = "evelocal"
;Dateiname des Produktbildes mit Erweiterung
	DefVar $ProductPicture$
	Set $ProductPicture$ = "opsi.bmp"
;Die Variable zur Auswertung des ExitCodes
	DefVar $ExitCode$
;Vollständiger Produktname incl. Versionsnummer
	DefVar $ProductNameFull1$
	set $ProductNameFull1$ = "eve Settings"
;Anzeigen der Installationsbenachrichtigung incl. des vollen Produktnamens
	Message "Installiere "+$ProductNameFull1$
;Prüfen der Winst Version
	requiredWinstVersion >= "4.11"
;$ProductPicture$ und $ProductName$ anzeigen
	ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$
 
;Freien Speicherplatz ermitteln
	if not (HasMinimumSpace ("%SYSTEMDRIVE%", "500 MB"))
		LogError "Nicht genügend Platz auf %SYSTEMDRIVE%"
		isFatalError
	endif

DefVar $LW$
	
if fileExists("D:\dev\xampp")
    Set $LW$ = "D:"
else
	if fileExists("C:\dev\xampp")
		Set $LW$ = "C:"
	else
		LogError "There is no xampp dir"
		isFatalError
	endif
endif

Message "Erstelle Ordnerstruktur"
DOSBatch_CreateEveCacheDirs

Message "Installiere PEAR SQL_Parser"
Winbatch_Install_PEAR_SQLParser

Message "Installiere PEAR Image_Barcode"
Winbatch_Install_PEAR_ImageBarcode

Message "Konfiguriere Apache2"
PatchTextFile_httpd "$LW$\dev\xampp\apache\conf\httpd.conf"

Message "Konfiguriere PHP5"
PatchTextFile_php "$LW$\dev\xampp\php\php.ini"

Message "Konfiguriere lokale hosts"
PatchHosts_EveLocal

Message "Setzte Rechte $LW$\dev"
Winbatch_SetRights

ExitWindows /Reboot

[Winbatch_Install_PEAR_SQLParser]
"$LW$\dev\xampp\php\pear.bat" install "%SCRIPTPATH%\SQL_Parser-0.5.tgz"

[Winbatch_Install_PEAR_ImageBarcode]
"$LW$\dev\xampp\php\pear.bat" install "%SCRIPTPATH%\Image_Barcode-1.1.3.tgz"

[PatchTextFile_httpd]
GoToTop
FindLine_StartingWith 'DocumentRoot '
InsertLine 'DocumentRoot "$LW$/dev/htdocs"'
GoToTop
FindLine_StartingWith '#LoadModule vhost_alias_module modules/mod_vhost_alias.so'
InsertLine 'LoadModule vhost_alias_module modules/mod_vhost_alias.so'
GoToTop
FindLine_Containing '/xampp/htdocs">'
InsertLine '<Directory "$LW$/dev/htdocs">'

SaveToFile "$LW$\dev\xampp\apache\conf\httpd.conf"

[PatchTextFile_php]
GoToTop
FindLine_StartingWith 'short_open_tag ='
InsertLine 'short_open_tag = On'
SaveToFile "$LW$\dev\xampp\php\php.ini"

[PatchHosts_EveLocal]
setAddr xampp.test 127.0.0.1
setAddr evese.test 127.0.0.1
setAddr legacy.test 127.0.0.1
setAddr eveutf8.test 127.0.0.1

[DOSBatch_CreateEveCacheDirs]
MKDIR $LW$\dev\privatetmp\

MKDIR $LW$\dev\cache_se\
MKDIR $LW$\dev\cache_se\PHPIDS\
MKDIR $LW$\dev\cache_se\templates\

MKDIR $LW$\dev\cache_utf8\
MKDIR $LW$\dev\cache_utf8\PHPIDS\
MKDIR $LW$\dev\cache_utf8\templates\

MKDIR $LW$\dev\cache_legacy\
MKDIR $LW$\dev\cache_legacy\PHPIDS\


MKDIR $LW$\dev\evese_lib
MKDIR $LW$\dev\htdocs\eve
MKDIR $LW$\dev\htdocs\projects

MKDIR $LW$\dev\utf8_lib
MKDIR $LW$\dev\htdocsutf8\eve
MKDIR $LW$\dev\htdocsutf8\projects

MKDIR $LW$\dev\htdocslegacy\eve
MKDIR $LW$\dev\htdocslegacy\projects

[Winbatch_SetRights]
TAKEOWN /F $LW$\dev\ /R /A /D Y
Hier der Log dazu:

Code: Alles auswählen

[5] [Feb 24 09:19:25:317] --
[5] [Feb 24 09:19:25:317] --
[1] [Feb 24 09:19:25:317] 
[1] [Feb 24 09:19:25:317] 
[1] [Feb 24 09:19:25:317] ======= APPEND   24.02.2014 09:19:25
[1] [Feb 24 09:19:25:317] opsi-winst 4.11.3.6 started at >>24.02.2014 09:19:23
[1] [Feb 24 09:19:25:317] startmessage opsi-winst created at CentralForm.FormCreate: 24.02.2014 09:19:23
[1] [Feb 24 09:19:25:317] Loading skin from: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winstskin
[1] [Feb 24 09:19:25:317] startmessage StartProgramModes and create log: 24.02.2014 09:19:24
[1] [Feb 24 09:19:25:318] startmessage start opsi service connection: 24.02.2014 09:19:24
[1] [Feb 24 09:19:25:318] JSON Bench for backend_info "params":[],"id":1} Start: 09:19:24:073 Time: 00:00:01:237
[1] [Feb 24 09:19:25:318] startmessage create log: 24.02.2014 09:19:25
[6] [Feb 24 09:19:25:318] JSON service request https://192.168.115.51:4447/rpc getDepotId
[6] [Feb 24 09:19:25:445] JSON Bench for getDepotId "params":["pcopsi.eventit.local"],"id":1} Start: 09:19:25:318 Time: 00:00:00:127
[6] [Feb 24 09:19:25:451] JSON service request https://192.168.115.51:4447/rpc backend_setOptions
[6] [Feb 24 09:19:25:504] JSON Bench for backend_setOptions "params":[{"processProductOnClientSequence":true}] Start: 09:19:25:451 Time: 00:00:00:053
[6] [Feb 24 09:19:25:512] JSON service request https://192.168.115.51:4447/rpc productOnClient_getObjects
[6] [Feb 24 09:19:27:412] JSON Bench for productOnClient_getObjects "params":["",{"clientId":"pcopsi.eventit.local","p Start: 09:19:25:512 Time: 00:00:01:900
[6] [Feb 24 09:19:27:426] JSON service request https://192.168.115.51:4447/rpc backend_setOptions
[6] [Feb 24 09:19:27:478] JSON Bench for backend_setOptions "params":[{"processProductOnClientSequence":false} Start: 09:19:27:426 Time: 00:00:00:052
[5] [Feb 24 09:19:27:482] Computername:pcopsi.eventit.local
[5] [Feb 24 09:19:27:482] Computername according to Environment Variable :PCOPSI
[5] [Feb 24 09:19:27:482] opsi service URL https://192.168.115.51:4447
[5] [Feb 24 09:19:27:482] Depot path:  p:\
[5] [Feb 24 09:19:27:482] 
[5] [Feb 24 09:19:27:492] bootmode BKSTD
[5] [Feb 24 09:19:27:492] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5] [Feb 24 09:19:27:492] Resolved sequence of products (24.02.2014 09:19:27): 
[5] [Feb 24 09:19:27:492] Product 17 	evelocal : setup
[5] [Feb 24 09:19:27:494] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[6] [Feb 24 09:19:27:768] [evelocal] JSON service request https://192.168.115.51:4447/rpc getProductProperties_hash
[6] [Feb 24 09:19:28:050] [evelocal] JSON Bench for getProductProperties_hash "params":["evelocal","pcopsi.eventit.local"],"id": Start: 09:19:27:768 Time: 00:00:00:282
[6] [Feb 24 09:19:28:053] [evelocal] JSON service request https://192.168.115.51:4447/rpc getProduct_hash
[6] [Feb 24 09:19:28:173] [evelocal] JSON Bench for getProduct_hash "params":["evelocal","opsi.eventit.local"],"id":1} Start: 09:19:28:053 Time: 00:00:00:120
[6] [Feb 24 09:19:28:177] [evelocal] JSON service request https://192.168.115.51:4447/rpc productOnClient_getObjects
[6] [Feb 24 09:19:28:315] [evelocal] JSON Bench for productOnClient_getObjects "params":["",{"clientId":"pcopsi.eventit.local","p Start: 09:19:28:177 Time: 00:00:00:138
[5] [Feb 24 09:19:28:322] [evelocal] scriptname: "Setup.ins", special path: "p:\evelocal\"
[6] [Feb 24 09:19:28:322] [evelocal] JSON service request https://192.168.115.51:4447/rpc productOnClient_updateObject
[6] [Feb 24 09:19:28:450] [evelocal] JSON Bench for productOnClient_updateObject "params":[{"clientId":"pcopsi.eventit.local","acti Start: 09:19:28:322 Time: 00:00:00:128
[1] [Feb 24 09:19:28:491] [evelocal] 
[1] [Feb 24 09:19:28:492] [evelocal] ============ Version 4.11.3.6 WIN32 script "p:\evelocal\Setup.ins"
[1] [Feb 24 09:19:28:492] [evelocal]              start: 2014-02-24  09:19:28 
[1] [Feb 24 09:19:28:492] [evelocal]              installing product: evelocal_1.0-1
[1] [Feb 24 09:19:28:492] [evelocal]              on client named    "pcopsi.eventit.local"
[1] [Feb 24 09:19:28:493] [evelocal]              loggedin user    ""
[1] [Feb 24 09:19:28:493] [evelocal]              winst running as    "SYSTEM"
[1] [Feb 24 09:19:28:493] [evelocal]              winst running with admin privileges
[1] [Feb 24 09:19:28:493] [evelocal]              winst running in standard script mode
[1] [Feb 24 09:19:28:493] [evelocal] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
[1] [Feb 24 09:19:28:493] [evelocal] system infos:
[1] [Feb 24 09:19:28:508] [evelocal] 08-00-27-34-BA-F3  -  PC hardware address
[1] [Feb 24 09:19:28:508] [evelocal] PCOPSI.Eventit.local  -  IP name 
[1] [Feb 24 09:19:28:508] [evelocal] 192.168.115.171  -  IP address
[1] [Feb 24 09:19:28:508] [evelocal] DEU  -  System default locale 
[1] [Feb 24 09:19:28:508] [evelocal] MS Windowds 6.1 64 Bit
[1] [Feb 24 09:19:28:508] [evelocal] opsi service version : 4
[1] [Feb 24 09:19:28:508] [evelocal] 
[6] [Feb 24 09:19:28:509] [evelocal] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion]  opened
[6] [Feb 24 09:19:28:511] [evelocal] Key closed
[1] [Feb 24 09:19:28:585] [evelocal] LogLevel was 6
[1] [Feb 24 09:19:28:585] [evelocal] LogLevel set to 6
[5] [Feb 24 09:19:28:585] [evelocal] ExitOnError was True is set to false
[5] [Feb 24 09:19:28:585] [evelocal] ReportMessages was True is set to false
[5] [Feb 24 09:19:28:587] [evelocal] 
[5] [Feb 24 09:19:28:587] [evelocal] Set  $OS$ = GetOS
[6] [Feb 24 09:19:28:588] [evelocal]   The value of the variable "$OS$" is now: "Windows_NT"
[5] [Feb 24 09:19:28:588] [evelocal] 
[5] [Feb 24 09:19:28:588] [evelocal] Set  $NTVersion$ = GetNTVersion
[6] [Feb 24 09:19:28:588] [evelocal]   The value of the variable "$NTVersion$" is now: "Windows Vista"
[5] [Feb 24 09:19:28:588] [evelocal] 
[5] [Feb 24 09:19:28:588] [evelocal] Set  $ProductName$ = "evelocal"
[6] [Feb 24 09:19:28:588] [evelocal]   The value of the variable "$ProductName$" is now: "evelocal"
[5] [Feb 24 09:19:28:588] [evelocal] 
[5] [Feb 24 09:19:28:588] [evelocal] Set  $ProductPicture$ = "opsi.bmp"
[6] [Feb 24 09:19:28:588] [evelocal]   The value of the variable "$ProductPicture$" is now: "opsi.bmp"
[5] [Feb 24 09:19:28:588] [evelocal] 
[5] [Feb 24 09:19:28:588] [evelocal] Set  $ProductNameFull1$ = "eve Settings"
[6] [Feb 24 09:19:28:588] [evelocal]   The value of the variable "$ProductNameFull1$" is now: "eve Settings"
[5] [Feb 24 09:19:28:588] [evelocal] message Installiere eve Settings
[6] [Feb 24 09:19:28:592] [evelocal] opsi-winst has version  4.11.3.6, required is : >= 4.11
[5] [Feb 24 09:19:28:618] [evelocal] 
[5] [Feb 24 09:19:28:618] [evelocal] If
[6] [Feb 24 09:19:28:618] [evelocal]     Free on Disk C:: 1.073.381.376 bytes  This is more than the required amount of 500.000.000 bytes
[5] [Feb 24 09:19:28:618] [evelocal]   HasMinimumSpace ("C:", "500 MB")   <<< result true
[5] [Feb 24 09:19:28:618] [evelocal]   not (HasMinimumSpace ("C:", "500 MB"))   <<< result false
[5] [Feb 24 09:19:28:618] [evelocal] Then
[5] [Feb 24 09:19:28:618] [evelocal] EndIf
[5] [Feb 24 09:19:28:618] [evelocal] 
[5] [Feb 24 09:19:28:618] [evelocal] If
[6] [Feb 24 09:19:28:618] [evelocal]     Starting query if file exist ...
[5] [Feb 24 09:19:28:618] [evelocal]     "D:\dev\xampp": File Error 21 (Das Gerät ist nicht bereit.<)
[5] [Feb 24 09:19:28:618] [evelocal]   fileExists("D:\dev\xampp")   <<< result false
[5] [Feb 24 09:19:28:618] [evelocal] Then
[5] [Feb 24 09:19:28:618] [evelocal] 
[5] [Feb 24 09:19:28:618] [evelocal] Else
[5] [Feb 24 09:19:28:618] [evelocal]   
[5] [Feb 24 09:19:28:618] [evelocal]   If
[6] [Feb 24 09:19:28:618] [evelocal]       Starting query if file exist ...
[5] [Feb 24 09:19:28:619] [evelocal]     fileExists("C:\dev\xampp")   <<< result true
[5] [Feb 24 09:19:28:619] [evelocal]   Then
[5] [Feb 24 09:19:28:619] [evelocal]     
[5] [Feb 24 09:19:28:619] [evelocal]     Set  $LW$ = "C:"
[6] [Feb 24 09:19:28:619] [evelocal]       The value of the variable "$LW$" is now: "C:"
[5] [Feb 24 09:19:28:619] [evelocal]   
[5] [Feb 24 09:19:28:619] [evelocal]   Else
[5] [Feb 24 09:19:28:619] [evelocal]   EndIf
[5] [Feb 24 09:19:28:619] [evelocal] EndIf
[5] [Feb 24 09:19:28:619] [evelocal] message Erstelle Ordnerstruktur
[5] [Feb 24 09:19:28:622] [evelocal] 
[5] [Feb 24 09:19:28:622] [evelocal] 3 DOSBatch_CreateEveCacheDirs
[6] [Feb 24 09:19:28:624] [evelocal]   c:\opsi.org\tmp\_winstbat_1.bat saved back
[6] [Feb 24 09:19:28:624] [evelocal]   Executing "cmd.exe" /C "c:\opsi.org\tmp\_winstbat_1.bat"
[6] [Feb 24 09:19:28:785] [evelocal]   ExitCode 1
[6] [Feb 24 09:19:28:790] [evelocal]   Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Feb 24 09:19:28:790] [evelocal]     Search "c:\opsi.org\tmp\"
[6] [Feb 24 09:19:28:790] [evelocal]     File "c:\opsi.org\tmp\_winstbat_1.bat"
[6] [Feb 24 09:19:28:790] [evelocal]       The file has been deleted
[5] [Feb 24 09:19:28:791] [evelocal]   message Installiere PEAR SQL_Parser
[5] [Feb 24 09:19:28:793] [evelocal]   
[5] [Feb 24 09:19:28:793] [evelocal]   Execution of Winbatch_Install_PEAR_SQLParser
[6] [Feb 24 09:19:28:800] [evelocal]     Call ""C:\dev\xampp\php\pear.bat" install "P:\evelocal\SQL_Parser-0.5.tgz""
[6] [Feb 24 09:19:28:800] [evelocal]        Waiting until the called process is finished
[4] [Feb 24 09:19:28:800] [evelocal]     winbatch call of not executable file: C:\dev\xampp\php\pear.bat is deprecated
[6] [Feb 24 09:19:29:425] [evelocal]     ExitCode 0    Executed process ""C:\dev\xampp\php\pear.bat" install "P:\evelocal\SQL_Parser-0.5.tgz""
[5] [Feb 24 09:19:29:427] [evelocal]   message Installiere PEAR Image_Barcode
[5] [Feb 24 09:19:29:430] [evelocal]   
[5] [Feb 24 09:19:29:430] [evelocal]   Execution of Winbatch_Install_PEAR_ImageBarcode
[6] [Feb 24 09:19:29:430] [evelocal]     Call ""C:\dev\xampp\php\pear.bat" install "P:\evelocal\Image_Barcode-1.1.3.tgz""
[6] [Feb 24 09:19:29:430] [evelocal]        Waiting until the called process is finished
[4] [Feb 24 09:19:29:430] [evelocal]     winbatch call of not executable file: C:\dev\xampp\php\pear.bat is deprecated
[6] [Feb 24 09:19:51:162] [evelocal]     ExitCode 0    Executed process ""C:\dev\xampp\php\pear.bat" install "P:\evelocal\Image_Barcode-1.1.3.tgz""
[5] [Feb 24 09:19:51:164] [evelocal]   message Konfiguriere Apache2
[5] [Feb 24 09:19:51:166] [evelocal]   
[5] [Feb 24 09:19:51:166] [evelocal]   Execution of PatchTextFile_httpd
[6] [Feb 24 09:19:51:166] [evelocal]   
[6] [Feb 24 09:19:51:166] [evelocal]   Patching: $LW$\dev\xampp\apache\conf\httpd.conf
[5] [Feb 24 09:19:51:166] [evelocal]         FILE $LW$\dev\xampp\apache\conf\httpd.conf
[6] [Feb 24 09:19:51:168] [evelocal]     Item Pointer set to Top (before first line)
[6] [Feb 24 09:19:51:168] [evelocal]     No item found starting with 'documentroot '
[6] [Feb 24 09:19:51:168] [evelocal]     Added item 'DocumentRoot "C:/dev/htdocs"'
[6] [Feb 24 09:19:51:168] [evelocal]     No item found starting with '#loadmodule vhost_alias_module modules/mod_vhost_alias.so'
[6] [Feb 24 09:19:51:168] [evelocal]     Inserted item 'LoadModule vhost_alias_module modules/mod_vhost_alias.so' at position 0
[6] [Feb 24 09:19:51:168] [evelocal]     No item found containing '/XAMPP/HTDOCS">'
[6] [Feb 24 09:19:51:168] [evelocal]     Inserted item '<Directory "C:/dev/htdocs">' at position 0
[6] [Feb 24 09:19:51:168] [evelocal]     saveToOriginalFile = false
[6] [Feb 24 09:19:51:171] [evelocal]     C:\dev\xampp\apache\conf\httpd.conf saved back with 8 Bit system encoding
[6] [Feb 24 09:19:51:171] [evelocal]     The lines are saved to "C:\dev\xampp\apache\conf\httpd.conf"
[5] [Feb 24 09:19:51:171] [evelocal]   message Konfiguriere PHP5
[5] [Feb 24 09:19:51:174] [evelocal]   
[5] [Feb 24 09:19:51:174] [evelocal]   Execution of PatchTextFile_php
[6] [Feb 24 09:19:51:174] [evelocal]   
[6] [Feb 24 09:19:51:174] [evelocal]   Patching: $LW$\dev\xampp\php\php.ini
[5] [Feb 24 09:19:51:174] [evelocal]         FILE $LW$\dev\xampp\php\php.ini
[6] [Feb 24 09:19:51:174] [evelocal]     Item Pointer set to Top (before first line)
[6] [Feb 24 09:19:51:175] [evelocal]     No item found starting with 'short_open_tag ='
[6] [Feb 24 09:19:51:175] [evelocal]     Added item 'short_open_tag = On'
[6] [Feb 24 09:19:51:175] [evelocal]     saveToOriginalFile = false
[6] [Feb 24 09:19:51:176] [evelocal]     C:\dev\xampp\php\php.ini saved back with 8 Bit system encoding
[6] [Feb 24 09:19:51:176] [evelocal]     The lines are saved to "C:\dev\xampp\php\php.ini"
[5] [Feb 24 09:19:51:176] [evelocal]   message Konfiguriere lokale hosts
[5] [Feb 24 09:19:51:178] [evelocal]   
[5] [Feb 24 09:19:51:178] [evelocal]   Execution of PatchHosts_EveLocal
[5] [Feb 24 09:19:51:179] [evelocal]       FILE C:\Windows\system32\drivers\etc\hosts.
[6] [Feb 24 09:19:51:181] [evelocal]     Set ipAddress for Hostname "xampp.test" from 127.0.0.1 to 127.0.0.1
[6] [Feb 24 09:19:51:181] [evelocal]     Set ipAddress for Hostname "evese.test" from 127.0.0.1 to 127.0.0.1
[6] [Feb 24 09:19:51:181] [evelocal]     Set ipAddress for Hostname "legacy.test" from 127.0.0.1 to 127.0.0.1
[6] [Feb 24 09:19:51:181] [evelocal]     Set ipAddress for Hostname "eveutf8.test" from 127.0.0.1 to 127.0.0.1
[6] [Feb 24 09:19:51:182] [evelocal]     C:\Windows\system32\drivers\etc\hosts. saved back with 8 Bit system encoding
[5] [Feb 24 09:19:51:183] [evelocal]   message Setzte Rechte $LW$\dev
[5] [Feb 24 09:19:51:185] [evelocal]   
[5] [Feb 24 09:19:51:186] [evelocal]   Execution of Winbatch_SetRights
[6] [Feb 24 09:19:51:186] [evelocal]     Call "TAKEOWN /F C:\dev\ /R /A /D Y"
[6] [Feb 24 09:19:51:186] [evelocal]        Waiting until the called process is finished
[6] [Feb 24 09:19:51:186] [evelocal]     Start process as invoker: SYSTEM
[6] [Feb 24 09:19:52:211] [evelocal]     ExitCode 1    Executed process "TAKEOWN /F C:\dev\ /R /A /D Y"
[5] [Feb 24 09:19:52:215] [evelocal]   
[5] [Feb 24 09:19:52:215] [evelocal]   ExitWindows set to Reboot
[1] [Feb 24 09:19:52:215] [evelocal] ___________________
[1] [Feb 24 09:19:52:215] [evelocal] script finished
[1] [Feb 24 09:19:52:215] [evelocal] 0 errors
[1] [Feb 24 09:19:52:215] [evelocal] 2 warnings
[1] [Feb 24 09:19:52:215] [evelocal] 
[1] [Feb 24 09:19:52:215] [evelocal] installed product: evelocal Version: 1.0-1
[1] [Feb 24 09:19:52:215] [evelocal] 
[6] [Feb 24 09:19:52:215] [evelocal] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Feb 24 09:19:52:215] [evelocal]   Search "c:\opsi.org\tmp\"
[6] [Feb 24 09:19:52:215] [evelocal] JSON service request https://192.168.115.51:4447/rpc setProductActionRequest
[6] [Feb 24 09:19:52:529] [evelocal] JSON Bench for setProductActionRequest "params":["evelocal","pcopsi.eventit.local","updat Start: 09:19:52:215 Time: 00:00:00:314
[1] [Feb 24 09:19:52:532] [evelocal] product "evelocal set to update
[1] [Feb 24 09:19:52:532] [evelocal] Update script name: 
[5] [Feb 24 09:19:52:532] [evelocal] no script file name given
[1] [Feb 24 09:19:52:532] [evelocal] we have no update script
[6] [Feb 24 09:19:52:532] [evelocal] JSON service request https://192.168.115.51:4447/rpc productOnClient_updateObject
[6] [Feb 24 09:19:52:654] [evelocal] JSON Bench for productOnClient_updateObject "params":[{"clientId":"pcopsi.eventit.local","acti Start: 09:19:52:532 Time: 00:00:00:122
[6] [Feb 24 09:19:52:658] Registry key [HKLM\SOFTWARE\opsi.org\winst]  opened
[6] [Feb 24 09:19:52:660]                 Variable "RebootRequested"  had value  "0"
[6] [Feb 24 09:19:52:660]                 Info:    "RebootRequested"  changed to "4"
[6] [Feb 24 09:19:52:660]                 Variable "LastLogFilename"  is keeping its value "c:\tmp\instlog.txt"
[6] [Feb 24 09:19:52:660]                 Variable "ContinueLogFile"  is keeping its value "1"
[6] [Feb 24 09:19:52:660]                 Variable "NumberOfErrors"  is keeping its value "0"
[6] [Feb 24 09:19:52:699]                 Key flushed
[6] [Feb 24 09:19:52:699]                 Key closed
[5] [Feb 24 09:19:52:704] -------- submitted part of log file ends here, see the rest of log file on client ----------
In der Variable $LW$ steht entweder C: oder D: .

Aktuell nutzt ich als Workaround, die Datei nach C:\temp zu kopieren, sie dort zu patchen und sie zurück zu kopieren.

Viele Grüße,
Jan
holgerv
Beiträge: 288
Registriert: 20 Aug 2012, 09:35

Re: PatchTextFile und Variablen

Beitrag von holgerv »

Code: Alles auswählen

PatchTextFile_httpd "$LW$\dev\xampp\apache\conf\httpd.conf"
funktioniert so nicht. Richtig ist sowas wie

Code: Alles auswählen

PatchTextFile_httpd $LW$ + "\dev\xampp\apache\conf\httpd.conf"
.

Schönen Gruß


Holger
Antworten