Coder Social home page Coder Social logo

Comments (4)

tolleif avatar tolleif commented on June 8, 2024

Update: I har installed XMLNotepad with the winget option. I realized I got the same error message when opening XML files from Explorer.
I uninstalled with winget.
I then installed with the standalone installer https://lovettsoftwarestorage.blob.core.windows.net/downloads/XmlNotepad/XmlNotepadSetup.zip

Now both XML and SVG files opens fine in XMLNotepad.

Possibly there is an issue with the winget variant only.

This report is for XMLNotepad v 2.9.0.10
I'm running on Windows 10 22H2

from xmlnotepad.

lovettchris avatar lovettchris commented on June 8, 2024

Thanks for the bug report, I just tried it using 2.9.0.10 and it worked fine for me. Are the .svg files in a protected location by any chance? This is what I tried:

  • mkdir d:\temp
  • pushd temp
  • git clone https://github.com/clovett/dgml.git
  • cd demos\ConditionalStyles
  • launch XML notepad and open a sample from the help menu
  • Copy the path to XmlNotepad.exe which is something like this:
    "C:\Program Files\WindowsApps\43906ChrisLovett.XmlNotepad_2.9.0.10_neutral__hndwmj480pefj\Application"
  • open the demos\ConditionalStyles folder in Explorer
  • right click one of the .svg files and select "open with"
  • past in the above path to xmlnotepad.exe and select xmlnotepad.exe
  • now double click each of the svg's in this windows explorer window work and they open in a new instance of XML notepad no problem.

from xmlnotepad.

tolleif avatar tolleif commented on June 8, 2024

Hi Chris,
I uninstalled XL Notepad (standalone) and reinstalled with winget:
winget install Microsoft.XMLNotepad
Found XML Notepad [Microsoft.XMLNotepad] Version 2.9.0.10
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
██████████████████████████████ 100%
Successfully installed

When I open within XMLNotepad menu "Open"
G:\tmp\XMLNotepad\dgml\demos\ConditionalStyles\set.svg

The file opens fine.
If I right-click on the set.svg file in the explorer window and select Open with -> Microsoft XML Notepad then I get the same messagebox error "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."

I uninstall with winget uninstall Microsoft.XMLNotepad

The reinstall from XmlNotepadSetup.zip (standalone 2.9.0.10)

I go with windows explorer to G:\tmp\XMLNotepad\dgml\demos\ConditionalStyles
If I right-click on the set.svg file in the explorer window and select Open with -> Microsoft XML Notepad
"C:\Program Files (x86)\LovettSoftware\XmlNotepad\XmlNotepad.exe"

The set.svg file opens fine in XML Notepad

I use winget regularly to install and update applications without any problems.

But if this works fine on your machine there must be something wrong in my Windows installation.
I think you can close this issue.
Thank you very much for your efforts.

The XML Notepad is awesome by the way :)

Best regards,
Tolleif

from xmlnotepad.

lovettchris avatar lovettchris commented on June 8, 2024

Thanks for going through all this testing and reporting what you found, it is very useful. But I think you have a misstep on the winget version of XML notepad when you wrote this:

Open with -> Microsoft XML Notepad then I get the same messagebox error "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."

I think it found an old sale entry for "Microsoft XML Notepad" that didn't exist any more. When you use the winget version the Windows Open-With dialog cannot find it which is why I listed the extra steps, let me make it more clear:

  1. launch XML notepad and open a sample from the help menu
  2. Copy the path to XmlNotepad.exe which is something like this: "C:\Program Files\WindowsApps\43906ChrisLovett.XmlNotepad_2.9.0.10_neutral__hndwmj480pefj\Application\XmlNotepad.exe"
  3. open the demos\ConditionalStyles folder in Explorer
  4. right click one of the .svg files and select "open with"
  5. select "choose another app" at the bottom of this menu
  6. scroll to the bottom of the next popup menu and select "choose an app on your PC"
  7. Now paste in the full path to XmlNotepad.exe from step (2)

Now windows knows how to find your winget installed version. Unfortunately notice this windows app path is version specific so you will have to repeat this step each time you update to a new version. I probably should provide an admin tool that does all this for folks...

from xmlnotepad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.