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: The URI scheme is not valid.

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? 2 info using npm@3.10.5 3 info using node@v4.4.7 What operating system are you using? Mac OS Version 10.10.5 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. I have a root package.json file with scripts that contains:

"exe64": "electron-packager ./build 'GrooveAnimator' --platform=win32 --arch=x64 --out=dist/ --ignore=\"(dist|node_modules/electron.*)\" --icon=resources/groove-animator-win.png",
"set64": "electron-installer-windows --src dist/GrooveAnimator-win32-x64/ --dest dist/installers/x64/ --config config.json",
"packwin": "npm run exe64 && npm run set64"

Also have a config.json file with the following:

{
  "icon": "http://arcadebuilder.com/images/groove-animator-win.png",
  "iconUrl": "http://arcadebuilder.com/images/groove-animator-win.png",
  "tags": [
    "Utility",
    "SVG Animation"
  ],
  "options": {
    "iconUrl": "http://arcadebuilder.com/images/groove-animator-win.png"
  }
}

The app is set up like this…

app-
  build-
    contents (this is the dev testing environment and what the packaged apps are built from)
    package.json (contains only name, version, description, main, author and dependencies)
  dist- (destination folder for compile app)
  src-
    contents (this is the directory I work in and have listeners set up to copy to the build folder)
  package.json (contains the commands above)
  resource-
    app-icon.png

What did you expect to happen? The application to be packaged

What actually happened? I’ve attached the npm-debug.log file as well as a log file I copied my terminal output to. The error is: Invalid URI: The URI scheme is not valid.

I tried several different ways of including the iconUrl. First, I tried just using the relative path like your example: resources/groove-animator-win.png

I tried just using the relative path for icon: and placed the png on a server accessible from the Internet and using that URL for the iconUrl. I tried leaving out the icon in the exe64 process and tried both the remote icon url as well as the relative path. I continue to get this error no matter what I do. I didn’t want to jump over the using electron-builder if the same issue is going to crop up. Really has me puzzled.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
swampthangcommented, Sep 4, 2016

Thank you so much for hanging in there and finding the issue. I’m now a serious fan of unindented!

0reactions
unindentedcommented, Nov 10, 2016

Compare your application to the example. It looks like your problem is related to your specific setup, not the library itself. I’ll close the issue so that this doesn’t go on forever.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid Uri: The Uri scheme is not valid - Stack Overflow
I am trying to make a connection via HttpWebRequest. I am reading url links from a text file. However, I am getting 'System.UriFormatException' ......
Read more >
AdminApp: "Invalid URI: The URI scheme is not valid" error ...
"Invalid URI: The URI scheme is not valid" error when publishing content items in new interface. Unable to publish content in new interface....
Read more >
Invalid URI: The URI scheme is not valid. - MSDN - Microsoft
It definitely seems the url variable is just wrong. Triple check its content. If this is not something security sensitive I would suggest...
Read more >
Invalid URI: The URI Scheme Is Not Valid
“Invalid URI: The URI scheme is not valid.” Cause 1. Two-step verification is enabled on Google. Resolution. Make sure to bypass ADFS (Active...
Read more >
Invalid URI: The URI scheme is not valid - Help
Hi, im trying to renew my certificate. No problem until today. This is the error I get: 2021-06-02 09:35:24.366 -06:00 [Information] Could ...
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