Electron downloading file - Windows Defender Popup - electron

I'm trying to make an update app feature for an electron app I'm working on. I am able to download the installer for the update, but when I try to run the installer I get this message:
Is there something that I need to do in order for the installer to not be flagged as unsafe?
Side Note: When I download the installer using chrome, it works just fine. But when I download it using my electron app, it shows that windows defender popup.

Sign your installer package to avoid smartscreen filtering. https://github.com/electron/windows-installer#sign-your-installer-or-else-bad-things-will-happen

Related

[Mac OS]: How to create an Electron application installer for Windows, but using a Mac?

I have successfully built my first app on a Mac using atom and electron, but now I don't know how to get the app to Windows for other people to install.
Basically I don't know how to create an installer for Windows on Mac.
If I understand correctly, you need to know how to create a Windows install package (.exe or .msi) for an Electron app for the situation when you are developing the app on Mac OS.
There are multiple options; identify and choose a packaging solution that meets your needs.
Electron-builder
One of the available packagers for Electron is electron-builder, see documentation here:
https://www.electron.build/multi-platform-build
There are limitations.
From the electron-builder documentation:
On macOS/Linux you can build Electron app for Windows locally, except Appx for Windows Store
Other options
https://github.com/sindresorhus/awesome-electron#tools
Look at the great list of tools here for some additional packaging options.
For other options available to you, and some discussion, take a look at the answers to this related question: How to deploy an Electron app as a executable or installable in Windows?

Electron NSIS silent uninstaller does not delete the app folder if the app is running

We build an electron app which uses electron-builder to make a NSIS installer. Everything works fine except when the uninstaller is run in silent mode and the app is still running. The observed issue is that the app is not terminated (as expected), and the installation is only partially removed.
The electron-builder version is 19.48.3, which has a hardcoded dependency on nsis 3.0.1.13, and nsis-resources 3.3.0.
The documentation says the uninstaller has to be run with an /S option, and any MessageBoxes has to have a /SD option to designate a silent result, which is the case with the app.
Is there anything else I am missing which controls the behavior in this use case?
Thanks!
I had issues with the one click installers. To overcome that I made nsis configurations like this. You can give it a try, and see if that works out for you.

How to convert Objective C project to Windows Mobile

I am working on hybrid app majorly built on HTML5, CSS3, javascript and wrapped over PhoneGap to create apk, ipa and xap/appx file. With the latest Microsoft announcements, its possible to convert your iOS project to Windows project. Can anyone give a small tour of how to convert an existing iOS project to Windows mobile project?
You need to follow the steps given below:
You need to custom install Visual Studio 2015 with UWP (Universal Windows Platform) on Windows 10 system.
If you have Windows 7 or 8 machine and not Windows 10, you will need a Windows 10 mobile device to run the application.
Download the WinObjC SDK from here. You can either directly download the SDK from the link or download the source code and create the SDK by following the steps given on this link.
Now keep your iOS application code (developed using Objective C) ready and follow the steps under "Using vsimporter" heading at the same link.
Before building the application, right-click the solution and set it as a startup project.
Build the application and it will run on your Windows 10 device.
Complementing the answer already provided, to convert a Objective-C project to Windows is required to use the tool vsimporter.
This tool is present in open source bridge Project from Microsoft GitHub (https://github.com/Microsoft/WinObjC).
***Check the Readme file before to start
Using vsimporter
The vsimporter tool enables you to import your Xcode project into a new Visual Studio Universal Windows Platform (UWP) app project with Objective-C support.
To use the tool:
Download the prebuilt SDK from here and extract the files to a directory (for example c:\winobjc)
From a command prompt, navigate to the directory containing your Xcode project, for example c:\winobjc\samples\WOCCatalog
At the command prompt, run vsimporter.exe
c:\winobjc\samples\WOCCatalog> ..\..\bin\vsimporter.exe
A Visual Studio solution file is created in your current directory, double click this file to open your project in Visual Studio
Press Ctrl-F5 to build your app and run it on your PC.
You can also pass the -i option at the command line to run the vsimporter tool in interactive mode. Interactive mode lets you see and select the specific configurations of the Xcode project that you wish to import. By default vsimporter creates a Visual Studio solution that targets Windows 10. If you'd like to target Windows 8.1 (Phone or Store), use the -format option and specify one of winstore8.1, winphone8.1, or winstore10 (winstore10 is the default).
For help running vsimporter, use the -help option at the command line to see the full set of supported options.
To see the complete tutorial, please visit this link

Desktop icon is not being shown properly

I am using Advanced Installer to create the installer of java based desktop application, it is working fine. I added a desktop shortcut icon of the EXE, when i install the application on my system its desktop icon is correct as i defined when created the installer, but when i uninstall the app and then reinstall it 2nd or 3rd time sometimes its desktop icon get changed by itself(replaced with no icon).
can someone tell me what is the issue. Thanks in advance.
Usually this is a sign of corrupted Windows Installer cache on your machine. Have you tried testing the package in a VM? The icons are cached by the OS in a special system folder, nothing special is done by the setup package or Advanced Installer in order for the icons to be set on the shortcuts.

Accessing iOS Safari Web Inspector from Windows Machine

New iOS 6 Safari comes with Web Inspector feature which allows to connect to it from your desktop Safari via USB cable. It then allows you to debug pages opened in iOS Safari from your desktop. But as far as I seen, this feature curently supported only on Mac Safari, not on Windows? Am I right, or Windows Safari also has the possibility? Or it will become available later maybe?
It appears to require Safari 6, which has not been released for Windows. Regarding the unavailability of Safari 6 on Windows, Apple has stated "Safari 6 is available for Mountain Lion and Lion. Safari 5 continues to be available for Windows."
I regularly use weinre. It basically runs a webserver that in turn acts as an inspector-enhanced proxy to browse webpages and websites. The inspector can be started by adding a script to your page or running a bookmarklet.
weinre is a debugger for web pages, like FireBug (for FireFox) and Web Inspector (for WebKit-based browsers), except it's designed to work remotely, and in particular, to allow you debug web pages on a mobile device such as a phone.
To install it, you will need NodeJS and NPM (included with NodeJS). You will also need a WebKit-based browser on the desktop/receiver end (Safari, Google Chrome, or Chromium). It should work on Windows, OSX, and Linux.
Official page: https://people.apache.org/~pmuellr/weinre/
Documentation & Getting Started: https://people.apache.org/~pmuellr/weinre/docs/latest/
NPM Package: https://www.npmjs.com/package/weinre
If you already have NodeJS and NPM installed, you can install and run it with:
npm i -g weinre
weinre
# Go to the URL that it outputs for instructions to use it
UPDATE:
#EvAlex has pointed out another tool very similar to Weinre called Vorlon.js. It is pluggable and supports viewing/switching between the inspector of multiple devices simultaneously.
Setup Vorlon on Windows
npm i -g vorlon
vorlon
Verify Vorlon is Running
Open a web browser and navigate to http://localhost:1337
Setup Ngrok
Download Ngrok: https://ngrok.com/download
Unzip it
Open a command prompt: Start -> Search -> cmd
Navigate to ngrok.exe: cd <ngrok_path_where_ngrok.exe is stored>/
Run it: ngrok.exe http <port> e.g. ngrok.exe http 1337
Ngrok provides a url e.g. https://0ad8c32f.ngrok.io -> localhost:1337
Copy and paste the ngrok url into your webpage.
<script src="https://0ad8c32f.ngrok.io/vorlon.js"></script>
Navigate to the page under test on your device(s):
http://thepageiwanttotest.com/testing123
References
Vorlon Reference: http://vorlonjs.com/#getting-started
Ngrok Reference: https://ngrok.com/download
Stumbled upon this blog which shows how to debug iOS web app on Windows using a stndalone app by Telerik called AppBuilder. You're supposed to create an account on their platform before using it and it has a 30 day trial.
I've used this on windows 7 64 bit for both vanilla web apps and Phonegap apps both on iPad with iOS 7.1, and it works. You get web development tools very similar to those in Chrome.
I have found a great tool called GapDebug
that's was the right solution for me :)
After trying to get Weinre installed on my Windows 10 machine which is running IIS and a localhost client and never being able to get it to work, I looked for an alternate solution.
Turns out Safari for Windows was discontinued by Apple but I was able to fine a copy after discovering the following link. Oh, the Web Inspector in Safari was able to help me find the problem in my application once it was installed.
https://apple.stackexchange.com/questions/68836/where-can-i-download-safari-for-windows
Once Safari was installed, I needed to turn on the developer tools. This required going into Preferences > Advanced > check "Show Develop menu in menu bar" > (click on page icon next to sprocket icon hover over Develop) Start Debugging in JavaScript. From here on it felt very much like Chrome...:-)
Use iOS WebKit debug proxy
It allows you to debug directly in Chrome with live preview.

Resources