@cirasj
MyTests
Downloaded texstudio-2_12_6-win-portable (the subject of this issue). Expand the zip for portable use (I tested on desktop first to reduce any UAC interference). Launch texstudio.exe (ignore the warning about no LaTeX)
Go to options > configure and check External PDF Viewer is correctly detected as C:\Program Files\SumatraPDF… (the installed copy)
Load a sample TeX file (which has alongside it a previous compiled PDF and a prebuilt .synctex)
Open the pdf double-click in more than one location and confirm it jumps back to different locations in the existing session of TeXstudio (without opening a second session)
Installed set-up is functioning correctly as described
Move the portable copy of TeXstudio to another drive. Open Texstudio.exe which because is now on a different drive and a new launch it again warns there is no LaTeX found. Since it is portable it behaves exactly the same and actually opens the same previous pdf file in the known installed SumatraPDF.
Confirm it jumps back to different locations in the new single session of TeXstudio (without opening a second session) Portable TeXstudio and Installed SumatraPDF set-up is functioning correctly as it should
Re-assign the portable TeXstudio to use a portable copy of the installed SumatraPDF (copied to the portable drive) SumatraPDf defaults to a portable settings file without any knowledge of where TeXstudio is. Change inverse command to point to portable drive copy of TeXstudio (same syntax just different drive and path)
confirm it jumps back to different locations in the new single session of TeXstudio (without opening a second session)
Final test replace installed copy of SumatraPDF moved to portable drive with fully portable ones.
First tested 32bit works, as above, then tested 64bit, no difference works exactly the same.
Conclusion as long as a well formed .synctex file is alongside a .pdf it does not matter where the TeXstudio or SumatraPDF reside the reverse links will not change behaviour. for more on this issue and why the files are expected to be together see https://github.com/sumatrapdfreader/sumatrapdf/issues/25
Requirements the .synctex file must not change / interfere with the calling process
The command structure in each direction must be the same except where drive or path changes
What can make a difference is the way in which the pdfLaTeX engine builds/re-builds the .synctex files,
The design of .synctex used to mandate the .tex .pdf and .synctex files were together, recent engines changed that requirement, which can sometimes lead to issues with relative versus absolute addressing, hence pdfTeX was intentionally not present in my tests
FINAL TESTS to check if a second session can be triggered using the known good pdf
whichever SumatraPDF is use to open the one pdf it will correspondingly call as configured either the desktop TeXstudio or the Portable one (since there are now two)
Calling the same pdf from the other SumatraPDF will NOT open a second session of TeXstudio, it will respect whichever one is currently open, even if its not the one it was configured for.
I thus have to conclude for the present it is an issue within one of the TeX components or the structure of the .synctex they build.