Firefox mit INI Installieren - Winst lokal geht, vom Server nicht?

IvicaE
Beiträge: 136
Registriert: 13 Sep 2016, 14:10

Firefox mit INI Installieren - Winst lokal geht, vom Server nicht?

Beitrag von IvicaE »

Hallo Leute,

ich habe hier ein kurioses Problem:

ich habe mein Firefox-Paket neu erstellt (diverse Anpassungen an Quantum wie z.B, eine policy-Datei) und habe diese getestet und als gut befunden.
Als ich das Paket gepackt und auf den Server installiert habe und von dort nochmals getestet hatte, war es plötzlich nicht mehr gut und das wundert mich sehr!

Ich installiere Firefox indem ich auch eine INI-Datei der Installation mitgebe. Diese INI-Datei sorgt u.a. dafür das Firefox auch ein Shortcut in der Taskleiste anlegt. Anschliessend wird dann noch der distribution-Ordner mit einer generierten Policy-Datei in das Installationsverzeichnis kopiert und alles ist so wie gewünscht.

Beim testen kopiere ich das CLIENT_DATA-Verzechnis auf einen Test-PC (VM-Maschine) und starte dort lokal die Winst und wähle das Installations-Script aus -> alles gut und genau so wie gewollt.
Packe ich das auf den OPSI-Server und drück es auf den gleichen Testrechner herunter, wird die INI-Datei ignoriert (sehe ich sofort weil der Shortcut in der Taskleiste fehlt.

Wie kann das sein und gibt es Abhilfe dafür?


Danke schon einmal im Vorraus für eure Hilfe!
fredfanatics
Beiträge: 39
Registriert: 10 Nov 2016, 09:33

Re: Firefox mit INI Installieren - Winst lokal geht, vom Server nicht?

Beitrag von fredfanatics »

Schuss ins Blaue:
Probleme mit Netzwerkpfaden.
Mach Dir eine Files-Sektion, schieb den Kram nach %opsitmpdir%, von da aus installieren, danach Files in %opsitmpdir% wieder löschen...

Hatte ich auch schon öfter...
IvicaE
Beiträge: 136
Registriert: 13 Sep 2016, 14:10

Re: Firefox mit INI Installieren - Winst lokal geht, vom Server nicht?

Beitrag von IvicaE »

@fredfanatics

Habe ich schon so ähnlich ausprobiert.
Habe die INI-Datei lokal kopiert in das Mozilla Firefox-Verzeichnis (also wurde es bei diesem Vorgang noch VOR der Installation angelegt), bei der Installation auf diese INI-Datei dann verwiesen (%ScriptPath%\setup.exe /INI="$InstallDir$\mozilla-firefox.ini")
Habe im Scrip auch vor dem Aufrufen der Installationsroutein mit if FileExists(pfad) getestet ob es phyiskalisch auch wirklich vorhanden ist, und das egal ob die INI in früheren Versuchen im ScriptPfad oder später im Install-Pfad lag -> Die Datei wurde gefunden!
Und dann wurde das Setup damit auch aufgerufen.

Hier die Log-Datei vom opsi-server:

Code: Alles auswählen

(152)     [5] [Mrz 07 14:12:04:993] [my_firefox]   message Installing my_firefox ...
(153)     [6] [Mrz 07 14:12:04:997] [my_firefox]   Set  $NsisInstallBatch$ = "p:\my_firefox\setup.exe /INI=" + "p:\my_firefox" + "\" + "$Setup_INI$"
(154)     [6] [Mrz 07 14:12:04:997] [my_firefox]     The value of the variable "$NsisInstallBatch$" is now: "p:\my_firefox\setup.exe /INI=p:\my_firefox\$Setup_INI$"
(155)     [5] [Mrz 07 14:12:04:999] [my_firefox]   comment: Start setup program
(156)     [6] [Mrz 07 14:12:05:002] [my_firefox]   Changed current directory to p:\my_firefox
(157)     [5] [Mrz 07 14:12:05:003] [my_firefox]   Execution of: Winbatch_install_nsis 
(158)     [5] [Mrz 07 14:12:05:003] [my_firefox]   
(159)     [6] [Mrz 07 14:12:05:004] [my_firefox]     Call "p:\my_firefox\setup.exe /INI=p:\my_firefox\mozilla-firefox.ini"
(160)     [6] [Mrz 07 14:12:05:004] [my_firefox]        Waiting until the called process is finished
(161)     [6] [Mrz 07 14:12:05:004] [my_firefox]     Start process as invoker: SYSTEM
(162)     [6] [Mrz 07 14:12:26:464] [my_firefox]     ExitCode 0    Executed process "p:\my_firefox\setup.exe /INI=p:\my_firefox\mozilla-firefox.ini"
(163)     [5] [Mrz 07 14:12:26:468] [my_firefox]   Execution of: Files_copy_policies 
(164)     [5] [Mrz 07 14:12:26:468] [my_firefox]   
(165)     [7] [Mrz 07 14:12:26:468] [my_firefox]     copy "p:\my_firefox\distribution\" "C:\Program Files (x86)\Mozilla Firefox\distribution\"
(166)     [6] [Mrz 07 14:12:26:468] [my_firefox]         path C:\Program Files (x86)\Mozilla Firefox\distribution\ created
(167)     [6] [Mrz 07 14:12:26:471] [my_firefox]     Copying  p:\my_firefox\distribution\ -----> C:\Program Files (x86)\Mozilla Firefox\distribution\
(168)     [6] [Mrz 07 14:12:26:471] [my_firefox]       1 File(s) found
(169)     [6] [Mrz 07 14:12:26:474] [my_firefox]       Source p:\my_firefox\distribution\policies.json
(170)     [6] [Mrz 07 14:12:26:483] [my_firefox]         p:\my_firefox\distribution\policies.json copied to C:\Program Files (x86)\Mozilla Firefox\distribution\
(171)     [6] [Mrz 07 14:12:26:485] [my_firefox]       1 File(s) treated
.
.
.
0 errors
0 warnings
Hier das Gleiche Script, jedoch lokal installiert per Winst:

Code: Alles auswählen

[5] [Mrz 07 14:34:22:152]   message Installing my_firefox ...
[6] [Mrz 07 14:34:22:156]   Set  $NsisInstallBatch$ = "C:\my_firefox\CLIENT_DATA\setup.exe /INI=" + "C:\my_firefox\CLIENT_DATA" + "\" + "$Setup_INI$"
[6] [Mrz 07 14:34:22:158]     The value of the variable "$NsisInstallBatch$" is now: "C:\my_firefox\CLIENT_DATA\setup.exe /INI=C:\my_firefox\CLIENT_DATA\$Setup_INI$"
[5] [Mrz 07 14:34:22:162]   comment: Start setup program
[6] [Mrz 07 14:34:22:166]   Changed current directory to C:\my_firefox\CLIENT_DATA
[5] [Mrz 07 14:34:22:168]   Execution of: Winbatch_install_nsis 
[5] [Mrz 07 14:34:22:169]   
[6] [Mrz 07 14:34:22:171]     Call "C:\my_firefox\CLIENT_DATA\setup.exe /INI=C:\my_firefox\CLIENT_DATA\mozilla-firefox.ini"
[6] [Mrz 07 14:34:22:173]        Waiting until the called process is finished
[6] [Mrz 07 14:34:22:175]     Start process as invoker: Administrator
[6] [Mrz 07 14:34:35:270]     ExitCode 0    Executed process "C:\my_firefox\CLIENT_DATA\setup.exe /INI=C:\my_firefox\CLIENT_DATA\mozilla-firefox.ini"
[5] [Mrz 07 14:34:35:273]   Execution of: Files_copy_policies 
[5] [Mrz 07 14:34:35:275]   
[6] [Mrz 07 14:34:35:277]         path C:\Program Files (x86)\Mozilla Firefox\distribution\ created
[6] [Mrz 07 14:34:35:279]     Copying  C:\my_firefox\CLIENT_DATA\distribution\ -----> C:\Program Files (x86)\Mozilla Firefox\distribution\
[6] [Mrz 07 14:34:35:280]       1 File(s) found
[6] [Mrz 07 14:34:35:285]       Source C:\my_firefox\CLIENT_DATA\distribution\policies.json
[6] [Mrz 07 14:34:35:288]         C:\my_firefox\CLIENT_DATA\distribution\policies.json copied to C:\Program Files (x86)\Mozilla Firefox\distribution\
[6] [Mrz 07 14:34:35:289]       1 File(s) treated
.
.
0 errors
0 warnings

Die INI-Datei heisst "mozilla-firefox.ini" und deren Inhalt ist folgender:

Code: Alles auswählen

[Install]
;
; Remove the semicolon (;) to un-comment a line.
;
; The name of the directory where the application will be installed in the
; system's program files directory. The security
; context the installer is running in must have write access to the
; installation directory. Also, the directory must not exist or if it exists
; it must be a directory and not a file. If any of these conditions are not met
; the installer will abort the installation with an error level of 2. If this
; value is specified then InstallDirectoryPath will be ignored.
InstallDirectoryName=Mozilla Firefox

; The full path to the directory to install the application. The security
; context the installer is running in must have write access to the
; installation directory. Also, the directory must not exist or if it exists
; it must be a directory and not a file. If any of these conditions are not met
; the installer will abort the installation with an error level of 2.
; InstallDirectoryPath=c:\firefox\

; By default all of the following shortcuts are created. To prevent the
; creation of a shortcut specify false for the shortcut you don't want created.

; Create a shortcut for the application in the current user's QuickLaunch
; directory.
QuickLaunchShortcut=true

; Create a shortcut for the application on the desktop. This will create the
; shortcut in the All Users Desktop directory and if that fails this will
; attempt to create the shortcuts in the current user's Start Menu directory.
DesktopShortcut=true

; Create shortcuts for the application in the Start Menu. This will create the
; shortcuts in the All Users Start Menu directory and if that fails this will
; attempt to create the shortcuts in the current user's Start Menu directory.
StartMenuShortcuts=true

; The directory name to use for the StartMenu folder (not available with
; Firefox 4.0 and above - see note below).
; note: if StartMenuShortcuts=false is specified then this will be ignored.
; StartMenuDirectoryName=Mozilla Firefox

; The MozillaMaintenance service is used for silent updates and may be used
; for other maintenance related tasks.  It is an optional component.
; This option can be used in Firefox 16 or later to skip installing the service.
MaintenanceService=false

Die policy heisst "policies.json" und befindet sich im "distribution"-Ordner im Scrippfad welcher in das InstallDir kopiert wird nach der Installation.
Die Policy funktioniert auch tadellos egal ob ich es vom OPSI-server oder manuell per Winst installiere.

Das Gleiche wie hier beschrieben habe ich, wie bereits erwähnt, dann auch gemacht mit der INI-Datei vorher lokal zu kopieren (in das $InstallDir$ welches dann angelegt wird auf der Festplatte VOR der Installation logischerweise). Das Ergebnis war identisch mit dem oberen.


Ich dachte bei Winst-lokal ist alles absolut gleich wie wenn es per OPSI-Server ausgeführt wird ausser daß winst mit der aktuellen Berechtigung (z.B. der Domänen-Admin) läuft und der OPSI mit System-Berechtigungen? Aber das dürfte ja keine Rolle spielen in dem aktuellen Fall würde ich Behaupten?
IvicaE
Beiträge: 136
Registriert: 13 Sep 2016, 14:10

Re: Firefox mit INI Installieren - Winst lokal geht, vom Server nicht?

Beitrag von IvicaE »

Installiert denn niemand sonst FF per OPSI und einer INI-Installationsdatei?
Wenn ja: tut es denn grundsätzlich?
thomas.besser
Beiträge: 455
Registriert: 09 Sep 2009, 09:40

Re: Firefox mit INI Installieren - Winst lokal geht, vom Server nicht?

Beitrag von thomas.besser »

Ich mache das auch per INI, funktioniert ohne Probleme.

Ich würde die INI-Datei nach "%opsiTmpDir%" kopieren.

Code: Alles auswählen

[Winbatch_install]
; https://wiki.mozilla.org/Installer:Command_Line_Arguments
"%ScriptPath%\$InstFile$" /INI="%opsiTmpDir%\$ProductId$.ini"
IvicaE
Beiträge: 136
Registriert: 13 Sep 2016, 14:10

Re: Firefox mit INI Installieren - Winst lokal geht, vom Server nicht?

Beitrag von IvicaE »

thomas.besser hat geschrieben:Ich mache das auch per INI, funktioniert ohne Probleme.

Ich würde die INI-Datei nach "%opsiTmpDir%" kopieren.
Ich habe es nun auch so ausprobiert. Das Ergebnis ist das Selbe:
1. Manuell per Winst auf dem Client ausgeführt: Shortcut in der Taskleiste wird angelegt (QuickLaunchShortcut=true in der INI-Datei)
2. Auf den OPSI Server gepackt und installiert und per configed heruntergedrückt: Kein Shortcut in der Taskleiste. Die Datei ist aber vorhanden im opsi.org\tmp-Verzeichnis! Sprich: ich kopiere sie erfolgreich rüber und verweise bei der Installation auf diese INI Datei. Manuell per Winst würde es ja sonst auch nicht funktionieren...
3. Ich habe alles auch statt in einer Winbatch-Sektion auch in einer DosInAnIcon-Sektion ausprobiert. Ebenfalls kein Erfolg.

Was mache ich falsch???? Wie kann es sein das Winst da unterschiedlich reagiert wenn es auf dem Client manuell ausgeführt wird und wenn es vom OPSI-Server heruntergedrückt wird? Die Installation geht auch durch, nur einmal eben mit der INI-Datei und einmal wird diese ignoriert?
thomas.besser
Beiträge: 455
Registriert: 09 Sep 2009, 09:40

Re: Firefox mit INI Installieren - Winst lokal geht, vom Server nicht?

Beitrag von thomas.besser »

Dann poste hier mal den entsprechenden Teil des Log-Files. Aus Hörensagen ist es schwer, einen Fehler zu finden.

Gruß
Thomas
IvicaE
Beiträge: 136
Registriert: 13 Sep 2016, 14:10

Re: Firefox mit INI Installieren - Winst lokal geht, vom Server nicht?

Beitrag von IvicaE »

Hallo,

hier habe ich die komplette Logdatei (etwas anonymisert -> Firmenname und Domänenname durch "Firma" getauscht und Skriptname ist hier leicht abgeändert in my_firefox)

Code: Alles auswählen

(0)       
(1)       [1] [Mrz 12 14:04:07:071] --
(2)       [1] [Mrz 12 14:04:07:071] --
(3)       [1] [Mrz 12 14:04:07:071] c:\opsi.org\log\\opsi-script-part-Yu24Mf26.log
(4)       [1] [Mrz 12 14:04:07:071] opsi-script 4.12.0.13 started at >>
(5)       [1] [Mrz 12 14:04:07:071] opsi-script log file with encoding utf8
(6)       [1] [Mrz 12 14:04:07:071] startmessage opsi-script created at CentralForm.FormCreate: 12.03.2019 14:04:04
(7)       [1] [Mrz 12 14:04:07:071] Loading skin from: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winstskin
(8)       [1] [Mrz 12 14:04:07:071] Called with parameter: /opsiservice\r\nhttps://192.1.2.5:4447/rpc\r\n/clientid\r\npc-win7.firma.local\r\n/username\r\npc-win7.firma.local\r\n/password\r\n***(confidential)***\r\n
(9)       [1] [Mrz 12 14:04:07:071] Depot path from readconfig:  p:\ 12.03.2019 14:04:04
(10)      [1] [Mrz 12 14:04:07:071] startmessage StartProgramModes and create log: 12.03.2019 14:04:04
(11)      [1] [Mrz 12 14:04:07:071] pm: 5 12.03.2019 14:04:04
(12)      [1] [Mrz 12 14:04:07:071] startmessage start opsi service connection: 12.03.2019 14:04:04
(13)      [1] [Mrz 12 14:04:07:071] startmessage: opsidata initialized: 12.03.2019 14:04:04
(14)      [1] [Mrz 12 14:04:07:071] pc-win7.firma.local
(15)      [1] [Mrz 12 14:04:07:071] got debug_prog: false
(16)      [1] [Mrz 12 14:04:07:071] got default_loglevel: 7
(17)      [1] [Mrz 12 14:04:07:071] got config: opsi-script.global.force_min_loglevel
(18)      [1] [Mrz 12 14:04:07:071] got force_min_loglevel: 0
(19)      [1] [Mrz 12 14:04:07:071] readConfigFromService: ok
(20)      [1] [Mrz 12 14:04:07:071] startmessage create log: 12.03.2019 14:04:07
(21)      [1] [Mrz 12 14:04:07:071] force_min_loglevel: 0
(22)      [1] [Mrz 12 14:04:07:071] default_loglevel: 7
(23)      [1] [Mrz 12 14:04:07:071] debug_prog: false
(24)      [1] [Mrz 12 14:04:07:071] debug_lib: true
(25)      [7] [Mrz 12 14:04:07:075] JSON service request https://192.1.2.5:4447/rpc getDepotId
(26)      [7] [Mrz 12 14:04:07:303] JSON service request https://192.1.2.5:4447/rpc getProductOrdering
(27)      [7] [Mrz 12 14:04:08:436] JSON service request https://192.1.2.5:4447/rpc productOnClient_getObjects
(28)      [6] [Mrz 12 14:04:08:652] Computername:pc-win7.firma.local
(29)      [6] [Mrz 12 14:04:08:652] Computername according to Environment Variable :PC-WIN7
(30)      [6] [Mrz 12 14:04:08:652] opsi service URL https://192.1.2.5:4447
(31)      [6] [Mrz 12 14:04:08:652] Depot path:  p:\
(32)      [6] [Mrz 12 14:04:08:652] 
(33)      [7] [Mrz 12 14:04:08:658] bootmode from registry: BKSTD
(34)      [6] [Mrz 12 14:04:08:658] bootmode BKSTD
(35)      [6] [Mrz 12 14:04:08:658] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(36)      [6] [Mrz 12 14:04:08:658] Resolved sequence of products (12.03.2019 14:04:08): 
(37)      [6] [Mrz 12 14:04:08:658] Product 1 	my_firefox : setup
(38)      [6] [Mrz 12 14:04:08:658] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(39)      [7] [Mrz 12 14:04:08:658] JSON service request https://192.1.2.5:4447/rpc getProduct_hash
(40)      [7] [Mrz 12 14:04:08:928] in TOpsi4Data.initProduct : my_firefox
(41)      [7] [Mrz 12 14:04:08:928] JSON service request https://192.1.2.5:4447/rpc productOnClient_getObjects
(42)      [6] [Mrz 12 14:04:09:130] Actionrequest for product: my_firefox is (original/actual): (setup / setup)
(43)      [6] [Mrz 12 14:04:09:409] [my_firefox] Actionrequest for Product: my_firefox is: setup
(44)      [7] [Mrz 12 14:04:09:410] [my_firefox] JSON service request https://192.1.2.5:4447/rpc getProductProperties_hash
(45)      [7] [Mrz 12 14:04:09:786] [my_firefox] JSON service request https://192.1.2.5:4447/rpc getProduct_hash
(46)      [7] [Mrz 12 14:04:10:116] [my_firefox] in TOpsi4Data.initProduct : my_firefox
(47)      [7] [Mrz 12 14:04:10:116] [my_firefox] JSON service request https://192.1.2.5:4447/rpc productOnClient_getObjects
(48)      [6] [Mrz 12 14:04:10:343] [my_firefox] scriptname: "setup.opsiscript", special path: "p:\my_firefox\"
(49)      [7] [Mrz 12 14:04:10:343] [my_firefox] JSON service request https://192.1.2.5:4447/rpc productOnClient_updateObject
(50)      [6] [Mrz 12 14:04:10:582] [my_firefox] Using old Depot path:  p:\
(51)      [1] [Mrz 12 14:04:10:596] [my_firefox] 
(52)      [1] [Mrz 12 14:04:10:596] [my_firefox] ============ Version 4.12.0.13 script "p:\my_firefox\setup.opsiscript"
(53)      [1] [Mrz 12 14:04:10:596] [my_firefox]              used script encoding: cp1252
(54)      [1] [Mrz 12 14:04:10:596] [my_firefox]              used system encoding: cp1252
(55)      [1] [Mrz 12 14:04:10:596] [my_firefox]              start: 2019-03-12  14:04:10 
(56)      [1] [Mrz 12 14:04:10:596] [my_firefox]              installing product: my_firefox_64.0-1
(57)      [1] [Mrz 12 14:04:10:596] [my_firefox]              on client named    "pc-win7.firma.local"
(58)      [1] [Mrz 12 14:04:10:596] [my_firefox]              loggedin user    "Administrator"
(59)      [1] [Mrz 12 14:04:10:597] [my_firefox]              opsi-script running as    "SYSTEM"
(60)      [1] [Mrz 12 14:04:10:597] [my_firefox]              opsi-script running with admin privileges
(61)      [1] [Mrz 12 14:04:10:597] [my_firefox]              opsi-script running in standard script mode
(62)      [1] [Mrz 12 14:04:10:597] [my_firefox] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
(63)      [1] [Mrz 12 14:04:10:597] [my_firefox] system infos:
(64)      [1] [Mrz 12 14:04:10:599] [my_firefox] 00-50-56-A1-44-0A  -  PC hardware address
(65)      [1] [Mrz 12 14:04:10:599] [my_firefox] PC-Win7.firma.local  -  IP name 
(66)      [1] [Mrz 12 14:04:10:599] [my_firefox] 192.1.1.9  -  IP address
(67)      [1] [Mrz 12 14:04:10:599] [my_firefox] DEU  -  System default locale 
(68)      [1] [Mrz 12 14:04:10:600] [my_firefox] MS Windows 6.1 64 Bit, Edition: PRODUCT_PROFESSIONAL
(69)      [1] [Mrz 12 14:04:10:600] [my_firefox] opsi service version : 4
(70)      [1] [Mrz 12 14:04:10:600] [my_firefox] 
(71)      [7] [Mrz 12 14:04:10:601] [my_firefox] Registry started readonly
(72)      [7] [Mrz 12 14:04:10:601] [my_firefox] Registry started without redirection (64 Bit)
(73)      [6] [Mrz 12 14:04:10:601] [my_firefox] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion]  opened
(74)      [6] [Mrz 12 14:04:10:601] [my_firefox] Key closed
(75)      [6] [Mrz 12 14:04:10:683] [my_firefox] opsi-script has version  4.12.0.13, required is : >= 4.11.4.3
(76)      [6] [Mrz 12 14:04:10:683] [my_firefox] ScriptErrorMessages was False is set to false
(77)      [6] [Mrz 12 14:04:10:684] [my_firefox] Set  $LogDir$ = "c:\opsi.org\log"
(78)      [6] [Mrz 12 14:04:10:684] [my_firefox]   The value of the variable "$LogDir$" is now: "c:\opsi.org\log"
(79)      [7] [Mrz 12 14:04:10:684] [my_firefox] Found Include_append statement for: p:\my_firefox\check_nsis_exitcode.opsiscript
(80)      [6] [Mrz 12 14:04:10:690] [my_firefox] Included (append) file: p:\my_firefox\check_nsis_exitcode.opsiscript with encoding: cp1252
(81)      [6] [Mrz 12 14:04:10:690] [my_firefox] Set  $ProductId$       = "my_firefox"
(82)      [6] [Mrz 12 14:04:10:690] [my_firefox]   The value of the variable "$ProductId$" is now: "my_firefox"
(83)      [6] [Mrz 12 14:04:10:690] [my_firefox] Set  $Setupfile$       = "setup.exe"
(84)      [6] [Mrz 12 14:04:10:690] [my_firefox]   The value of the variable "$Setupfile$" is now: "setup.exe"
(85)      [6] [Mrz 12 14:04:10:690] [my_firefox] Set  $InstallDir$      = "C:\Program Files (x86)\Mozilla Firefox"
(86)      [6] [Mrz 12 14:04:10:690] [my_firefox]   The value of the variable "$InstallDir$" is now: "C:\Program Files (x86)\Mozilla Firefox"
(87)      [6] [Mrz 12 14:04:10:690] [my_firefox] Set  $MinimumSpace$    = "40 MB"
(88)      [6] [Mrz 12 14:04:10:690] [my_firefox]   The value of the variable "$MinimumSpace$" is now: "40 MB"
(89)      [6] [Mrz 12 14:04:10:690] [my_firefox] Set  $distDir$ = "distribution"
(90)      [6] [Mrz 12 14:04:10:690] [my_firefox]   The value of the variable "$distDir$" is now: "distribution"
(91)      [6] [Mrz 12 14:04:10:690] [my_firefox] Set  $policy$ = "policies.json"
(92)      [6] [Mrz 12 14:04:10:690] [my_firefox]   The value of the variable "$policy$" is now: "policies.json"
(93)      [6] [Mrz 12 14:04:10:690] [my_firefox] Set  $Setup_INI$ = "ff.ini"
(94)      [6] [Mrz 12 14:04:10:690] [my_firefox]   The value of the variable "$Setup_INI$" is now: "ff.ini"
(95)      [6] [Mrz 12 14:04:10:691] [my_firefox] If
(96)      [6] [Mrz 12 14:04:10:691] [my_firefox]     Free on Disk C:: 18.536.325.120 bytes  This is more than the required amount of 40.000.000 bytes
(97)      [7] [Mrz 12 14:04:10:691] [my_firefox]   HasMinimumSpace ("C:", $MinimumSpace$)   <<< result true
(98)      [6] [Mrz 12 14:04:10:691] [my_firefox]   not(HasMinimumSpace ("C:", $MinimumSpace$))   <<< result false
(99)      [6] [Mrz 12 14:04:10:691] [my_firefox] Then
(100)     [6] [Mrz 12 14:04:10:691] [my_firefox] Else
(101)     [5] [Mrz 12 14:04:10:691] [my_firefox]   comment: Show product picture
(102)     [6] [Mrz 12 14:04:10:703] [my_firefox]   If
(103)     [6] [Mrz 12 14:04:10:703] [my_firefox]     Starting query if file exist ...
(104)     [6] [Mrz 12 14:04:10:705] [my_firefox]     FileExists("p:\my_firefox\delsub.opsiscript")   <<< result true
(105)     [6] [Mrz 12 14:04:10:705] [my_firefox]   Then
(106)     [7] [Mrz 12 14:04:10:706] [my_firefox]     Session owner found: FIRMA\Administrator
(107)     [7] [Mrz 12 14:04:10:707] [my_firefox]     winst owner found: NT-AUTORIT?T\SYSTEM
(108)     [6] [Mrz 12 14:04:10:717] [my_firefox]     Nothing to stop, no instances of "firefox.exe" found
(109)     [7] [Mrz 12 14:04:10:717] [my_firefox]     Session owner found: FIRMA\Administrator
(110)     [7] [Mrz 12 14:04:10:718] [my_firefox]     winst owner found: NT-AUTORIT?T\SYSTEM
(111)     [6] [Mrz 12 14:04:10:728] [my_firefox]     Nothing to stop, no instances of "plugin-container.exe" found
(112)     [5] [Mrz 12 14:04:10:728] [my_firefox]     comment: Start uninstall sub section
(113)     [7] [Mrz 12 14:04:10:732] [my_firefox]     Loaded sub from: p:\my_firefox\delsub.opsiscript with encoding: cp1252
(114)     [6] [Mrz 12 14:04:10:732] [my_firefox]     
(115)     [6] [Mrz 12 14:04:10:732] [my_firefox]     ~~~~~~~ Start Sub ~~~~~~~  Sub "p:\my_firefox\delsub.opsiscript"
(116)     [7] [Mrz 12 14:04:10:733] [my_firefox]     Found Include_append statement for: p:\my_firefox\check_nsis_exitcode.opsiscript
(117)     [6] [Mrz 12 14:04:10:736] [my_firefox]     Included (append) file: p:\my_firefox\check_nsis_exitcode.opsiscript with encoding: cp1252
(118)     [6] [Mrz 12 14:04:10:736] [my_firefox]     Set  $found$     = "false"
(119)     [6] [Mrz 12 14:04:10:736] [my_firefox]       The value of the variable "$found$" is now: "false"
(120)     [6] [Mrz 12 14:04:10:736] [my_firefox]     Set  $MsiId$     = ''
(121)     [6] [Mrz 12 14:04:10:736] [my_firefox]       The value of the variable "$MsiId$" is now: ""
(122)     [5] [Mrz 12 14:04:10:736] [my_firefox]     message Uninstalling my_firefox ...
(123)     [6] [Mrz 12 14:04:10:740] [my_firefox]     Set  $UninstallProgram$ = $InstallDir$ + "\uninstall\helper.exe"
(124)     [6] [Mrz 12 14:04:10:740] [my_firefox]       The value of the variable "$UninstallProgram$" is now: "C:\Program Files (x86)\Mozilla Firefox\uninstall\helper.exe"
(125)     [6] [Mrz 12 14:04:10:740] [my_firefox]     If
(126)     [6] [Mrz 12 14:04:10:740] [my_firefox]       Starting query if file exist ...
(127)     [6] [Mrz 12 14:04:10:740] [my_firefox]         "C:\Program Files (x86)\Mozilla Firefox\uninstall\helper.exe": 
(128)     [6] [Mrz 12 14:04:10:740] [my_firefox]       FileExists($UninstallProgram$)   <<< result false
(129)     [6] [Mrz 12 14:04:10:740] [my_firefox]     Then
(130)     [6] [Mrz 12 14:04:10:740] [my_firefox]     EndIf
(131)     [6] [Mrz 12 14:04:10:740] [my_firefox]     If
(132)     [7] [Mrz 12 14:04:10:740] [my_firefox]       $InstallDir$ = ''   <<< result false
(133)     [7] [Mrz 12 14:04:10:740] [my_firefox]       not($InstallDir$ = '')   <<< result true
(134)     [7] [Mrz 12 14:04:10:740] [my_firefox]       $InstallDir$ = "not used"   <<< result false
(135)     [7] [Mrz 12 14:04:10:740] [my_firefox]       not($InstallDir$ = "not used")   <<< result true
(136)     [7] [Mrz 12 14:04:10:740] [my_firefox]       (not($InstallDir$ = "not used"))   <<< result true
(137)     [6] [Mrz 12 14:04:10:740] [my_firefox]       (not($InstallDir$ = '')) and (not($InstallDir$ = "not used"))   <<< result true
(138)     [6] [Mrz 12 14:04:10:740] [my_firefox]     Then
(139)     [5] [Mrz 12 14:04:10:741] [my_firefox]       Execution of: Files_uninstall 
(140)     [5] [Mrz 12 14:04:10:741] [my_firefox]       
(141)     [7] [Mrz 12 14:04:10:741] [my_firefox]         del -sf "C:\Program Files (x86)\Mozilla Firefox\"
(142)     [6] [Mrz 12 14:04:10:741] [my_firefox]         Notice: File or Directory C:\Program Files (x86)\Mozilla Firefox\ does not exist, nothing deleted
(143)     [6] [Mrz 12 14:04:10:741] [my_firefox]     EndIf
(144)     [6] [Mrz 12 14:04:10:741] [my_firefox]     line is starting with "[": inDefFunc3: 0
(145)     [6] [Mrz 12 14:04:10:741] [my_firefox]     Section ending since next line is starting with "["
(146)     [6] [Mrz 12 14:04:10:741] [my_firefox]     
(147)     [6] [Mrz 12 14:04:10:741] [my_firefox]     ~~~~~~~ End Sub   ~~~~~~~  Sub "p:\my_firefox\delsub.opsiscript"
(148)     [6] [Mrz 12 14:04:10:741] [my_firefox]     
(149)     [6] [Mrz 12 14:04:10:741] [my_firefox]   EndIf
(150)     [5] [Mrz 12 14:04:10:743] [my_firefox]   message Installing my_firefox ...
(151)     [6] [Mrz 12 14:04:10:747] [my_firefox]   Set  $NsisInstallBatch$ = "p:\my_firefox\setup.exe"
(152)     [6] [Mrz 12 14:04:10:747] [my_firefox]     The value of the variable "$NsisInstallBatch$" is now: "p:\my_firefox\setup.exe"
(153)     [5] [Mrz 12 14:04:10:749] [my_firefox]   comment: Start setup program
(154)     [6] [Mrz 12 14:04:10:752] [my_firefox]   Changed current directory to p:\my_firefox
(155)     [5] [Mrz 12 14:04:10:752] [my_firefox]   Execution of: Files_copy_ini 
(156)     [5] [Mrz 12 14:04:10:752] [my_firefox]   
(157)     [7] [Mrz 12 14:04:10:752] [my_firefox]     copy -sen "p:\my_firefox\ff.ini" "c:\opsi.org\tmp\"
(158)     [6] [Mrz 12 14:04:10:766] [my_firefox]     Copying  p:\my_firefox\ff.ini -----> c:\opsi.org\tmp\
(159)     [6] [Mrz 12 14:04:10:766] [my_firefox]       1 File(s) found
(160)     [6] [Mrz 12 14:04:10:771] [my_firefox]       Source p:\my_firefox\ff.ini
(161)     [6] [Mrz 12 14:04:10:777] [my_firefox]         p:\my_firefox\ff.ini copied to c:\opsi.org\tmp\
(162)     [6] [Mrz 12 14:04:10:782] [my_firefox]       No (non-directory) file with mask  p:\my_firefox\distribution\ff.ini  found
(163)     [6] [Mrz 12 14:04:10:783] [my_firefox]       1 File(s) treated
(164)     [5] [Mrz 12 14:04:10:788] [my_firefox]   Execution of: Winbatch_install 
(165)     [5] [Mrz 12 14:04:10:788] [my_firefox]   
(166)     [6] [Mrz 12 14:04:10:788] [my_firefox]     Call "p:\my_firefox\setup.exe /INI="c:\opsi.org\tmp\ff.ini""
(167)     [6] [Mrz 12 14:04:10:788] [my_firefox]        Waiting until the called process is finished
(168)     [6] [Mrz 12 14:04:10:789] [my_firefox]     Start process as invoker: SYSTEM
(169)     [6] [Mrz 12 14:04:33:302] [my_firefox]     ExitCode 0    Executed process "p:\my_firefox\setup.exe /INI="c:\opsi.org\tmp\ff.ini""
(170)     [5] [Mrz 12 14:04:33:306] [my_firefox]   Execution of: Files_copy_policies 
(171)     [5] [Mrz 12 14:04:33:306] [my_firefox]   
(172)     [7] [Mrz 12 14:04:33:307] [my_firefox]     copy "p:\my_firefox\distribution\" "C:\Program Files (x86)\Mozilla Firefox\distribution\"
(173)     [6] [Mrz 12 14:04:33:308] [my_firefox]         path C:\Program Files (x86)\Mozilla Firefox\distribution\ created
(174)     [6] [Mrz 12 14:04:33:310] [my_firefox]     Copying  p:\my_firefox\distribution\ -----> C:\Program Files (x86)\Mozilla Firefox\distribution\
(175)     [6] [Mrz 12 14:04:33:310] [my_firefox]       1 File(s) found
(176)     [6] [Mrz 12 14:04:33:312] [my_firefox]       Source p:\my_firefox\distribution\policies.json
(177)     [6] [Mrz 12 14:04:33:318] [my_firefox]         p:\my_firefox\distribution\policies.json copied to C:\Program Files (x86)\Mozilla Firefox\distribution\
(178)     [6] [Mrz 12 14:04:33:324] [my_firefox]       1 File(s) treated
(179)     [6] [Mrz 12 14:04:33:326] [my_firefox]   
(180)     [6] [Mrz 12 14:04:33:326] [my_firefox]   ~~~~~~~ Start Sub ~~~~~~~  Sub_check_exitcode
(181)     [5] [Mrz 12 14:04:33:327] [my_firefox]   comment: Check exit code
(182)     [6] [Mrz 12 14:04:33:327] [my_firefox]   Set  $ExitCode$ = getLastExitCode
(183)     [6] [Mrz 12 14:04:33:327] [my_firefox]     The value of the variable "$ExitCode$" is now: "0"
(184)     [6] [Mrz 12 14:04:33:327] [my_firefox]   If
(185)     [7] [Mrz 12 14:04:33:327] [my_firefox]     $ExitCode$ = "0"   <<< result true
(186)     [6] [Mrz 12 14:04:33:327] [my_firefox]     ($ExitCode$ = "0")   <<< result true
(187)     [6] [Mrz 12 14:04:33:327] [my_firefox]   Then
(188)     [5] [Mrz 12 14:04:33:327] [my_firefox]     comment: ExitCode = 0 Setup was successfully run to completion.
(189)     [6] [Mrz 12 14:04:33:327] [my_firefox]   Else
(190)     [6] [Mrz 12 14:04:33:327] [my_firefox]     If
(191)     [6] [Mrz 12 14:04:33:327] [my_firefox]     Then
(192)     [6] [Mrz 12 14:04:33:327] [my_firefox]     Else
(193)     [6] [Mrz 12 14:04:33:327] [my_firefox]     EndIf
(194)     [6] [Mrz 12 14:04:33:327] [my_firefox]   EndIf
(195)     [6] [Mrz 12 14:04:33:327] [my_firefox]   
(196)     [6] [Mrz 12 14:04:33:327] [my_firefox]   ~~~~~~~ End Sub   ~~~~~~~  Sub_check_exitcode
(197)     [6] [Mrz 12 14:04:33:327] [my_firefox]   
(198)     [6] [Mrz 12 14:04:33:327] [my_firefox] EndIf
(199)     [1] [Mrz 12 14:04:33:327] [my_firefox] ___________________
(200)     [1] [Mrz 12 14:04:33:327] [my_firefox] script finished: success
(201)     [1] [Mrz 12 14:04:33:327] [my_firefox] 0 errors
(202)     [1] [Mrz 12 14:04:33:327] [my_firefox] 0 warnings
(203)     [1] [Mrz 12 14:04:33:327] [my_firefox] 
(204)     [1] [Mrz 12 14:04:33:327] [my_firefox] installed product: my_firefox Version: 64.0-1
(205)     [1] [Mrz 12 14:04:33:327] [my_firefox] 
(206)     [7] [Mrz 12 14:04:33:328] [my_firefox] JSON service request https://192.1.2.5:4447/rpc setProductActionRequest
(207)     [1] [Mrz 12 14:04:33:693] [my_firefox] product my_firefox set to update
(208)     [1] [Mrz 12 14:04:33:694] [my_firefox] Update script name: 
(209)     [1] [Mrz 12 14:04:33:694] [my_firefox] we have no update script
(210)     [7] [Mrz 12 14:04:33:694] [my_firefox] BuildPC: update switches .....
(211)     [7] [Mrz 12 14:04:33:694] [my_firefox] JSON service request https://192.1.2.5:4447/rpc productOnClient_updateObject
(212)     [7] [Mrz 12 14:04:33:908] Registry started with redirection (32 Bit)
(213)     [6] [Mrz 12 14:04:33:908] Registry key [HKLM\SOFTWARE\opsi.org\winst]  opened
(214)     [6] [Mrz 12 14:04:33:908]                   Variable "RebootRequested"  set to "0"
(215)     [6] [Mrz 12 14:04:33:909]                   Variable "LastLogFilename"  is keeping its value "c:\opsi.org\log\opsi-script.log"
(216)     [6] [Mrz 12 14:04:33:909]                   Variable "ContinueLogFile"  is keeping its value "0"
(217)     [6] [Mrz 12 14:04:33:909]                   Variable "NumberOfErrors"  not found. Code: 2
(218)     [6] [Mrz 12 14:04:34:009]                   Key flushed
(219)     [6] [Mrz 12 14:04:34:009]                   Key closed
(220)     [5] [Mrz 12 14:04:34:013] -------- submitted part of log file ends here, see the rest of log file on client ----------

