Search code examples
javawindowsnsiscode-signinglaunch4j

Code Signing for my Lauch4J/NSIS Installer on Windows XP?


What is the procedure for signing my code so that when user clicks on the installer it does not prompt unknown vendor.

My Setup is,

Application is java based. I wrap jar with launch4j Installer is based on nsis.

My build platform is xp.

One other thing when installation is finished i get a pop up saying installation was not succesfull from vista not nsis how can i get rid of it?


Solution

  • To get rid of the warning, you need to sign the setup.exe. Get the microsoft signtool.exe and a code signing certificate (make sure it is imported into your PC) then just create a batch file:

    signtool sign /v /s my /n "My Display Company" /d "My Display Application" /du "My Support URL" /t "http://timestamp.verisign.com/scripts/timstamp.dll" path_to_setup.exe

    SignTool.exe is installed by Visual Studio and by the Platform SDKs, just google a bit.