I can't seem to get !uninstfinalize to work properly (using NSIS v3.11). It runs my signing script with C:\Users\user\AppData\Local\Temp\nst5DE9.tmp" but I was expecting it to be run with an .exe.
finalize 'sign_exe.bat "%1"' works fine.
Summarised example that gives my basic flow:
Log:
Section "-MainSection" SEC06
SetOutPath "$INSTDIR"
File "App.exe"
WriteRegStr HKLM "Software\MyApp" "Installed" "1"
WriteUninstaller "$INSTDIR\uninst.exe"
SectionEnd
Section Uninstall
Delete /REBOOTOK "$INSTDIR\uninst.exe"
Delete /REBOOTOK "$INSTDIR\${EXE_FILENAME}"
Delete /REBOOTOK "$INSTDIR\*.dll"
!finalize 'sign_exe.bat "%1"'
!uninstfinalize 'sign_exe.bat "%1"'
Generating uninstaller...Any help would be appreciated!
UninstFinalize command: sign_exe.bat "C:\Users\user\AppData\Local\Temp\nst5DE9.tmp"
Finalize command: sign_exe.bat "setup_executables\setup.exe"