[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program
[Files]
Source: "chrome_installer.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
[Run]
Filename: "{tmp}\chrome_installer.exe"; Check: not IsChromeInstalled
[Code]
const
ChromeAppRegKey = 'Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe';
function IsChromeInstalled: Boolean;
begin
Result := RegKeyExists(HKEY_CURRENT_USER, ChromeAppRegKey) or
RegKeyExists(HKEY_LOCAL_MACHINE, ChromeAppRegKey);
end;
function GetChromeFileName(Value: string): string;
var
S: string;
begin
Result := '';
if RegQueryStringValue(HKEY_CURRENT_USER, ChromeAppRegKey, '', S) or
RegQueryStringValue(HKEY_LOCAL_MACHINE, ChromeAppRegKey, '', S)
then
Result := S;
end;
2 - Now Node-webkit how can we do the same for Windows 32/64-bit and on Mac PC? exactly like i did for Google Chrome.exe with above, i just want to do it with Node-webkit
Can anyone please share it for Windows and Mac version of node-webkit deployer like point 1 example.