Skip to content

Commit 65a35ab

Browse files
Fixed windows signature issue by passing SignTool using /S arg ISCC.exe instead of specifying the path in installer.iss
1 parent b31c8f7 commit 65a35ab

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ REM Main build sequence Ends
356356
DEL /s "%WD%\pkg\win32\installer.iss.in_stage*" > nul
357357

358358
ECHO Creating windows installer using INNO tool...
359-
CALL "%PGADMIN_INNOTOOL_DIR%\ISCC.exe" "%WD%\pkg\win32\installer.iss" || EXIT /B 1
359+
CALL "%PGADMIN_INNOTOOL_DIR%\ISCC.exe" "%WD%\pkg\win32\installer.iss" "/SpgAdminSigntool=%PGADMIN_SIGNTOOL_DIR%\signtool.exe sign /fd certHash /tr http://timestamp.digicert.com /td SHA256 $f" || EXIT /B 1
360360

361361
ECHO Renaming installer...
362362
MOVE "%WD%\pkg\win32\Output\pgadmin4-setup.exe" "%DISTROOT%\%INSTALLERNAME%" > nul || EXIT /B 1

pkg/win32/installer.iss.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ MinVersion={#MinimumWindowsVer}
3939
SignTool=pgAdminSigntool
4040
SignedUninstaller=yes
4141

42-
[SignTool]
43-
Name: "pgAdminSigntool"; \
44-
Command: "{#GetEnv('PGADMIN_SIGNTOOL_DIR')}\signtool.exe sign /fd certHash /tr http://timestamp.digicert.com /td SHA256 $f"
45-
4642
[Languages]
4743
Name: "english"; MessagesFile: "compiler:Default.isl"
4844

0 commit comments

Comments
 (0)