Setup.inf /AW - Benutzer Kontext klappt nicht

Willkommen in unserer deutschsprachigen Anwendergemeinde.
Stellen Sie ruhig ihre Fragen oder teilen Sie ihr Wissen mit anderen.

Moderator: hdroege

Post Reply
boesenma
Posts: 6
Joined: 06. Sep 2013, 08:08
Contact:

Setup.inf /AW - Benutzer Kontext klappt nicht

Post by boesenma » 27. Jun 2016, 12:58

Hallo,

aktuell versuche ich eine Installation im Benutzer Kontext laufen zu lassen. Dazu benutze ich die Parameter CLIENT und AW.
Leider funktioniert dann die Installation der Anwendung nicht. Kann mir hier jemand weiterhelfen?

Danke und Grüße
Martin

Code: Select all

[SetupInfo]
Author					= matrix42
CreationDate			= 09.05.2012
InventoryID             = 
Description				=
Method                  = scripted
Tested on				= Windows 10
Dependencies            = 
Command line options	= /S2 /AW
Last change				= 16:14 18.07.2013
Build                   = 1

[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>

[Setup]
Version=14.2
ShowCaption=1
BlockInput=0
Platform=*


[Requirements]



[Application]
ProductName=Windows 10 Client Settings
Version=1.0
VersionDirSuffix=100
Revision=1
ServiceRelease=0
DeveloperName=test
DeveloperNameShort=test
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName%",	         		Times New Roman,           30, , 8b4c35, 4, ,    LEFT BOLD
Text2="%DeveloperName%",                 			Times New Roman,           24, , 8b4c35, 4, ,    LEFT BOLD
Text3="  ",                 					Times New Roman,           24, , 8b4c35, 4, ,    CENTER BOLD
Text4="  ",                 					Times New Roman,           24, , 8b4c35, 4, ,    CENTER BOLD
Text5=" ", 							Times New Roman,           24, , 8b4c35, 4, ,    CENTER BOLD
Text6=" ",							Times New Roman,           24, , 8b4c35, 4, ,    CENTER BOLD
;Text8="%Company%",                       			Times New Roman,           18, , 8b4c35, 4, 10,  RIGHT BOLD
Text9="%InstallationFor% %WindowsUser%", 			Times New Roman,           14, , 8b4c35, 4, -14, BOTTOM ITALIC LEFT
BackgroundColor=FFFFFF,FFFFFF
BackgroundPicture=VBLOGO_350.bmp, 0, 0, 100%, 100%, 00FFFF, HCENTER VCENTER
BackgroundSound=
Logo=
WizardPicture=
CopyDialogRect=-10#, -10#, 0, 0, NORMAL
UserKeyName=%DeveloperName%\%ProductName%
MachineKeyName=%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=%DeveloperName% %ProductName% %Version%
UninstallDisplayName=%ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
ReinstallMode=1
SrcDir=..
ApplicationDir=c:\temp
SetupInfDir=Install
DataDir=%Personal%
Prompts=
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=0
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=0
SizeWarning=0
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=0
EndMessage=%EndMessageDesc%


[Strings:07]
Disk1=Installationsmedium 1
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
ErrorLogMessage=Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen!
InstallationFor=Installation f¸r:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren

[Strings:09]
Disk1=Installation media 1
EndMessageDesc=Installation was completed successfully!
ErrorLogMessage=The installation/uninstallation aborted with an error message!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
SetupWizard=Installation Wizard
Uninstallation=Uninstallation

[SysStrings:07]
Users=Benutzer

[SysStrings:09]
Users=Users

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%
V_DefaultProfilePath=%HKLM,"Software\Microsoft\Windows NT\CurrentVersion\ProfileList","Default"%

;VU_<Variable>=%%%V_UserValuesPath%\%WindowsUser%.ini,%WindowsUser%,<Variable>%%


[Prompts]

[Services]

[Processes]

[EventSources]

[Encryption]

[Disks]
1=%Disk1%

[Options]
Installer = %InstallerName%, COPYALWAYS, Installer, "%InstallerDesc%"
Product   = %ProductName%,   COPYALWAYS, Product,   "%ProductDesc%"


[Installer]
1:..\..\..\..\..\User\Setup.exe,      %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\..\User\SetupDeu.chm,   %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\..\User\SetupEnu.chm,   %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\..\User\Mx42SynSem.dll, %System%,         OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:%SetupInfDir%\VBLOGO_350.bmp,     	   , NORMAL,                                                0
1:%SetupInfDir%\Setup.inf,                 , NORMAL,                                                0



[FileCheckMachine]
ReplaceEnv V_MachineValuesPath
If DoesFileExist ("%V_MachineValuesPath%\%ComputerName%.ini") == "0" Then "FileIsntThere" EndIf

[FileCheckClient]
ReplaceEnv V_UserValuesPath
If "%UserDomain%" <> "%ComputerName%" Then "CheckClientFile" EndIf

[CheckClientFile]
If DoesFileExist ("%V_UserValuesPath%\%WindowsUser%.ini") == "0" Then "FileIsntThere" EndIf

[FileIsntThere]
ErrorLogMsg Values$\MachineValues\%DomainName%\%ComputerName%.ini or Values$\UserValues\%UserDomain%\%WindowsUser%.ini not found!
Abort




[Product]
#Set:Standort, MACHINE DONTDELETE
#Set:Product, CLIENT DONTDELETE
;#Set:Restart

[Set:Standort]

Set empserv=%empirumserver%
ReplaceEnv empserv
;echo Depot: %empserv%


[Set:Product]

call cmd /c "%src%\files\VMwareOSOptimizationTool_b1072.exe -o -t %src%\files\template_win10settings.xml -r %windir%\Service\Log\"



[Set:Restart]

call cmd /c "shutdown" -r -f -t 5

Sven_Puth
Posts: 461
Joined: 07. Apr 2011, 15:55
Contact:

Re: Setup.inf /AW - Benutzer Kontext klappt nicht

Post by Sven_Puth » 27. Jun 2016, 13:00

Im Benutzerkontext gibt es %src% nicht. Daten müssten in einem Maschinen-Kontext erst nach %app% kopiert werden und anschließend im Benutzerkontext von dort gestartet werden.
Tria-media - IT Solutions

Post Reply

Return to “Deutsch”

Who is online

Users browsing this forum: No registered users and 2 guests