Seite 1 von 1

%APPDATA% in der Sektion [ProfileActions]

Verfasst: 18 Sep 2018, 20:56
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$


Re: %APPDATA% in der Sektion [ProfileActions]

Verfasst: 08 Okt 2018, 10:41
von MyKey0815
Leider besteht das Problem immer noch - Liegt das an einer falschen Konfiguration meinerseits?

Re: %APPDATA% in der Sektion [ProfileActions]

Verfasst: 25 Feb 2019, 08:36
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?

Re: %APPDATA% in der Sektion [ProfileActions]

Verfasst: 25 Feb 2019, 10:12
von n.wenselowski
Ich lasse mal das hier.