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.

The format of the URI could not be determined

See original GitHub issue

What version of electron-installer-windows are you using? 0.2.0 What version of node and npm are you using? v6.3.1 and 3.10.3 What operating system are you using? Windows 10 (Latest build) Can you compile the example app successfully? Yes. Although the app doesn’t start for whatever reason What did you do? Please include the configuration you are using for electron-installer-windows. Building the installer with the minimum options passed. Just an src and a dist folder. electron-installer-windows --src ./OLS-Educ2-win32-x64/ --dest dist/installers/ What did you expect to happen? An installer is born What actually happened? A huge error stack which boils down to this: “The format of the URI could not be determined”.

I have seen in older issues that this issue stems from an incorrect icon path, however whether I pass one (http link to whatever icon) or not, the issue remains.

Here is the full text of the error: `C:\Users\Samir\Documents\school5.electrify.dist>electron-installer-windows --src OLS-Educ2-win32-x64/ --dest dist/installers/ (node:1396) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. Creating package (this may take a while) Error: Error creating package: Error executing file (1): C:\Users\Samir\AppData\Roaming\npm\node_modules\electron-installer-windows\vendor\nuget\NuGet.exe pack C:\Users\Samir\AppData\Local\Temp\electron-11676-1396-6ja5k0.9hjn8w7b9\OLS-Educ2_0.1.0\nuget\OLS-Educ2.nuspec -BasePath C:\Users\Samir\AppData\Local\Temp\electron-11676-1396-6ja5k0.9hjn8w7b9\OLS-Educ2_0.1.0\OLS-Educ2 -OutputDirectory C:\Users\Samir\AppData\Local\Temp\electron-11676-1396-6ja5k0.9hjn8w7b9\OLS-Educ2_0.1.0\nuget -NoDefaultExcludes Invalid URI: The format of the URI could not be determined.

at C:\Users\Samir\AppData\Roaming\npm\node_modules\electron-installer-windows\src\installer.js:273:21
at ChildProcess.<anonymous> (C:\Users\Samir\AppData\Roaming\npm\node_modules\electron-installer-windows\src\installer.js:62:5)
at emitTwo (events.js:111:20)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:492:12) 'Error: Error creating package: Error executing file (1): \nC:\\Users\\Samir\\AppData\\Roaming\\npm\\node_modules\\electron-installer-windows\\vendor\\nuget\\NuGet.exe pack C:\\Users\\Samir\\AppData\\Local\\Temp\\electron-11676-1396-6ja5k0.9hjn8w7b9\\OLS-Educ2_0.1.0\\nuget\\OLS-Educ2.nuspec -BasePath C:\\Users\\Samir\\AppData\\Local\\Temp\\electron-11676-1396-6ja5k0.9hjn8w7b9\\OLS-Educ2_0.1.0\\OLS-Educ2 -OutputDirectory C:\\Users\\Samir\\AppData\\Local\\Temp\\electron-11676-1396-6ja5k0.9hjn8w7b9\\OLS-Educ2_0.1.0\\nuget -NoDefaultExcludes\nInvalid URI: The format of the URI could not be determined.\r\n\n    at C:\\Users\\Samir\\AppData\\Roaming\\npm\\node_modules\\electron-installer-windows\\src\\installer.js:273:21\n    at ChildProcess.<anonymous> (C:\\Users\\Samir\\AppData\\Roaming\\npm\\node_modules\\electron-installer-windows\\src\\installer.js:62:5)\n    at emitTwo (events.js:111:20)\n    at ChildProcess.emit (events.js:191:7)\n    at maybeClose (internal/child_process.js:852:16)\n    at Socket.<anonymous> (internal/child_process.js:323:11)\n    at emitOne (events.js:96:13)\n    at Socket.emit (events.js:188:7)\n    at Pipe._handle.close [as _onclose] (net.js:492:12)'`

Thank you for taking the time.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
joshuapintercommented, May 19, 2018

@Wqrld Since your icon is a local file, you should use icon instead:

{
  "dest": "dist/installers/",
  "icon": "C:/Users/werel/Desktop/programmeren/gamehub/gamehub/favicon.ico",
  "tags": [
    "Utility"
  ]
}
2reactions
NikitaGcommented, Aug 20, 2016

I had same issue. I noticed projectUrl in .nuspec file is incorrect. After I added homepage to package.json, this issue disappeared.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid URI: The format of the URI could not be determined
When creating a Uri from these two I get the "format could not be determined" exception unless I use the constructor with the...
Read more >
Invalid URI: The format of the URI could not be ... - port135.com
This issue occurs when the input value is not what the application was expecting. In other words, the application was expecting a valid...
Read more >
Invalid URI: The format of the URI could not be determined
Both the URL and the local file are incomplete. The URL should be something like "htpp://mysite.com//File.doc" and the local file ...
Read more >
Invalid URI: The format of the URI could not be determined.
While seeing the error logs in service center, it says "Invalid URI: The format of the URI could not be determined".
Read more >
The format of the URI could not be determined" Error in C# ...
I am trying to run the below code in my asp.net MVC web-application, to get the URL of first image() in the HTML...
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