How to switch to using a portable version?
Moderators: XnTriq, helmut, xnview
-
- Posts: 25
- Joined: Sat Oct 22, 2022 8:37 pm
Re: How to switch to using a portable version?
I understand your use case and it makes sense but they can't really bill an app as portable if it doesn't meet the industry definition of portable. Perhaps they could include a tool that you could use to take a snapshot of existing file associations, set file associations to xnview, then later restore file associations to the snapshot so that it could leave the OS exactly how it found it.
-
- Posts: 37
- Joined: Tue Feb 16, 2021 8:59 am
Re: How to switch to using a portable version?
I tried usingThe Electro Machine wrote: ↑Mon Apr 24, 2023 12:34 pm [...]
to make this MO really work while also utilizing the 500 file-formats capability of XnView- a big REG file would be needed, which with just two clicks would associate different formats with portable version of XnView
[...]
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\jpeg_auto_file\shell\open\command]
@="\"C:\\My-Portables\\XnViewMP\\xnviewmp.exe\"
Then
I have associated manually [via right click context menu] JPEGs with my portable version and tried finding this association within Registry using Registry itself and few free tools by NirSoft, but failed at this task
Then I tried adding for JPGs [i.e. without E] this hack
Code: Select all
[HKEY_CLASSES_ROOT\.jpg]
@="jpgfile"
"Content Type"="image/jpg"
"PerceivedType"="image"
[HKEY_CLASSES_ROOT\jpgfile\shell\open\command]
@="\"C:\\My-Portables\\XnViewMP\\xnviewmp.exe\" \"%1\""
Then I read this viewtopic.php?p=186546#p186551 and came to the conclusion that apparently writing a proper REG for this automatic association of various formats to portable version is either impossible or too complex