Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Delphi Uninstall.exes signieren (https://www.delphipraxis.net/217466-uninstall-exes-signieren.html)

DelphiUser123 4. Jul 2025 23:02

Uninstall.exes signieren
 
Hallo liebes Forum.
Ich arbeite mit Inno Setup und möchte für meine Apps jeweils die Uninstall- exe Dateien signieren, nicht nur die Setup Dateien an sich.
Chat GPT hat mir vorgeschlagen, folgenden Code unter [Setup] einzufügen:
UninstallFile=MeinPfad\uninstall.exe. UninstallFile kennt mein Inno Setup jedoch nicht.
Die Signierung muss logischerweise im Vorfeld stattfinden, und kann nicht durch den Endbenutzer nach einer Installation der App erfolgen.
Danke für Antworten.

vnvjan 5. Jul 2025 05:18

AW: Uninstall.exes signieren
 
Frag die KI lieber, wo die "richtigen" Informationen stehen ;)

https://jrsoftware.org/ishelp/index....setup_signtool

Cypheros 5. Jul 2025 07:46

AW: Uninstall.exes signieren
 
Liste der Anhänge anzeigen (Anzahl: 1)
Die richtige Antwort lautet: unins000.exe

Anhang 57665

Kas Ob. 5. Jul 2025 07:51

AW: Uninstall.exes signieren
 
Zitat:

Zitat von DelphiUser123 (Beitrag 1549973)
Hallo liebes Forum.
Ich arbeite mit Inno Setup und möchte für meine Apps jeweils die Uninstall- exe Dateien signieren, nicht nur die Setup Dateien an sich.
Chat GPT hat mir vorgeschlagen, folgenden Code unter [Setup] einzufügen:
UninstallFile=MeinPfad\uninstall.exe. UninstallFile kennt mein Inno Setup jedoch nicht.
Die Signierung muss logischerweise im Vorfeld stattfinden, und kann nicht durch den Endbenutzer nach einer Installation der App erfolgen.
Danke für Antworten.

Signing the binaries is a job for the Inno setup compiler, doing it before hand is wrong and can cause problem, and when i say binaries i mean it is capable to sign the installer after the finishing the build and the uninstaller before the compilation, also it follow the script to sign any binaries you want to sign your main EXE or DLLs ...

To do it right :
1) define the sign tool in the compiler IDE , https://jrsoftware.org/ishelp/index....setup_signtool
Code:
mystandard=signtool.exe sign /a /n $qMy Common Name$q /t http://timestamp.comodoca.com/authenticode /d $qMy Program$q $f
(The above line is in the Inno compiler IDE)
then some examples would be:

[Setup]
SignTool=mystandard
2) The above usage will sign the installer itself automatically and only it.
3) to sign the uninstaller follow the documentation https://jrsoftware.org/ishelp/index....setup_signtool
Just add to the script
Code:
SignedUninstaller=yes
4) if you want your binaries to be signed then add an entry per file in [PreCompile] section to sign,

although i don't this precompile step, i prefer to run separated bat file where my binaries been copied and renamed (with version and date) build and archive after Delphi generate them, then sign them there in the new directory, then copy them again (signed) into specific directory for the Inno setup project, later the result (signed installer/setup) will be copied into the folder where the binaries named and dated.
In other words, i prefer Inno setup projects to be using relative paths to the project so they can portable, grabbing all the needed files from specific directory which has nothing to do with Delphi IDE or the projects, i will bring the needed files then run the Inno compiler on it.


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:31 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz