Windows installer does not register .svg file extension

Bug #1654461 reported by uwestoehr
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Low
Unassigned

Bug Description

- assure that you don't have Inkscape installed on your Windows PC (uninstall it if you have it)
- install Inkscape 0.92 on Windows

The installer has the preset to register the .SVG file extension. Keep this setting because this is what we want.

- after the installation open the file explorer and double-click on a SVG file.

Result: Inkscape will not open. The SVG file will be opened with Windows default for SVG files (Which is on Win 7the Internet Explorer). If you look at the Windows registry you ca see that the .svg extension is not set to be opened with Inkscape.

jazzynico (jazzynico)
tags: added: packaging win32 win64
Changed in inkscape:
importance: Undecided → Low
Revision history for this message
Patrick Storz (ede123) wrote :

Could you please specify whether you used the .msi installer or the .exe installer?

Revision history for this message
Patrick Storz (ede123) wrote :

Also OS version is relevant.

Revision history for this message
uwestoehr (uwestoehr) wrote :

> Could you please specify whether you used the .msi installer or the .exe installer?

I used the 64bit .exe installer on Windows 7 64bit.

This bug also occurs with Inkscape 0.91. I tested both Inkscape versions on 3 different Win 7 PCs and the bug is always there.

Since registering the file type is essential for a program, I wonder about the low importance classification of this bug. I mean I install Inkscape but when clicking on a SVG file I get the Internet explorer - a no go in terms of marketing!

Revision history for this message
su_v (suv-lp) wrote :

A recurring issue? Some related earlier reports (there might be others):
Bug #1360906 “Inkscape does not register the *.svg file extension”
Bug #1399720 “91 pre msi breaks Chrome SVG render”
Bug #1417146 “0.91, 64-bit unable to associate SVG with Inkscape in Win7, 64-bit”

Bug #1360906 was filed by the same reporter, and at the time confirmed fixed for Inkscape 0.91 by the reporter.

Similarly for PDF:
Bug #1417055 “Inkscape not set as PDF application in Windows”
Bug #1584261 “Inkscape should register to edit PDFs in Windows Explorer”

Revision history for this message
Patrick Storz (ede123) wrote :

We do not register .pdf so this is "by design".

It would be very helpful to know if this is a duplicate of bug #1417146 or if this is a different issue.

Revision history for this message
Robert Loos (r-loos) wrote :

Same problem here. On some machines I could "open with" and select inkscape as default, on some I can not select inkscape. I can browse to the inkscape program directory and select inkscape.exe but it still opens with IE. I also used 64 bit exe installer.
This is not low priority!

Revision history for this message
Patrick Storz (ede123) wrote :

> This is not low priority!

Well, then maybe help us out and answer the question in comment #5. If developers are not able to reproduce the issue the issue can't be fixed, regardless of priority.

Revision history for this message
uwestoehr (uwestoehr) wrote :

> It would be very helpful to know if this is a duplicate of bug #1417146 or if this is a different issue.

For me #1417146 is different. #1417146 is about that Inkscape does not appear as proposed program to open SVG files.
This bug here is about that the .svg file extension is not registered in the registry to be opened with Inkscape, despite that I chose this in the Inkscape installer.

Both problems could easily be solved with the correct registry settings.

Revision history for this message
Patrick Storz (ede123) wrote :

> Both problems could easily be solved with the correct registry settings.

Great! Please provide a patch if you know the "correct" registry settings. ;-)

Otherwise could you at least export and attach the content of the registry key
"HKEY_CLASSES_ROOT\Applications\inkscape.exe"?

Revision history for this message
Robert Loos (r-loos) wrote :

@Eduard
Yes, the bug in #5 describes exactly what I find. I'm using german Windows 7, 64-Bit. Had no idea that you cannot reproduce it or that it could be language dependent.
Deleting the registry key helped me out. Thank you.

Revision history for this message
LucaDC (lucadc) wrote :

Could calling inkscape64.exe the 64 bit executable help?

Revision history for this message
uwestoehr (uwestoehr) wrote :

> Great! Please provide a patch if you know the "correct" registry settings. ;-)

This is the NSIS code I use for the installer of the program LyX (www.lyx.org) to register the file extension ".lyx":

------------------
  ${if} $CreateFileAssociations == "true"
   WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\App Paths\LyX.exe" "" "$INSTDIR\bin\lyx.exe"
  ${endif}

  # Write information about file type
  #!define REG_FILETYPE 'WriteRegStr SHCTX "Software\Classes\LyX.Document"'

  ${if} $CreateFileAssociations == "true"
   WriteRegStr SHCTX "Software\Classes\LyX.Document" "" "LyX Document"
   WriteRegStr SHCTX "Software\Classes\LyX.Document\DefaultIcon" "" "$INSTDIR\bin\lyx.exe,0"
   WriteRegStr SHCTX "Software\Classes\LyX.Document\Shell\open\command" "" '"$INSTDIR\bin\lyx.exe" "%1"'
--------------------

For Inkscape "$INSTDIR\bin\lyx.exe" is just "$INSTDIR\inkscape.exe".

Revision history for this message
uwestoehr (uwestoehr) wrote :

> could you at least export and attach the content of the registry key "HKEY_CLASSES_ROOT\Applications\inkscape.exe"

Here it is:

[HKEY_CLASSES_ROOT\Applications\inkscape.exe]
[HKEY_CLASSES_ROOT\Applications\inkscape.exe\shell]
[HKEY_CLASSES_ROOT\Applications\inkscape.exe\shell\open]
[HKEY_CLASSES_ROOT\Applications\inkscape.exe\shell\open\command]
@="\"C:\\Program Files\\Inkscape\\inkscape.exe\" \"%1\""

Revision history for this message
Alvin Penner (apenner) wrote :

I have a similar result for a 32 bit install, see below.
however these settings are not sufficient to guarantee that Inkscape will be the default program for svg files. In my case IE11 is the default program for svg files, which is the way I prefer it. But Inkscape will show up when you do a right click and select "Open With..."

................................................

Key Name: HKEY_CLASSES_ROOT\Applications\inkscape.exe
Class Name: <NO CLASS>
Last Write Time: 9/1/2016 - 8:53 AM

Key Name: HKEY_CLASSES_ROOT\Applications\inkscape.exe\shell
Class Name: <NO CLASS>
Last Write Time: 9/1/2016 - 8:53 AM

Key Name: HKEY_CLASSES_ROOT\Applications\inkscape.exe\shell\open
Class Name: <NO CLASS>
Last Write Time: 9/1/2016 - 8:53 AM

Key Name: HKEY_CLASSES_ROOT\Applications\inkscape.exe\shell\open\command
Class Name: <NO CLASS>
Last Write Time: 9/1/2016 - 8:53 AM
Value 0
  Name: <NO NAME>
  Type: REG_SZ
  Data: "C:\Program Files (x86)\Inkscape\inkscape.exe" "%1"

Changed in inkscape:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.