thomas.besser
Beiträge: 455
Registriert: 09 Sep 2009, 09:40

Re: Firefox mit INI Installieren - Winst lokal geht, vom Server nicht?

Beitrag von thomas.besser »

Code: Alles auswählen

 (2057)    [5] [Mrz 13 07:43:24:120] [dfn_firefox-esr]   Execution of: Winbatch_install
 (2058)    [5] [Mrz 13 07:43:24:120] [dfn_firefox-esr]   
 (2059)    [6] [Mrz 13 07:43:24:126] [dfn_firefox-esr]     Call ""p:\dfn_firefox-esr\Firefox Setup 60.5.2esr_64.exe" /INI="c:\opsi.org\tmp\firefox.ini""
 (2060)    [6] [Mrz 13 07:43:24:126] [dfn_firefox-esr]        Waiting until the called process is finished
 (2061)    [6] [Mrz 13 07:43:24:126] [dfn_firefox-esr]     Start process as invoker: SYSTEM
 (2062)    [6] [Mrz 13 07:44:43:801] [dfn_firefox-esr]     ExitCode 0    Executed process ""p:\dfn_firefox-esr\Firefox Setup 60.5.2esr_64.exe" /INI="c:\opsi.org\tmp\firefox.ini""
Funktioniert hier wunderbar, siehe oben...

