File Path Issue

Post here for help on using FreeCAD's graphical user interface (GUI).
HakanSeven12
Posts: 51
Joined: Wed Feb 06, 2019 10:30 pm

File Path Issue

Postby HakanSeven12 » Wed Apr 17, 2019 5:52 am

When I try to change "Open With" I see this
FC.png
FC.png (298.57 KiB) Viewed 158 times

Code: Select all

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16110 (Git)
Build type: Release
Branch: (HEAD detached at upstream/releases/FreeCAD-0-18)
Hash: f7dccfaa909e5b9da26bf50c4a22ccca9bb10c40
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Turkish/Turkey (tr_TR)
kisolre
Posts: 424
Joined: Wed Nov 21, 2018 1:13 pm

Re: File Path Issue

Postby kisolre » Wed Apr 17, 2019 6:03 am

And the problem is? the 0.17 folder? You probably installed 0.17 and then installed 0.18 on top of that without uninstalling the 0.17 first. So installer found the old installation and installed new version there. What did you expect to happen?
HakanSeven12
Posts: 51
Joined: Wed Feb 06, 2019 10:30 pm

Re: File Path Issue

Postby HakanSeven12 » Wed Apr 17, 2019 6:30 am

kisolre wrote:
Wed Apr 17, 2019 6:03 am
And the problem is? the 0.17 folder? You probably installed 0.17 and then installed 0.18 on top of that without uninstalling the 0.17 first. So installer found the old installation and installed new version there. What did you expect to happen?
I used 0.18 before. I uninstalled it and installed 0.18.1
jmaustpc
Posts: 9087
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: File Path Issue

Postby jmaustpc » Wed Apr 17, 2019 6:38 am

I left a message for devs in the Windows packaging topic to bring their attention to this topic.

https://forum.freecadweb.org/viewtopic. ... 49#p301849
kisolre
Posts: 424
Joined: Wed Nov 21, 2018 1:13 pm

Re: File Path Issue

Postby kisolre » Wed Apr 17, 2019 7:00 am

HakanSeven12 wrote:
Wed Apr 17, 2019 6:30 am
I used 0.18 before. I uninstalled it and installed 0.18.1
Just to clarify - you had never installed 0.17 before so no posible residues from previous 0.17 installation?
HakanSeven12
Posts: 51
Joined: Wed Feb 06, 2019 10:30 pm

Re: File Path Issue

Postby HakanSeven12 » Wed Apr 17, 2019 7:13 am

kisolre wrote:
Wed Apr 17, 2019 7:00 am
Just to clarify - you had never installed 0.17 before so no posible residues from previous 0.17 installation?
2 mounts ago I used 0.17. After that I reset my computer and started to using 0.18. After that I installed 0.18.1 when its installable for windows.
User avatar
HarryGeier
Posts: 1041
Joined: Mon Jul 10, 2017 12:36 pm
Location: Hof Germany

Re: File Path Issue

Postby HarryGeier » Wed Apr 17, 2019 10:31 am

As i mix around much, i get similar issues every now and then.
Windows remembers the path to an installed FreeCAD once.
I think best is to edit the path of the registed application in the registry:
2019-04-17 12_30_23-Microsoft Store.png
2019-04-17 12_30_23-Microsoft Store.png (10.83 KiB) Viewed 107 times
Kaum macht man´s richtig , gehts´s
My Video Tutorials on Youtube: https://www.youtube.com/channel/UCoe3B ... p8Q/videos
My FreeCAD Stuff on Hidrive: https://my.hidrive.com/share/qr3l1yddy6#$/
kisolre
Posts: 424
Joined: Wed Nov 21, 2018 1:13 pm

Re: File Path Issue

Postby kisolre » Wed Apr 17, 2019 2:10 pm

So the problem is not where FreeCAD is installed but where the path to open FCStd points?
User avatar
HarryGeier
Posts: 1041
Joined: Mon Jul 10, 2017 12:36 pm
Location: Hof Germany

Re: File Path Issue

Postby HarryGeier » Wed Apr 17, 2019 7:04 pm

yes, that was trhe case several times here.
Windows keeps the path even sometimes if you tell it ..open with .. pointing to a different program with THE SAME NAME
Kaum macht man´s richtig , gehts´s
My Video Tutorials on Youtube: https://www.youtube.com/channel/UCoe3B ... p8Q/videos
My FreeCAD Stuff on Hidrive: https://my.hidrive.com/share/qr3l1yddy6#$/
User avatar
sgrogan
Posts: 4906
Joined: Wed Oct 22, 2014 5:02 pm

Re: File Path Issue

Postby sgrogan » Wed Apr 17, 2019 8:58 pm

HarryGeier wrote:
Wed Apr 17, 2019 7:04 pm
yes, that was trhe case several times here.
Windows keeps the path even sometimes if you tell it ..open with .. pointing to a different program with THE SAME NAME
Thanks for the info.
I think this is what is happening.
Prior to 0.18.0 the FreeCAD installer only registered the application, for the purpose of enabling uninstall from control panel. The .FCstd file association was not set. The file association is/was set when using Open(and browse) and/or Open with. When uninstalling FreeCAD the registry is not deleted because the FreeCAD installer didn't set it in the first place.

Beginning with 0.18.0 FreeCAD the installer does set the file association, but any previous setting takes precedence. The FreeCAD un-installer will delete the key it set but not prior ones.

I think the correct solution is to delete the registry keys before installing 0.18.x+, and then the FreeCAD installer/un-installer can manage this going forward. I will see if anything can be done with the new installer to handle this., I will need uwestoer's help I'm sure. There will for sure be issues with admin/single user as the new installer allows installation for a single user without admin privileges.