Unable to Run widget-preview on Windows

  • 1
  • Problem
  • Updated 3 years ago
  • Not a Problem
I am attempting to run "widget-preview" on Windows 8.1 and I'm just seeing the gray "nw.js" screen.  I've downloaded the Windows (tried both 32-bit and 64-bit) executable from the links in the "Download" section of https://github.com/Rise-Vision/widget-preview, unzipped and run the executable "rv-widget-dev-app.exe".  The app window opens up but instead of the expected page it just presents the default "nw:blank" page - screen shots attached.


Here's what the folder looks like after unzipping.


This is the window that opens.



I have tried downloading the widget-preview binary into an Ubuntu VirtualBox and it works as expected in that environment, I just can't get it to work in Windows.  Any suggestions?

Thanks!
Photo of Steve Gregory

Steve Gregory, Champion

  • 1,186 Points 1k badge 2x thumb
  • Determined

Posted 3 years ago

  • 1
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Hi Steve,

Thanks for the additional information. Let me see if our developers have any idea of what is going on.
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Steve,

As per this Community Update, we don't support Windows 8 or 8.1. Are you seeing this same behaviour on Win 7 or 10?
Photo of Steve Gregory

Steve Gregory, Champion

  • 1,186 Points 1k badge 2x thumb
Hi Robb - Yes, my other computer is Windows 7 Professional SP1, and I am seeing the same behavior (gray screen that just says "nw.js", as pictured), in Windows 7.
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Hi Steve,

I've confirmed with our developers that the widget preview app only works in Linux and OS X at this time.
Photo of Steve Gregory

Steve Gregory, Champion

  • 1,186 Points 1k badge 2x thumb
Thanks for confirming that.  You might want to update the "Download" section of the github page at: https://github.com/Rise-Vision/widget-preview so that future travelers are not snagged by the Windows download links.
Photo of Blake Freeman

Blake Freeman, Official Rep

  • 36,116 Points 20k badge 2x thumb
Steve,

I've had our developers clarify, and apparently all you should need to do is run the .exe located in the zip file to run the app. Can you give that a shot?
Photo of Steve Gregory

Steve Gregory, Champion

  • 1,186 Points 1k badge 2x thumb
Yes, that's what I have been doing - I download the zip file from http://s3.amazonaws.com/widget-preview-dl/0.2.0/widget-preview-win32.zip, unzip it, and then run rv-widget-dev-app.exe - and that's when I see the gray "nw.js" screen.  I'm not trying to build widget-preview on Windows, I just want to run the executable.
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Hey Steve,

Have you tried to build the preview app? Is that where you were getting those errors you mentioned in the other thread?
Photo of Steve Gregory

Steve Gregory, Champion

  • 1,186 Points 1k badge 2x thumb
No, I haven't tried building widget-preview for Windows - I understand the build scripts only work for Linux and OSX - so I've just been trying to run the executable from the zip file.
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
I just looked at the repository a little more, and it does say that, doesn't it?

The Ubuntu VirtualBox may be a solution for now, or if you have a Mac somewhere, we use the preview app on OSX all the time. It works great, but I would never recommend getting a Mac because I have been an Apple hater for so long.
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Steve,

Will the Ubuntu VirtualBox option work for you?
Photo of Steve Gregory

Steve Gregory, Champion

  • 1,186 Points 1k badge 2x thumb
Yes, I can run widget-preview in the Ubuntu VirtualBox.  The extra steps involved in running the VirtualBox are overall less hassle than troubleshooting weird Windows issues, so I will use the Ubuntu VirtualBox from now on.
Photo of Steve Gregory

Steve Gregory, Champion

  • 1,186 Points 1k badge 2x thumb
Here is an alternative method for running widget-preview on Windows if the executable version doesn't work.  This solved the problem for me and was suggested by Stephen Garrett in another post.

If the executable version of widget-preview doesn't work (you see a window with a gray background and "NW.JS" in large letters), you can install the "nwjs" program first and then set up the widget-preview app to run through it.

- Get "NW.js" from: http://nwjs.io/downloads/ .  I clicked on the "Previous releases" page and used v0.12.2 because that's the version in the latest widget-preview executable.  I can't vouch for other versions but 0.12.2 worked for me.

- Download the Windows 32-bit or 64-bit version.  Unzip it in a convenient location and update your PATH variable to include the directory.  Find "nw.exe" and make an icon on the desktop for it.

- Now download the widget-preview source files from github:
  git clone https://github.com/Rise-Vision/widget-preview.git

- We need to install packages and libraries with npm and bower:
  cd widget-preview
  npm install
  bower install

- Now you can run widget-preview through the newly installed nw.js:  From the command line:
  cd widget-preview
  nw .
...or update the properties of the desktop icon for nw.exe to include the path to the widget-preview folder in the Target, e.g.:
  Target: "D:\program files\nwjs\nw.exe" "D:\dev\widget-preview"

Now I can just click the icon to run widget-preview!

Thanks Robb, Blake, and Stephen for all your help!
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Nice! You are pretty much a web app building expert now! 
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Fantastic Steve!