Gruß
Thomas
IvicaE
Beiträge: 136
Registriert: 13 Sep 2016, 14:10

Re: Firefox mit INI Installieren - Winst lokal geht, vom Server nicht?

Beitrag von IvicaE »

thomas.besser hat geschrieben:Funktioniert hier wunderbar, siehe oben...
Hast du dir mein Skript angeschaut oder es ausgeführt?
Wenn ja:
Na wunderbar dann! Mir wäre es lieber gewesen wenn der Fehler für dich offensichtlich gewesen wäre in meinem Skript..
Jetzt hänge ich etwas in der Luft und weiß nicht vor und nicht zurück...

Meine INI-Datei wird definitiv ignoriert weil mein Taskleisten-Shortcut NICHT angelegt wird vom OPSI (nur wenn ich das Skript manuell mit Winst ausführe was mich ja noch mehr stutzig macht).


Kann es am Server liegen? Falsche konfiguration oder ähnliches? Eigentlich habe ich vor Jahren die fertige Ubuntu-VM heruntergeladen und nutze sie seither, also konfigureirt habe ich an dem Ding nahezu nichts. Updates gefahren, migriert auf eine neuere Version, aber das lief ja alles nahezu vollautomatisch ab...

Also im Skript findet man keine Fehler? Ich installiere übrigens nicht die ESR-Version sondern die Standard-Version... ist das vielleicht ein Problem mit dem Opsi?
Antworten