hi
i have installed notepad++ portable on my portable SSD where i maintain my 2nd workspace. however when i run notepad++ portable from my SSD i get error that " Another instance of notepad++ instance is running. Close other instances before running notepad++ portable". ya i have notepad++ running on my laptop which i do not want to close. because i have a lot of work going on in it. while i want to run separate instance of notepad++ from my SSD where i have 2nd workspace and i do different kind of works there. so any idea how to solve this problem. or portable apps devs can you guys please make changes to it and allow two independent instances of notepad++ be running one from my system and one from my portable SSD it same time.
i have report that issue on GitHub but no real help from them : https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11793
thanks
The base Notepad++ writes to the registry even when run in its built in portable mode. So our portable launcher needs to backup and restore that. Two instances are unsupported as a result.
As a workaround, you could open the Notepad++Portable.ini within Notepad++Portable\App\AppInfo\Launcher and rename the 3 notepad++.exe entries in the first section to something else and then rename the appropriate EXEs within Notepad++Portable\App\Notepad++ and Notepad++Portable\App\Notepad++64 to match. Note that this may or may not work, will need to be redone after each upgrade, and is completely unsupported.
Sometimes, the impossible can become possible, if you're awesome!
so how about using different registry location maybe create registry with notepad++portable name ??
That would require changes to Notepad++ itself. We only make the programs portable, we don't change the base apps to make them portable.
If you Open Notepad++ and then drag a tab out of the main window, Notepad++ will create a 2nd instance.
Not tested if it causes issues with leaving registry entries.
It will keep the tabs of the last closed instance.
I solve the 'instance is already running' problem with a batch file I've written and installed as a 'parallel' portable app. This batch file starts the PA version if Npp is not running, otherwise it uses the currently active process. Note: all instances of " MUST be replaced with the regular ASCII double quote character, all instances of ' can be replaced with the regular ASCII single quote character.
A more simple way is just add an entry in the launcher ini.
[Launch]
SingleAppInstance=false
But do not complaint 2 set of data, local and portable, mix up.