Paketierung XMind DeinstallPrompt

richtborsi
Posts: 25
Joined: 24. May 2017, 14:05
Contact:

Paketierung XMind DeinstallPrompt

Post by richtborsi » 30. Aug 2017, 09:29

Hi liebe Matrix-Gemeinde,

bin gerade dabei eine exe des Programmes XMind zu paketieren und bin auf ein Problem gestoßen.


bei der Deinstallation taucht immer die Box auf, ob man die Installation abbrechen möchte - habe es mit den Flags /SUPRESSMSGBOXES /NOCANCEL etc probiert - es klappt aber nicht :( Wenn ich die Deinstallation im Debugger mit den Flag /S0 /U anstoße deinstalliert es anstandslos.

Über die Management-Console als Paket kommt immer der Prompt.

Ich weiß leider nicht weiter.... wäre super dankbar wenn mir jmd helfen würde :) anbei der Code:

Code: Select all

#Set:Product
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product, DONTDELETE
#Ini:Product
#Security:Product

[Set:Product]
If DoesRegKeyExist ("HKLM,SOFTWARE\Wow6432Node\XMindLtd\XMind")=="0" THEN "SET:Installation" EndIf

[Set:Installation]
AddMeter -1
CallHidden "%Src%\files\xmind-7-update1-windows (1).exe" /VERYSILENT /qn 
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf

[Set:Deinstallation]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf	 
-Call "%ProgramFiles(x86)%\XMind\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL

;/SUPPRESSMSGBOXES /NOCANCEL /NoRestart  /S /quiet (FLAGS NUR ZU TESTZWECKEN --> deshalb auskommentiert)

-DelTree "%UserProfile%\Application Data\XMind"
-AddMeter -1

[Reg:OnUninstallProduct]
del -HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\XMind
[Reg:Product]
-HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\XMind
Da ich Anfänger bin wäre ich auch über ein paar Tipps dankbar wie ich meinen Code besser aufbauen kann:)

--> Wieso ist manchmal ein Bindestrich vor der Funktion "-Call" und manchmal nicht :)?

vielen Dank und viele Grüße!

Tobias.

md17
Posts: 2
Joined: 16. Feb 2017, 11:05
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by md17 » 31. Aug 2017, 13:40

Hallo Tobias,

was passiert wenn du nur den einfachen Schalter /SILENT nimmst?

Ansonsten würde ich Benutzerverzeichnisse oder restliche Dateien der Software erst nach der eigentlichen Deinstallation löschen.
Heißt deine Zeile

Code: Select all

-DelTree "%UserProfile%\Application Data\XMind"
sollte erst nach -Call stehen

Das Minuszeichen vor einem Befehl wie z.B. "-Call" bedeutet, das etwas deinstalliert oder gelöscht wird.
Möchtest du z.B. einen Registry-Key löschen, dann benutzt man z.B. "-HKLM ...". Dann wird der Key nicht gesetzt sondern wie gewünscht gelöscht.

Viele Grüße,
Micha

richtborsi
Posts: 25
Joined: 24. May 2017, 14:05
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by richtborsi » 31. Aug 2017, 14:07

Vielen Dank für deine hilfreiche Antwort - die Messagebox kommt leider immer noch :(

würd mich total freuen wenn mir hier jmd unter die Arme greifen kann :)


viele Grüße,

Tobias.
Attachments
2017-08-31 14_06_30- Remotedesktopverbindung.png
(26 KiB) Downloaded 328 times

richtborsi
Posts: 25
Joined: 24. May 2017, 14:05
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by richtborsi » 04. Sep 2017, 09:08

Guten Morgen,


wenn ich die Unins000.exe in die Kommandozeile ziehe und einen /SILENT -Parameter hinten anstelle geht die Deinstallation ohne Probleme durch.

der Aufruf, der denselben Befehl ergibt (direkt im Packaging Editor)

Code: Select all

-call "%programfiles(x86)%\Xmind\unins000.exe" /SILENT
erzeugt nach wie vor leider den Ja/Nein Prompt, bei dem der User die Installation abbrechen kann...

wäre für Hilfe echt Dankbar =)

viele Grüße

User avatar
r.wiegel
Posts: 903
Joined: 05. Feb 2010, 13:45
Location: Regensburg
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by r.wiegel » 04. Sep 2017, 09:57

