%APPDATA% in der Sektion [ProfileActions]

Antworten
MyKey0815
Beiträge: 65
Registriert: 01 Jul 2008, 17:15

%APPDATA% in der Sektion [ProfileActions]

Beitrag von MyKey0815 »

Ich habe eine Click-Once Anwendung, die ich gern per OPSI durch die Sektion "ProfileActions" installieren möchte

Nachdem ich die benötigten Zertifikate per GPO in der Domäne verteilt habe, startet die der Download der Dateien automatisch.

Danach müsste die Anwendung starten - was sie auch tut - nur leider kommt die Meldung, dass nicht gestartet werden kann. Es liegt daran, dass der Download der setup.exe die Dateien nach C:\Windows\system32\config\systemprofile\AppData ablegt - ich aber die Dateien unter dem Benutzer-AppData benötige

Hier der Auszug aus der "userlogin.ins"

Code: Alles auswählen


[ProfileActions]
requiredWinstVersion >= "4.11.2.6"

DefVar $LogDir$
DefVar $ExitCode$
DefVar $INST_SystemType$
DefVar $INST_architecture$


; Diese Variabeln werden später zur Installation überschrieben und ausgeführt
DefVar 	$InstallDir$
DefVar 	$ProgExe$

Set $INST_SystemType$ = GetSystemType
set $INST_architecture$ = GetProductProperty("install_architecture","system specific")

Set $LogDir$ = "%SystemDrive%\tmp"

DefVar $Install32Exec$
Set    $Install32Exec$ = "%ScriptPath%\X86\Cloud_Setup.exe"
DefVar $Install64Exec$
Set    $Install64Exec$ = "%ScriptPath%\X86\Cloud_Setup.exe"

comment "check for profile modifications"
comment $INST_SystemType$

if not (scriptWasExecutedBefore) 
	
	comment "found profile modifications"	
	
	if ($INST_SystemType$ = "32 Bit System")
		comment "Profilemodifications 32-bit"
		Winbatch_install_profile_32

		;Files_profile_copy
		;Registry_currentuser_set
		;Patches_profile_ini "%userprofiledir%\opsi-winst-test.ini"
	endif
	
	if ($INST_SystemType$ = "64 Bit System")
		comment "Profilemodifications 64-bit"
		Winbatch_install_profile_64
		;Files_profile_copy
		;Registry_currentuser_set
		;Patches_profile_ini "%userprofiledir%\opsi-winst-test.ini"
	endif

endif
[Winbatch_install_profile_32]
comment $Install32Exec$
$Install32Exec$


[Winbatch_install_profile_64]
comment $Install64Exec$
$Install64Exec$

MyKey0815
Beiträge: 65
Registriert: 01 Jul 2008, 17:15

Re: %APPDATA% in der Sektion [ProfileActions]

Beitrag von MyKey0815 »

Leider besteht das Problem immer noch - Liegt das an einer falschen Konfiguration meinerseits?
MyKey0815
Beiträge: 65
Registriert: 01 Jul 2008, 17:15

Re: %APPDATA% in der Sektion [ProfileActions]

Beitrag von MyKey0815 »

Gibt es hierfür mittlerweile eine Lösung? Wir möchten in wenigen Wochen mit dem Rollout für unsere Firma beginnen und bisher hab ich dieses Verhalten nicht so beeinflussen können, dass die Installation korrekt ausgeführt wird.

Kann mir jemand einen Tipp geben?
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: %APPDATA% in der Sektion [ProfileActions]

Beitrag von n.wenselowski »

Ich lasse mal das hier.

Code: Alles auswählen

import OPSI
Antworten