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.
have a known portable version (for sake of this example, it’s in c:\portable-notepad++\
install a permanent version (for sake of this example, it’s in c:\program files\notepad++\ and your config files are in %AppData%\Notepad++)
copy everything in c:\portable-notepad++\backup\ to %AppData%\Notepad++\backup\
copy the session file: c:\portable-notepad++\session.xml to %AppData%\Notepad++\session.xml
when you open your permanent installed version, it should have all the unsaved-but-open files available.
in the portable version, save all those files to a known location with known names
in the portable version, File > Save Session…, and put the session file in a known location
in the installed version, File > Load Session…, and browse to that session file
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”)