Man muss Fenster von Anwendungen und von Paketen unterscheiden. Sie haben das Fenster vom "Installations-Assistent" also vom Paket. Das steuern wir mit Command-Line Optionen (z.B. /S0) und nicht mit Silent-Paramter wie z.B. /Verysilent.

Sie Testen das Paket lokal im Package-Editor. Einfach beim Ausführen den geünschten Kontext auswählen:
Image
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

richtborsi
Posts: 25
Joined: 24. May 2017, 14:05
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by richtborsi » 04. Sep 2017, 10:39

Vielen Dank für die Antwort - den Zusammenhang kannte ich noch nicht :-).

Aber wenn ich das Paket auf meiner Testumgebung über das Clientmanagment deinstalliere kommt das Feld weiterhin - hinter dem Aufruf des Uninstall-Programmes werden die Flags /U /S0 aber nicht akzeptiert :-(

User avatar
r.wiegel
Posts: 903
Joined: 05. Feb 2010, 13:45
Location: Regensburg
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by r.wiegel » 04. Sep 2017, 11:05

Steht in den Paketeigenschaften\Prüfung\Befehl auch /S0 wie in der Setup.inf\Command line options?
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

richtborsi
Posts: 25
Joined: 24. May 2017, 14:05
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by richtborsi » 04. Sep 2017, 11:13

Entschuldigung :-) aber ab dem Punkt Paketeigenschaften\prüfung\befehl hören meine Kenntnisse leider auf :)

Ist das eine extra Paketvorlage unter Configurator$ oder ein Teil der Setup.inf

Vielen Dank für Ihre Hilfe! Wäre Ihnen sehr dankbar, wenn Sie mir an diesem Punkt noch helfen könnten, damit ich mir diesen Fragestellungen in Zukunft selber helfen kann!

Habe hier nochmal die komplette Setup.inf

Code: Select all

[SetupInfo]
Author                  =Administrator
CreationDate            =04.09.2017 09:22:02
InventoryID             =
Description             =
Method                  =
Tested on               =
Dependencies            =
Command line options    =/S2
Last Change             =
Build                   =

[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=XMind
DeveloperName=XMind
Version=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=$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:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:..\..\..\..\User\Setup64.exe,        %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             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:Product]
If DoesRegKeyExist("HKLM,SOFTWARE\Microsoft\Windows\Current Version\Uninstall\Matrix42 - Xmind Xmind7,UnInstallString")=="1" then [Set:Deinstallation] 
	Else DoesRegKeyExist DoesRegKeyExist("HKLM,SOFTWARE\Microsoft\Windows\Current Version\Uninstall\Matrix42 - Xmind Xmind7,UnInstallString")=="0" [Set:Installation]
Endif
[Set:Installation]
AddMeter -1
Call "%Src%\files\xmind-7-update1-windows (1).exe" /VERYSILENT
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf

[Set:Deinstallation]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf
-Call "%programfiles(86)%\xmind\unins000.exe" /SILENT
-AddMeter -1

[Reg:OnUninstallProduct]

[Reg:Product]

[Ini:Product]

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% files\xmind-7-update1-windows (1).exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% %programfiles(86)%\xmind\unins000.exe

richtborsi
Posts: 25
Joined: 24. May 2017, 14:05
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by richtborsi » 04. Sep 2017, 11:16

Meinen Sie in der Console dieses Feld? --> Screenshot
Attachments
Paket_screenshot.png
(36.56 KiB) Downloaded 315 times

User avatar
r.wiegel
Posts: 903
Joined: 05. Feb 2010, 13:45
Location: Regensburg
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by r.wiegel » 04. Sep 2017, 11:25

genau, aber in der Setup.inf ist der Wert immer noch /S2:
Command line options =/S2

setzen Sie bitte auf /S0
Command line options =/S0

Die beiden Werte (in den Paketeigenschaften, also in der DB und in der Setup.inf) sollen übereinstimmen.
Beim Einbinden eines Paketes wird auch der Wert aus der Setup.inf in die DB eingelesen und als Paketeigenschaften gespeichert.
Spätere Änderungen in der Setup.inf müssen durch die Funktion "Versionen abgleichen" unter Extras oder manuell in Paketeigenschaften auf einen gleichen Stand gebracht werden.
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

richtborsi
Posts: 25
Joined: 24. May 2017, 14:05
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by richtborsi » 04. Sep 2017, 11:33

Vielen Dank! Probiere ich gleich aus...

