Last active
August 7, 2022 05:01
-
-
Save davidlares/eed44229859a16ac8a1f07c5a84705bb to your computer and use it in GitHub Desktop.
Node's MSI binary install function for Inno Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Code] | |
procedure RunNodeInstaller; | |
var | |
ErrorCode: Integer; | |
begin | |
if not ShellExec('', 'msiexec.exe', ExpandConstant('/i "{app}\{#NodeInstaller}" /qb'), '', SW_SHOWNORMAL, ewWaitUntilTerminated, ErrorCode) then | |
begin | |
MsgBox(IntToStr(ErrorCode), mbError, MB_OK); | |
end; | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define NodeInstaller "node-v16.13.0-x64.msi" | |
[Run] | |
Filename: "msiexec.exe"; Parameters: "/i ""{tmp}\{#NodeInstaller}"" /qb"; WorkingDir: {tmp}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment