question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid URI error?

See original GitHub issue

What version of electron-installer-windows are you using? 2.0 What version of node and npm are you using? 4.0.0 3.8.6 What operating system are you using? Win 8.1 Can you compile the example app successfully? yes If not, paste here the output of the following commands:

$ git clone https://github.com/unindented/electron-installer-windows.git
$ cd electron-installer-windows/example
$ DEBUG='electron-installer-windows' npm run build

What did you do? Please include the configuration you are using for electron-installer-windows. Tried to create the installer.
electron-installer-windows --src release/win32-x64/app-win32-x64 --dest dist/installers/ --options.version 0.1

What did you expect to happen? create the installer

What actually happened? Creating package (this may take a while) [Error: Error creating package: Error executing file (1):


electron-installer-windows\vendor\nuget\NuGet.exe pack C:\Users\\AppData\Local\Temp\electron-116418-7308-13rc54g\app_0.1\nuget\xcheque-dev-tools.nuspec -BasePath C:\Users\user\AppData\Local\Temp\electron-116418-7308-13rc54g\app_0.1\app -OutputDirectory C:\Users\scheeren\AppData\Local\Temp\electron-116418-7308-13rc54g\xcheque-dev-tools_0.1\nuget -NoDefaultExcludes
Invalid URI: The format of the URI could not be determined.
] 'Error: Error creating package: Error executing file (1):   \\nuget -NoDefaultExcludes\nInvalid URI: The format of the URI could not be determined.\r\n\n    at D:\\Projects\\app\\node_modules\\electron-installer-windows\\src\\installer.js:273:21\n    at ChildProcess.<anonymous> (D:\\Projects\\app\\node_modules\\electron-installer-windows\\src\\installer.js:62:5)\n    at emitTwo (events.js:92:20)\n    at ChildProcess.emit (events.js:172:7)\n    at maybeClose (internal/child_process.js:817:16)\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)'

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
geek4teckcommented, Jan 31, 2017

I just got this working now. I am pasting my solution here, might help somebody in future…

"clean": "rimraf dist", "build": "electron-packager . --out=dist --asar --overwrite", "setup": "electron-installer-windows --src dist/App-win32-x64/ --dest dist/installers/ --config config.json ", "final": "npm run clean && npm run build && npm run setup"

All i did is npm run final which does cleanup first, then build and then setup.

It worked just perfect, so probably I was missing rimraf dist originally

2reactions
ahallickscommented, Jun 9, 2016

I got this error by accidentally setting:

"icon": "./assets/images/logo.png"

to

"iconUrl": "./assets/images/logo.png"

If you’re using iconUrl at all it needs to be a valid URI otherwise it will fail.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid URI: The hostname could not be parsed - Stack Overflow
I looked into the urls making issue, they had '\' instead of '/' in urls , so in URI parsing it throws error....
Read more >
Receiving error: Invalid URI: The hostname could not be parsed
Receiving error: Invalid URI: The hostname could not be parsed · Go to the Control Panel and open Internet Options · Click on...
Read more >
Error message when you run a managed application that uses ...
This problem occurs because the logic of the .NET Compact Framework URL parser that validates a URL does not recognize the format of...
Read more >
Invalid URI: - Common causes and quick fixes - Opster
A detailed guide on how to resolve errors related to "Invalid URI:"
Read more >
Invalid URI: The hostname could not be parsed.
Invalid URI: The hostname could not be parsed. ... Another suggestion is to try to print the URL to infolog in case the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found