richtborsi
Posts: 25
Joined: 24. May 2017, 14:05
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by richtborsi » 04. Sep 2017, 11:37

Habe die Einstellungen in der Console (Screenshot) als auch in den Command Line Options geändert - das Fenster erscheint leider immer noch :( Habe folgende Flags durchprobiert: /S0, /SILENT, /U/S0, /U/SILENT

Vielen Dank nochmals!

Code: Select all

[SetupInfo]
Author                  =Administrator
CreationDate            =04.09.2017 09:22:02
InventoryID             =
Description             =
Method                  =
Tested on               =
Dependencies            =
Command line options    =/S0
Last Change             =
Build                   =

[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=XMind
DeveloperName=XMind
Version=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=$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:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:..\..\..\..\User\Setup64.exe,        %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             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:Product]
[Set:Installation]
AddMeter -1
Call "%Src%\files\xmind-7-update1-windows (1).exe" /VERYSILENT
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf

[Set:Deinstallation]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf
-Call "%programfiles(86)%\xmind\unins000.exe" /SILENT
-CallHidden cmd /Silent
-AddMeter -1

[Reg:OnUninstallProduct]

[Reg:Product]

[Ini:Product]

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% files\xmind-7-update1-windows (1).exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% %programfiles(86)%\xmind\unins000.exe
Attachments
2017-09-04 11_36_23-Matrix42 Management Console.png
(32.49 KiB) Downloaded 312 times

User avatar
r.wiegel
Posts: 903
Joined: 05. Feb 2010, 13:45
Location: Regensburg
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by r.wiegel » 04. Sep 2017, 11:44

in der Setup.inf ist die Version "7". Im Installations-Assistent ist wohl "7.5".
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

richtborsi
Posts: 25
Joined: 24. May 2017, 14:05
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by richtborsi » 04. Sep 2017, 11:57

Super! Vielen Dank für Ihre Hilfe!

Jetzt ist das Fenster weg - die Deinstallation wird aber noch nicht angestoßen... denke jetzt kann ich mich fürs erste selbst auf die Suche machen!


Beste Grüße...

richtborsi
Posts: 25
Joined: 24. May 2017, 14:05
Contact:

Re: Paketierung XMind DeinstallPrompt

Post by richtborsi » 04. Sep 2017, 13:29

Ich bins nochmal - : ) mich hat der Frust gepackt-

habe das ganze mit FreeMind ausprobiert - meiner Meinung erscheint der Installationsassistent aufgrund irgend einer Einstellung die VOR den Routinen [Set:Product] etc... abgearbeitet wird (Habe Haltepunkte mit dem debugger gesetzt). Weshalb entzieht sich aber meiner Kenntnis. Ich habe im Wizard extra drauf geachtet dass ich Versionsnummer etc genau eingebe und sich Command Line Options nicht von den Flags des Deinstall-Aufrufes unterscheiden - selbes Problem wieder wie bei der XMind installation...

Ich habe das Paket auch noch nicht auf den Empirum-Server kopiert - es liegt immer noch in der Testumgebung.

Verzweifle langsam... bin dankbar über jeden Tipp, der mich auf die "Bahn" bekommt :(...

Vielen Dank fürs lesen, Geduld und Helfen =)

Grüße,

Tobias

Code: Select all

[SetupInfo]
Author                  =Administrator
CreationDate            =04.09.2017 13:01:50
InventoryID             =
Description             =
Method                  =
Tested on               =
Dependencies            =
Command line options    =/SILENT
Last Change             =
Build                   =

[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=FreeMind
DeveloperName=OpenSource
Version=14.2
Revision=1
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:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:..\..\..\..\User\Setup64.exe,        %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             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:Product]

[Set:Installation]
AddMeter -1
Call "%Src%\files\freemind-windows-installer-1.0.1-max.exe" /SILENT /qn
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf

[Set:Deinstallation]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf
-Call "%programfiles(x86)%\freemind\unins000.exe" /SILENT /qn
-AddMeter -1

[Reg:OnUninstallProduct]

[Reg:Product]

[Ini:Product]

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% files\freemind-windows-installer-1.0.1-max.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% files\freemind-windows-installer-1.0.1-max.exe
Attachments
2017-08-31 14_06_30- Remotedesktopverbindung.png
(44.02 KiB) Downloaded 260 times

Post Reply

Return to “Paketierung”

Who is online

Users browsing this forum: No registered users and 4 guests