Dieses Installshield-Paket treibt mich, blutiger Anfänger, in den Wahnsinn.
Ich habe im Laufe der letzen Stunden/Tage einige Fragen gesammelt ...
Und so kam es dazu:
Es gibt laut Doku ZWEI Methoden für eine Sileninstalltion:
Method 1: Record and use an installer response file
Method 2: Modify setup.ini and create a secondary setupext.ini with setupoptions
Habe mich für Methode 2 entschieden, da "1" IMMER nach "C:PROGRAMME.." installiert ... auf x64 und englischen Systemen nicht wünschenswert.
Also "aufgezeichnet" und die beiden inis mit ins Verzeichnis gepackt.
Testinstall "zu Fuss" klappt wunderbar.
Dann die nächste Stufe: Paket mit Packagewizard /unattended Methode bauen und auf Server kopieren.
Die Installation läuft auf dem Testclient auch sauber durch und lässt sich sogar in der Sprache duch anhängen von /L0009 bzw 7 aussteuern.
Frage 1: an welcher Stelle und in welcher Form übergebe ich die Information, dass es sich um ein dt oder en Windows handelt und so der richtige String an die setup.exe angehängt wird ?
Ein Paket für jede Sprache ginge auch, aber es oll ja Variablen geben.
Nach der Installation werden noch die Configfiles ins Prorammverzeichnis gepackt und dann soll ein Reboot erfolgen.Hierfür habe ich eine Sektion [Set:CopyFiles] eingefügt.
Bisher alles wunderbar.
Aber die Deinstallation klappte nicht mit dem vorgeschlagenen "%SRC%setup.exe /uninst" oder /x.
WAS funktionierte ist ein manueller, lokaler Aufruf von "C:Programme...UNINST.exe -silent.
Richtig gelesen, funktioniertE ...
Nach dem ganzen Rumprobieren habe ich nun das Problem, dass ich das Paket zwar installieren kann, aber es nicht als INSTALLIERT angezeigt wird. Dementsprechend konnte ich nicht checken ob "-Call "C:ProgrammeWatchGuardMobile VPNUNINST.exe" -silent" auch das sauber deinstalliert.
Wer kann mir bitte bei dem flexiblen Erkennen der Sprache,
dem Status "INSTALLIERT" und
dem Deinstallationsaufruf helfen ?
grüße CS
Hier noch die Setup.inf.
Code: Select all
[SetupInfo]
Author =
CreationDate =22.03.2010 12:38:38
InventoryID =
Description =
Method =
Tested on =
Dependencies =
Command line options =/S2
Last Change =
Build =
[VarDefInfo]
; <Variable>, <Type>, <Allow>
[Setup]
Version=10.5
ShowCaption=1
BlockInput=0
Platform=x86
[Requirements]
[Application]
ProductName=Mobile VPN 10.20
DeveloperName=WatchGuard
Version=10.20.034
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%", Arial, 30, , 00FFFF, 4, , LEFT BOLD ITALIC
Text2="%DeveloperName%", Arial, 24, , 00FFFF, 4, , LEFT BOLD ITALIC
Text8="%Company%", Arial, 18, , 00FFFF, 4, 10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial, 16, , 007F00, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=FF0000,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
UserKeyName=_Empirum-Pakete%DeveloperName%%ProductName%
MachineKeyName=_Empirum-Pakete%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=%ProgramFilesDir%%ProductName%
SetupInfDir=Install
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=1
Reboot=1
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=%SoftwareDepotServerName%Values$MachineValues%DomainName%
V_UserValuesPath=%HKLM,"Softwarematrix42Software 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%"
[OptionDependencies]
[OptionGroups]
[Installer]
1:........UserSetup.exe, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:........UserSetupDeu.chm, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:........UserSetupEnu.chm, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:........UserMx42SynSem.dll, %System%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP WINDOWS32, 0
1:........Userx64Mx42SynSem.dll, %System%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP WINDOWS64, 0
1:%SetupInfDir%Setup.inf, , NORMAL, 0
1:%Temp%Setup64.exe, %CommonSetupDir%Setup.exe, OPTIONAL NOSIZEWARNING SETUP ALWAYS WINDOWS64, 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]
;#FileCheckMachine, MACHINE
;#FileCheckClient, CLIENT
;ReplaceEnv <Variable>
#Set:Product
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Set:CopyFiles, DONTDELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product
[Set:Product]
[SET:Installation]
AddMeter 50
Call "%Src%setup.exe" /L0009
If %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf
[Set:CopyFiles]
copy "%SRC%CONFncpphone.cfg" "%ProgramFiles%WatchGuardMobile VPNncpphone.cfg"
copy "%SRC%CONFncpphone.bak" "%ProgramFiles%WatchGuardMobile VPNncpphone.bak"
[SET:Deinstallation]
If "%Src%setup.exe" <> "" Then "SET:Deinstallation2" EndIf
[SET:Deinstallation2]
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
;-Call "C:ProgrammeWatchGuardMobile VPNUNINST.exe" -silent
-Call "%Src%setup.exe" /uninst
-AddMeter 50
[Reg:OnUninstallProduct]
[Reg:Product]
[Ini:Product]
[Security:Product]
[Shell:Product]
[SET:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% setup.exe
Abort
[SET:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% setup.exe