p.s. warum nutzt man manchmal ein Minuszeichen vor einem Befehl und manchmal nicht?
Code: Select all
[SetupInfo]
Author = Vittorio
CreationDate = 15.09.2015 09:57:41
InventoryID =
Description = Jens Klingen Greenshot 1.2.6.7
Method = Unattended
Tested on = Windows 7x64
Dependencies = None
Command line options = /AW /S0
Last Change =
Build = 01
[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>
[Setup]
Version=14.2
ShowCaption=1
BlockInput=0
Platform=x64
[Requirements]
[Application]
ProductName=Greenshot
DeveloperName=Jens Klingen
Version=1.2.6.7
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=Schwenk_Empinst\%DeveloperName%\%ProductName%
MachineKeyName=Schwenk_Empinst\%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%\Schwenk_Empinst\%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=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
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]
[Processes]
Greenshot=Greenshot.exe, Greenshot, KILLPROCESS CONTINUE
iexplore=iexplore.exe,Internet Explorer,KILLPROCESS CONTINUE
[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:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product
#Set:InstallationError
#Set:DeInstallationError
[Set:Product]
[Set:Installation]
;-CallHidden cmd.exe /c taskkill /IM Greenshot.exe /F
;AskKillProcesses 60, iexplore
;KillProcess "Greenshot.exe",0
;AddMeter -1
Call "%Src%\Greenshot-INSTALLER-1.2.6.7-RELEASE.exe" /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /SP-
If %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf
WaitUntilProcessExists iexplore.exe,5
KillProcess iexplore.exe
1:greenshot-defaults.ini,%Appdata%\%Productname%\greenshot-defaults.ini,NORMAL CLIENT,12574
[Set:Deinstallation]
-KillProcess Greenshot
;taskkill /IM Greenshot.exe /F
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "C:\Program Files\Greenshot\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /SP-
;-AskKillProcesses 120, Greenshot
;-AddMeter -1
[Reg:OnUninstallProduct]
[Reg:Product]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1","NoModify",0x00010001,"0x00000001"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1","NoRepair",0x00010001,"0x00000001"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1","SystemComponent",0x00010001,"0x00000001"
[Ini:Product]
"%AppData%\Greenshot\Greenshot.ini","Core",,"Destinations=Editor,Clipboard"
"%AppData%\Greenshot\Greenshot.ini","Core",,"IEHotkey=Ctrl + Shift + PrintScreen"
[Security:Product]
[Shell:Product]
[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Greenshot-INSTALLER-1.2.6.7-RELEASE.exe
Abort
[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Install.exe