let user move his npp profile (inlcuding plugins, programdata) elsewhere



  • I find all this programdata and users arrangement of plugins and files in npp too complicated and confusing.

    say, phthonscript keeps its script deep in that, say C:\Users\name\AppData\Roaming\Notepad++\plugins\config\PythonScript\scripts\script.py

    it is a headache to reach there to put a new script file or to bring an existing script to edit in npp itself.

    I propose you give an .ini entry in which user can decide the folder where the plugins will be used from, say
    PluginUserPath=e:\MyData\npp\plugins

    also give a ProgramData path for similar use, say
    PluginProgramDataPath=e:\MyData\npp\prgdata

    may be you can give not just User plugins folder, but also entire User folder, say
    UserPath=e:\MyData\npp\user

    you can study firefox and thunderbird, how we can just define the location of our data (profile) and they do everything from our moved profile folder location.

    then we can keep our plugins and relevant files at these locations and it will be easier for us to reach them and to back them up, and also to use the same setting from multiple os (I use same thing in 210 and w8.1)

    Thanks.



  • @V-S-Rawat

    i use the portable version for that reason, maybe it is something you are willing to try.
    if you do so, everything will be eg. within e:\MyData\npp and not divided to 3 places.

    an alternative to the portable version is to install the full notepad++ package to C:\Applications\Notepad++ and select “Do not use %APPDATA%” as installer option.
    (important, it must not be installed inside %PROGRAMFILES% or %PROGRAMFILES(X86)% due to restricted permissions to these folders)

    best thing about both these variants are that, in addidion of making your backups easier, you can copy this notepad++ folder to any other machine with any other windows version and it will run straight away.



  • what happens when I tick “Do not use %APPDATA%” during install?

    I thought it would use programfiles/ programdata folder for putting those user settings in, and it will not be easy to modify those settings often due to UAC restrictions.

    That is why I never ticked “Do not use %APPDATA%” during install.

    on ticking that, If it doesn’t put user settings in programfiles/ programdata folder, where else would it put them?
    and how would npp know during run where to read those user settings from?

    Thanks.



  • I chose “divided to 3 places” just to match with npp’s default arrangement.

    I don’t mind if it is pub in a single folder.



  • @V-S-Rawat

    what happens when I tick “Do not use %APPDATA%” during install?

    it will create an empty file called doLocalConf.xml inside the notepad++ application folder.
    the existence of this file triggers the behaviour, that all additional notepad++ files and configuration will be saved and loaded from within a subfolder of this application folder, instead of separating install folder, program data and user data.
    (note: the portable version also contains a doLocalConf.xml by default to trigger this behaviour)

    the name “Do not use %APPDATA%” is for historic reasons and comes from a time, when all data was only separated between install folder and user data.
    this had to be changed, as adding or modifying files in the install folder, except by use of an installer or uninstaller, does not comply with the allowed, future windows security restrictions. so those parts were moved to %PROGRAMDATA%.

    on ticking that, If it doesn’t put user settings in programfiles/ programdata folder, where else would it put them?
    and how would npp know during run where to read those user settings from?

    with the new 7.6.2 installer you can not select “do not use %appdata%” if you tried to install it in %PROGRAMFILES% or %PROGRAMFILES(x86)%
    this option will be greyed out, as it is in conflict with specific folder permissions of these locations.
    if you have installed it to a “valid” location, all data will be inside the folder you have specified to be your install folder.



  • with the new 7.6.2 installer you can not select “do not use %appdata%” if you tried to install it in %PROGRAMFILES% or %PROGRAMFILES(x86)%
    this option will be greyed out, as it is in conflict with specific folder permissions of these locations.

    so that doesn’t solve my issue.

    You mean I can install entire npp at e:\mydata\npp instead of programfiles, programdata and users combo, then all things will be in e:\mydata\npp

    is my understanding correct?

    I don’t want that. Because by doing so I will have huge exe and other files of npp installation residing in e:\mydata, and those will also need to be backed up, while those are not my data, so no need to put effort for that.

    Thanks.



  • @V-S-Rawat said:

    e:\mydata\npp

    Then how about: e:\mydata_butnotbackedup\npp



  • Then how about: e:\mydata_butnotbackedup\npp

    Alan, then everything will go to the above folder, and mydata part of it would not get backed up. Right?

    I want npp installation to get broken in at least two parts,

    part 1. having all exe, dll, hlp and other xml, ini etc whatever files that I never change.
    I will not need to back them up. npp’s next update/ install can very well overwrite them.

    part 2. having all dll, and other xml, ini etc files that I have changed that have macros, shortcuts, that I change or those plugin files that are specific for my pc so that I can move the entire plugin thing to install folder so that I don’t have to download and install plugins each time.
    I will need to back them up. npp’s next update/ install MUST NOT overwrite them.

    so, I am searching for some method to enable me to do the above.

    Then, I can leave “part 1” files in each windows os’ install folder, and put “part 2” on e: that is accessed by my both windows os.

    hope I have made my problem clear, and I hope many, if not all, users will want a method for this.

    thanks.



  • @V-S-Rawat

    I want npp installation to get broken in at least two parts

    this is not possible in your dual boot configuration, you will have to put the portable notepad++ to e: and live with having this backed up too, if you can’t apply any exclusion method in the way your backup works.

    but the whole portable notepad++ with all exe’s and files is only 26mb in size (plus your plugins)
    and the second advantage is that you have your np++ sessions and backup files also backupped, so that if anything gets destroyed on your system, you can use the portable version from your backup right away and you don’t even lose any unsaved files, as they will be backupped too.



  • I have some 50 different software on my windows, same and on each os.

    so if I go portable for all or most of them, it will inflate 26 MB to 260 MB or 520 MB or more, that is very difficult, in not impossible, to backup.

    I think portable mechanism should provide method to separate unchanged files and user-changed file. till then, npp should provide.



  • @V-S-Rawat

    you only have to put notepad++ portable on e:, not the other programs.
    you only need to put notepad++ on e: because you want notepad++ to behave the same, and remember exactly the same opended files on both os’es.

    leave the rest on the respective c: partitions of windows 8.1 and windows 10
    even if you use other portable software, they can stay at every c: for windows 8.1 and windows 10.


Log in to reply