Can you copy the file caches from portable to installer

  • I was using the portable version, later I had installed the installer version.

    I have manually copied all the text files which were not saved on the portable.

    Is there anything can be added or exits to read the portable to the installer?

    Thanks in Advance,

  • @Rex-Parthi said:

    Is there anything can be added or exits to read the portable to the installer?

    By this, I assume you want some automated way for the installer to guess in which of the effectively-infinite possibility of path names you had your portable version, and automatically copy those open-but-unsaved files over to the installed instance.

    As you might be able to tell from my phrasing, that’s just not going to happen. It’s something you can do much easier than the installer – since you know where your portable version is; you know whether you’ve got open-but-not-saved files, and you know which are important and which don’t need to be copied.

    1. have a known portable version (for sake of this example, it’s in c:\portable-notepad++\
    2. install a permanent version (for sake of this example, it’s in c:\program files\notepad++\ and your config files are in %AppData%\Notepad++)
    3. copy everything in c:\portable-notepad++\backup\ to %AppData%\Notepad++\backup\
    4. copy the session file: c:\portable-notepad++\session.xml to %AppData%\Notepad++\session.xml
    5. when you open your permanent installed version, it should have all the unsaved-but-open files available.

    Or, better

    1. in the portable version, save all those files to a known location with known names
    2. in the portable version, File > Save Session…, and put the session file in a known location
    3. in the installed version, File > Load Session…, and browse to that session file
    4. Continue good file-saving and file-backup practices, not expecting unsaved files to survive without effort on your part, because you know that the safety of your critical data is up to you. (“Save early, save often”)

    Good luck.

Log in to reply