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
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.