Microsoft Internet Explorer and Apple Safari - how to detect if system already had node-webkit installed then open it via browser instead of re-install?

1 view
Skip to first unread message

SProgrammer

unread,
Mar 20, 2014, 6:13:16 AM3/20/14
to node-...@googlegroups.com
Google Hangout works with Microsoft Internet explorer and Safari - for the first time you need to install Google Plugin after that any browser you go it works.

- similar way is there any idea how from Internet Explorer and Safari we can use the node-webkit? if installed then run a url on it if not installed show to install it

Please advise.

Thank you
regards
/Sham

grze...@gmail.com

unread,
Mar 23, 2014, 11:22:53 AM3/23/14
to node-...@googlegroups.com
I'm sorry but i cannot understand what you wanto to archieve...

SProgrammer

unread,
Mar 27, 2014, 6:34:30 AM3/27/14
to node-...@googlegroups.com, grze...@gmail.com
I mean like this following Inno Setup compiler code will do following:

1 - chrome_installer.exe 
     if do not exist - install it and open a predefined URL
     if exist - do not install it but open a predefined URL 

Code.iss:

[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
Filename: "{code:GetChromeFileName}"; Parameters: "www.stackoverflow.com"; Check: 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.



thank you
reg
/sham

grze...@gmail.com

unread,
Mar 27, 2014, 1:49:42 PM3/27/14
to node-...@googlegroups.com, grze...@gmail.com
I'm using InnoSetup aswell, for node-webkit application, and I have no problem with it. Im not using any script logic in setup file, just predefined files and paths as you have in your exampe. Before i compile inno setup file im preparing packing my application into single exe file  + some scripts i want to have outside packed file. Im defining it in inno setup file and prepare install package.

So if you have working example for instalation Google Chrome whats not letting you prepare the same for node-webkit app ?
Reply all
Reply to author
Forward
0 new messages