Software Archive
Read-only legacy content
17061 ディスカッション

Live layout editing - browser not installed

Raiden_D_
ビギナー
1,810件の閲覧回数

Hi,

I enclosed two pictures about my problem. I tried to reinstall my browsers but it didn't solve the problem.  Both of two installed to the right place. What can I do?

Thanks for your help further.

0 件の賞賛
10 返答(返信)
John_H_Intel2
従業員
1,810件の閲覧回数

Live layout makes use of 127.0.0.1, for example, when I press run in chrome, it opens a window with the URL

http://127.0.0.1:65013/www/index.html

Can you copy the contents of your hosts file (google windows hosts file location) to find it.

Raiden_D_
ビギナー
1,810件の閲覧回数

My host file:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#    127.0.0.1       localhost
#    ::1             localhost

But when i press run in chrome, it don't open window, it write: browser not installed.

Luis_H_1
ビギナー
1,810件の閲覧回数

Same problem here, nor Firefox or chrome works.

"Make sure to have Firefox* installed on your system."

"Make sure to have Chrome* installed on your system."

I use brackets and it's working like a charm with chrome.

Luis_H_1
ビギナー
1,810件の閲覧回数
I found the solution, the problem is caused by WinReg library used to read the windows registry it does not return the default value (Default) of the keys, as is said in this issue https://github.com/fresc81/node-winreg/pull/9.

I made some adjustments in the "XDKLauncher.js" file located in "C:\Users\<username>\AppData\Local\Intel\XDK\xdk\brackets\b\LiveDevelopment\MultiBrowserImpl\launchers" and could use Live Layout.
 
File attached.
Ondrej_M_
ビギナー
1,810件の閲覧回数

XDK script "XDKLauncherDomain.js" can't read (Default) value from registry. There is simple fix

  • Open Registry editor (Run > regedit)
  • Go to browser key
      Firefox: "HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FIREFOX.EXE\shell\open\command"
     or
      Chrome:  "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe"
  • Right-click on "(Default)" key value in the right window and select "Modify"
  • Copy (Crl-C) key value (eg. "C:\Program Files\Mozilla Firefox\firefox.exe")
  • In left registry tree window right-click on correct key ("command" for Firefox, "chrome.exe" for Chrome)
  • Select "New"> "String value"
  • Enter the new key value Name as "DEFAULT" (but in the name does not matter, it could be anything)
  • Right-click on new created key value "DEFAULT" in the right window and select "Modify"
  • Paste the browser path to the new created value (Ctrl-V)
  • Close Registry editor
  • Try Live Development > Viewing in Firefox/Chrome

It helped for me and starting the browser works. Look at the attached image ...

 

 

PaulF_IntelCorp
従業員
1,810件の閲覧回数

Thanks for that fix, Ondrj -- I've filed a bug report with engineering.

Harsh_S_
ビギナー
1,810件の閲覧回数

 Problem with live Layout Editing

Host File Content:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#    127.0.0.1       localhost
#    ::1             localhost

Gabor_C_
ビギナー
1,810件の閲覧回数

Ondrej M. wrote:

XDK script "XDKLauncherDomain.js" can't read (Default) value from registry. There is simple fix

  • Open Registry editor (Run > regedit)
  • Go to browser key
      Firefox: "HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FIREFOX.EXE\shell\open\command"
     or
      Chrome:  "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe"
  • Right-click on "(Default)" key value in the right window and select "Modify"
  • Copy (Crl-C) key value (eg. "C:\Program Files\Mozilla Firefox\firefox.exe")
  • In left registry tree window right-click on correct key ("command" for Firefox, "chrome.exe" for Chrome)
  • Select "New"> "String value"
  • Enter the new key value Name as "DEFAULT" (but in the name does not matter, it could be anything)
  • Right-click on new created key value "DEFAULT" in the right window and select "Modify"
  • Paste the browser path to the new created value (Ctrl-V)
  • Close Registry editor
  • Try Live Development > Viewing in Firefox/Chrome

It helped for me and starting the browser works. Look at the attached image ...

 

 

Am I right, that this will only work, if Chrome/Firefox is your default browser? Is there a way to set this without setting Chrome (or Firefox) the default browser?

PaulF_IntelCorp
従業員
1,810件の閲覧回数

It should not require that Chrome or Firefox is your default browser, but if it is not working properly for you, download and install Brackets as a standalone editor and use their Live Layout tool, which is what this feature is based on. I believe it only works with Chrome, but should not require that Chrome is your default browser.

Kevin_G_2
ビギナー
1,810件の閲覧回数

I'm having this problem with Chrome on Windows 10. Firefox works just fine but I can't get Chrome working with Intel XDK. I've reviewed the regedit hack, and my registry has the correct location set to chrome.exe in the default key. 

UPDATE

I discovered I could not un-install Chrome to re-install it. I used Microsoft's install/un-install tool and deleted the chrome registry keys and re-installed it. It now works for me.

The MS Tool is located here:

https://support.microsoft.com/en-ca/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed

返信