Menu

#1241 simplify signing uninstaller

3.0 Series
closed-fixed
nobody
None
5
2021-08-18
2020-02-28
Gene Thomas
No

Signing the uninstaller is a task any developer of credible software needs to do. The current solution https://nsis.sourceforge.io/Signing_an_Uninstaller uses 30 lines of code with if/elses that then over complicates the rest of the installer development. This really lets you down.

Could we have a command, say, !system-uninstaller, that is run with $UNINSTALLER set to the path of the uninstaller executable while building the installer. e.g:

!system-uninstaller 'signtool sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /f "my-certificte.p12" /p "my-password" "$UNINSTALLER"' = 0

Rather than the 30 lines of nsis script code in https://nsis.sourceforge.io/Signing_an_Uninstaller

Related

Bugs: #1241

Discussion

  • Jason

    Jason - 2020-02-28

    I made a patch a while ago for nsis 3.03 for this very purpose, which I plan to update soon for 3.05 and probably change the name to !uninstfinalize.

    https://sourceforge.net/p/nsis/patches/280/

     
  • Roberto Bagnara

    Roberto Bagnara - 2020-03-01

    Jason, an update of your patch would be very helpful, and I hope it will be merged into the source tree. I minimally adapted the patch so as to apply it to 3.05 and it works great. I attach it in case it may be of any use.

     
  • Gene Thomas

    Gene Thomas - 2020-03-04

    Jason,
    Could you plese build a NSIS installer for Windows that I can use that includes the patch for !uninstfinalize and email it to me gene@genethomas.com , I would like do a release of my product this week.
    Thanks in advance,
    Gene Thomas.

     
  • Matthew MacKenzie

    Hello--I would also love to be able to use this addition. I don't see it mentioned in any release notes. Will it be available soon? Thank you.

     
  • Phillip Seaver

    Phillip Seaver - 2021-05-06

    I just found this, and this would make my script so much cleaner. Any chance of it making it into a release soon?

    Thanks!

     
  • Gene Thomas

    Gene Thomas - 2021-07-09

    Can I second that, I'm doing the installer for another product and would love to make my uninstallation look professional without jumping through the hoops of the work-around https://nsis.sourceforge.io/Signing_an_Uninstaller . Surely any serious Nꜱɪꜱ user needs to sign their uninstaller.

     
  • mailnew4ster

    mailnew4ster - 2021-08-07

    I just had to do that, and it wasn't pleasant. I join the request.

     
  • Anders

    Anders - 2021-08-18
    • status: open --> closed-fixed
     

Log in to post a comment.