ich sitzte jetzt schon 3 Tage an dem Problem und hoffe, ihr könnt mir weiterhelfen.
Ich möchte HyperSnap installieren und habe hierzu einen Benutzerteil, welcher unter HKCU ein paar Einträge ändert.
Command line options = /AW /S2
Leider führt er den Benutzerteil nur einmal aus und zwar bei dem aktuell angemeldeten User.
Wenn sich ein anderer User (lokaler Admin) anmeldet, bricht der Userteil mit dem Fehler 5 ab.
Hier der Code:
Code: Select all
[SetupInfo]
Author =admin-dennis
CreationDate =10.12.2015 15:37:24
InventoryID =
Description = HyperSnap 8.06.02
Method = Unattended
Tested on = x64/x86
Dependencies =
Command line options =/AW /S2
Last Change =10.12.2015
Build =
[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=HyperSnap
DeveloperName=Hyperionics
Version=8.06.02
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%", Arial, 30, , 2170F3, 4, , LEFT BOLD ITALIC
Text2="%DeveloperName%", Arial, 24, , 2170F3, 4, , LEFT BOLD ITALIC
Text8="%Company%", Arial, 18, , 2170F3, 4, 10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial, 16, , 2170F3, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
; Register all installations in common registry key
UserKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%
MachineKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallDisplayName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
;UninstallDisplayIcon="%ApplicationDir%\%SetupInfDir%\Setup.ico",0
UninstallOptions=NOREMOVE NOREPAIR NOMODIFY
ReinstallMode=1
SrcDir=..
; Matrix42 Scripts are copied in a common scripts directory
ApplicationDir=%CommonAppData%\$Matrix42Scripts$\%DeveloperName%\%ProductName%\%Version%
SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=0
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=1
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
ErrorText=Fehler
CallingText=beim Aufruf von
[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
ErrorText=Error
CallingText=launching
[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%
; Maschinenabhängige Variablen
; machine dependent variables
;VM_<Variable>=%%%V_MachineValuesPath%\%ComputerName%.ini,%ComputerName%,<Variable>%%
; Userabhängige Variablen
; user dependent variables
;VU_<Variable>=%%%V_UserValuesPath%\%WindowsUser%.ini,%WindowsUser%,<Variable>%%
; !!! Setzen der entsprechenden ReplaceEnv Befehle für die Variablen im Abschnitt [Product] nicht vergessen!!!
; !!! Don't forget to set the appropriate ReplaceEnv instructions for the variables in the section [Product]!!!
[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:%SetupInfDir%\Setup.inf, , NORMAL, 0
1:%Temp%\Setup64.exe, %CommonSetupDir%\Setup.exe, ALWAYS NOSIZEWARNING SETUP WINDOWS64, 0
; 1:%SetupInfDir%\Setup.ico, , NORMAL, 0
; 1:%SetupInfDir%\Logo.bmp, , NORMAL, 0
[Product]
; ReplaceEnv <Variable>
#Set:Product
#Set:Installation, DONTDELETE
#Set:Afterinstall, CLIENT
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product, CLIENT
#Ini:Product
#Security:Product
[Set:Product]
1:HprSnap8.hs8lic, , NORMAL, 282
; 1:, %App%, CREATE DIRECTORY CASCADED, 0
1:Data\HyperSnap Stempel\All.hs5stamp, %Data%, CLIENT, 277
1:Data\HyperSnap Stempel\Annotate_1digit.hs5stamp, %Data%, CLIENT, 520
1:Data\HyperSnap Stempel\Arrow.hs5stamp, %Data%, CLIENT, 437
1:Data\HyperSnap Stempel\Button - Cancel.hs5stamp, %Data%, CLIENT, 538
1:Data\HyperSnap Stempel\Button - Delete.hs5stamp, %Data%, CLIENT, 403
1:Data\HyperSnap Stempel\Button - Edit.hs5stamp, %Data%, CLIENT, 349
1:Data\HyperSnap Stempel\Button - Save.hs5stamp, %Data%, CLIENT, 390
1:Data\HyperSnap Stempel\Button Label.hs5stamp, %Data%, CLIENT, 248
1:Data\HyperSnap Stempel\Button.hs5stamp, %Data%, CLIENT, 284
1:Data\HyperSnap Stempel\Draft.hs5stamp, %Data%, CLIENT, 348
1:Data\HyperSnap Stempel\Hand.hs5stamp, %Data%, CLIENT, 448
1:Data\HyperSnap Stempel\Postage-Mark Bottom.hs5stamp, %Data%, CLIENT, 807
1:Data\HyperSnap Stempel\Wave Bottom.hs5stamp,
[Set:Installation]
AddMeter -1
Call "%Src%\HS8Setup32DE_8.06.02.exe" -s
If %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf
[Set:Afterinstall]
Call xcopy "%Src%\Data" "C:\Users\Default\Documents\HyperSnap 8\" /Y /E
[Set:Deinstallation]
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "%ProgramFilesDirx86%\HyperSnap 8\HprUnInst.exe" -s
-AddMeter -1
[Reg:Product]
HKCU,"Software\Hyperionics\HyperSnap 8\CopyOpts","AutoSelect",0x00010001,1S
HKCU,"Software\Hyperionics\HyperSnap 8\CopyOpts","BitsPerPixel",0x00010001,24r
HKCU,"Software\Hyperionics\HyperSnap 8\CopyOpts","BmpFormat",0x00010001,3
HKCU,"Software\Hyperionics\HyperSnap 8\CopyOpts","MinOnCopy",0x00010001,0
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","Append",0x00010001,0D
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","AutoSelBits",0x00010001,1a
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","BitsBest",0x00010001,0C
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","BitsPerPixel",0x00010001,8t
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","ColorRes",0x00010001,2C
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","CopyPath",0x00010001,0C
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","CopyUrl",0x00010001,0B
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","CurDir",0x00000000,"0"C
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","FileName",0x00000000,"SNAP"a
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","Flags",0x00010001,2O
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","Format",0x00010001,75B
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","Interlace",0x00010001,0\
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","Minimize",0x00010001,0C
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","PassiveMode",0x00010001,0a
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","Port",0x00010001,21O
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","ProfileName",0x00000000,""t
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","ProxyName",0x00000000,""D
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","ProxyPort",0x00010001,21D
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","QFactor",0x00010001,2B
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","Quality",0x00010001,90C
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","SavePassword",0x00010001,0t
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","ServerName",0x00000000,""a
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","Transparent",0x00010001,0a
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","UrlStr",0x00000000,""B
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","UseProxy",0x00010001,0C
HKCU,"Software\Hyperionics\HyperSnap 8\ftp","User",0x00000000,""O
HKCU,"Software\Hyperionics\HyperSnap 8\ftp00","CopyUrl",0x00010001,0\
HKCU,"Software\Hyperionics\HyperSnap 8\ftp00","FileName",0x00000000,"SNAP"S
HKCU,"Software\Hyperionics\HyperSnap 8\ftp00","PassiveMode",0x00010001,0a
HKCU,"Software\Hyperionics\HyperSnap 8\ftp00","Port",0x00010001,21B
HKCU,"Software\Hyperionics\HyperSnap 8\ftp00","ProfileName",0x00000000,""
HKCU,"Software\Hyperionics\HyperSnap 8\ftp00","ProxyName",0x00000000,""t
HKCU,"Software\Hyperionics\HyperSnap 8\ftp00","ProxyPort",0x00010001,21t
HKCU,"Software\Hyperionics\HyperSnap 8\ftp00","SavePassword",0x00010001,0
[Shell:Product]
%Startup%\HyperSnap 8, %ProgramFilesDirX86%\HyperSnap 8\HprSnap8.exe, , %MyPictures%, HyperSnap 8
C:\Users\All Users\Microsoft\Windows\Start Menu\Programs\Startup\HyperSnap 8, %ProgramFilesDirX86%\HyperSnap 8\HprSnap8.exe, , %MyPictures%, HyperSnap 8
[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% HS8Setup32DE_8.06.02.exe
Abort
[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% "C:\Program Files (x86)\HyperSnap 8\HprUnInst.exe"