Hi,
I have installed Notepad++ portable and I want that all .txt files (other related file extension like .py, .css) open themselves with Notepad++ Portable (https://portableapps.com/apps/development/notepadpp_portable) .
What is the best way to do that ? With Notepad++ Windows version this is done automatically.
Regards
You are here
File association for PortableApps Notepad++
July 6, 2022 - 9:28am
#1
File association for PortableApps Notepad++
You may try editing its related settings:
Run Notepad++ as Administrator → Settings → Preferences → File Association
The installable version writes (permanently) to the registry, while the portable one does not!
“My brain is only a receiver, in the Universe there is a core from which we obtain knowledge, strength and inspiration. I have not penetrated into the secrets of this core, but I know that it exists.”
― Nikola Tesla ―
I have not succeed doing in File association inside Notepad++.
Is there a tool to do this for all apps and file extension as Windows is offering but in a portable way?
I don't think that possible.
As already mentioned above, Portable Apps are standalone, they do not (permanently) write to the registry.
Portable Apps are designed to save their own settings, not the ones used by the OS to recognize related file extensions.
“My brain is only a receiver, in the Universe there is a core from which we obtain knowledge, strength and inspiration. I have not penetrated into the secrets of this core, but I know that it exists.”
― Nikola Tesla ―
It looks like there is a way to do this: SiL3NC3 Portable Registrator
https://github.com/SiL3NC3/PortableRegistrator/
What do you think of this? (and opensource !)
Nice. But.. If it works, it will, somehow, break the portability.
PS. Look at its name, Registrator! It says everything!
“My brain is only a receiver, in the Universe there is a core from which we obtain knowledge, strength and inspiration. I have not penetrated into the secrets of this core, but I know that it exists.”
― Nikola Tesla ―
I am not very clear about what is PortableApps goal then, is the goal of PortableApps to be:
a/ a unfriendly tool for someone who what to leave no trace like a spy ?
b/ a convenient tool to quickly transform any Windows PC to its needs and liking while keeping all its configurations at hand.
As far as I understand, Windows does not offer any other ways than the registry to associate a file extension to a program (I am interested to know if there is another way). I also regret this, but there is nothing we can do, as far as I know, so I do not understand "break the portability" ?
Installable Apps write to the registry, Portable Apps do not! If you want to force them to act differently, just use installable ones instead!
“My brain is only a receiver, in the Universe there is a core from which we obtain knowledge, strength and inspiration. I have not penetrated into the secrets of this core, but I know that it exists.”
― Nikola Tesla ―
I know this, but the question here is: you have no choice but to change the registry as MS Windows offers no other possibility, and if you do not do it you will loose a lot of precious time. What do you choose?
https://portableapps.com/comment/250454#comment-250454
“My brain is only a receiver, in the Universe there is a core from which we obtain knowledge, strength and inspiration. I have not penetrated into the secrets of this core, but I know that it exists.”
― Nikola Tesla ―
You seem to completely misunderstand the purpose and commonly accepted definition of 'portable software', i.e. put simply, that application must not leave a user's personal information or application settings/preferences littered about the OS once it is shut down; and absolutely must not "screw up' the OS installation of any PC it is run on by changing the setup of that PC by applying permanent changes that other users may not want. PortableApps that do write settings to the Windows Registry, Users Appdata Folders etc. must revert those revert those changes on closure. The only real exceptions would be system utilities or 'tweakers', which would obviously require the user to have administrative privileges to perform intended 'permanent' system changes that, once implemented, are will no longer dependent on the presence of a portable application.
It is acceptable for a software application/utility to implement temporary file association changes that do not attempt to 'permanently' adjust the current Windows settings, because that is a screw-up as it can corrupt normal Windows 10/11 behaviour. Whether you like it or not is irrelevant unless you can convince Microsoft to change it's approach, which is doubtful because design changes were implemented in the file association system, in part at least, to support security against PUPs (crapware) which often implement unannounced system changes .
There are already legitimate portable options for implementing temporary portable software file associations, i.e. one is to use a File Manager that has it's own built in File Association function, e.g. Q-Dir (see: https://www.softwareok.com/?seite=Freeware/Q-Dir/internal_file_associati...), which is available via the PortableApps 'store', but there are also other options available more widely. The software you found may be portable in terms of its own use, but if the file association changes it implements are not auto-reversed when the software closes it is not safe to use more widely, except on the user's own PC.
Thank for thepoint about Portable application. I fully respect it.
I didn' know file association in registry was for security towards malware.
And I didn't there was file managers that could use its own file association and also be portable. I still a worried using a third party tool to move my files as I am afraid my files get corrupted. I will test though.