SW installieren im Userverzeichnis

Antworten
busabernhardg
Beiträge: 128
Registriert: 07 Jul 2008, 16:53

SW installieren im Userverzeichnis

Beitrag von busabernhardg »

Hallo,

wie geht Ihr mit SW um, die sich im Userverzeichnis installiert?
Leider habe ich derzeit 2 Applikationen die so installiert werden müssen. Ich möchte aber auch gewährleisten, das alle User immer den gleichen/aktuellsten Stand der SW haben.
Ich habe nun ein bisschen mit der Erweiterung "User Profile Management" experimentiert, scheint ein möglicher Lösungsweg zu sein (nach dem derzeitigen Stand der Dinge).
Meine Frage wäre aber, ob das der "beste" Weg ist?

Weiters ist mir dabei aufgefallen, das das Beispiel Script von der Doku einen Fehler wirft (opsi Handbuch V4.1, 9.18.5 Beispiele von userLoginScripten, Seite 363):

Code: Alles auswählen

[Actions]
requiredWinstVersion>= "4.11.3.2"
Message "Example Profile Patch ...."
Files_profile_copy
...
Fehler lt. Log File:
[7] [2021-02-04 09:11:22.653] [test] Starting with script...
[2] [2021-02-04 09:11:22.653] [test] Syntax Error in Section: Actions (Command in line 2 in section: Actions; file: userlogin32.opsiscript; section start at line: 1; origin: userlogin32.opsiscript; line: 2): requiredWinstVersion> -> undefined
[1] [2021-02-04 09:11:22.654] [test] ___________________

opsi-client-agent: 4.1.1.16
opsi-winst: 4.12.4.4

lg
Bernhard
Benutzeravatar
SisterOfMercy
Beiträge: 1523
Registriert: 22 Jun 2012, 19:18

Re: SW installieren im Userverzeichnis

Beitrag von SisterOfMercy »

busabernhardg hat geschrieben:Weiters ist mir dabei aufgefallen, das das Beispiel Script von der Doku einen Fehler wirft (opsi Handbuch V4.1, 9.18.5 Beispiele von userLoginScripten, Seite 363):

Code: Alles auswählen

[Actions]
requiredWinstVersion>= "4.11.3.2"
Message "Example Profile Patch ...."
Files_profile_copy
...
I've checked the current documentation but I don't see the error, it all says 'requiredWinstVersion >= "4.11.3.2"', with the space after requiredWinstVersion.
busabernhardg hat geschrieben:wie geht Ihr mit SW um, die sich im Userverzeichnis installiert?
Leider habe ich derzeit 2 Applikationen die so installiert werden müssen. Ich möchte aber auch gewährleisten, das alle User immer den gleichen/aktuellsten Stand der SW haben.
It depends on the software. With simple stuff I just grab the needed files from a test client. I then copy these files to the location in program files and all shortcuts to the program have the working directory set to where it would be installed normally. For telegram and spotify this worked.
For other software you might want to indeed use the user profile extension.
In the normal setup you could copy the needed files to a temp directory, so not every user would have to install it from the opsi server. Or include an opsi service call that sets the needed host parameters for user profile management.

An example:

Code: Alles auswählen

[Actions]
*blah blah - normal setup shizzle*

[ProfileActions]
DefStringList $ProductInfo$
DefVar $InstallationState$
set $ProductInfo$ = getProductMap
set $InstallationState$ = getValue("installationstate", $ProductInfo$)

DefVar $INST_MsVersion$
set $INST_MsVersion$ = GetMsVersionInfo
if (CompareDotSeparatedNumbers($INST_MsVersion$, "=", "10.0"))
	if ($InstallationState$ = "installed")
		if not (scriptWasExecutedBefore)
			comment "loginscript was not run before"
			Winbatch_create_associations /RunAsLoggedOnUser /SysNative
		endif
	endif
endif
Part of the control file would look like this:

Code: Alles auswählen

setupScript: setup3264.opsiscript
uninstallScript: uninstall3264.opsiscript
updateScript: 
alwaysScript: 
onceScript: 
customScript: 
userLoginScript: setup3264.opsiscript
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten