You are here

How to enable multiple users to run the same app simultaneously?

9 posts / 0 new
Last post
jul17pri
Offline
Last seen: 3 years 10 months ago
Joined: 2021-02-02 09:13
How to enable multiple users to run the same app simultaneously?

Several users share a Windows 10 PC.
None of us have the Administrator password.
Each user installs PortableApps, allowing them to install whatever apps they want.
Perfect solution! Except when...
User A runs an app then locks the PC or switches user and walks away.
User B attempts to run the same app
User B gets the error message:
"Another instance of (app) is already running. Please close other instances of (app) before launching (app) Portable."

How do we enable multiple users to run the same app simultaneously?

Does each user have to remember to log out every time they use the PC? Why?

When installing standard (not PortableApps) releases of Firefox and other well written applications, we can cancel the UAC dialog and it installs locally, but most just fail. PortableApps looked like the solution, except there's this error if multiple users to run the same app simultaneously. Is there a workaround?

Thanks!

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 32 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Apps Themselves

Many apps will all write to a shared location within the ProgramData folder or HKLM or default user registry keys. As such, multiple users will step on each other and the launch (FirefoxPortable.exe) wouldn't know how to remove the data correctly when you exit... something all portable apps are required to do. If you don't care about this, you can set some apps like Firefox Portable to allow multiple instances. You do this by copying the FirefoxPortable.ini file from FirefoxPortable\Other\Source to FirefoxPortable and then setting AllowMultipleInstances=true inside it. This will cause it to ignored shared folders and data which will leave things behind but allow multiple users to run it.

If you want, you can also run the apps directly, which will run them in local mode (FirefoxPortable\App\Firefox64\firefox.exe for example) and bypass all portablization. We don't support this, of course, as it bypasses all of our stuff and would just be the app itself running how it wants.

Sometimes, the impossible can become possible, if you're awesome!

schnumbl
Offline
Last seen: 3 months 5 days ago
Joined: 2021-06-29 09:25
AllowMultipleInstances=true

AllowMultipleInstances=true
did not work for me. I tried to
* put an extra ini file next to portable *.exe
* adapt ini file under ./App/AppInfo/Launcher/
I still get the error, that another instance is running. (There is an instance from a different user at a different folder location).

Are there some lock files I could check/delete? How does the app know if another instance is running?

UpdateInformer
Online
Last seen: 28 min 49 sec ago
Joined: 2013-07-15 09:27
reply to #2. does the firefox multiprofile

reply to #2
does the firefox multiprofile system by shortlink with parameters -p "profilexyz" also bypass the portability and let's the app do/work like it wants?

help were i can. maybe you can help me too. threads in account/track.
if you don't want to help don't post crap!

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 32 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
No

You can only use -p on firefox.exe directly. We don't support its use nor do we support multiple users using Firefox Portable at the same time.

Sometimes, the impossible can become possible, if you're awesome!

UpdateInformer
Online
Last seen: 28 min 49 sec ago
Joined: 2013-07-15 09:27
you are right i meant firefox

you are right i meant firefox.exe.
about the other. i need multi profile for one user.
i think it was even the -p by mozilla supported.
a blogger was a while ago providing a portable one with multi profile.
as he stopped i might get on the -p idea.
sorry, will delete the other.

help were i can. maybe you can help me too. threads in account/track.
if you don't want to help don't post crap!

jul17pri
Offline
Last seen: 3 years 10 months ago
Joined: 2021-02-02 09:13
Thanks for those suggestions.

> Many apps will all write to a shared location within the ProgramData folder
Surely if there is no UAC during install then the app can't touch ProgramData, Program Files, or any other system-wide resources unless explicitly shared, which is why it is normally installed under %USERPROFILE%\AppData. So I don't understand how apps installed by different users could step on each other, even if they wanted to.

Configuring FirefoxPortable.ini worked for FirefoxPortable, but not for the other apps I tested such as 7-zip or KeePassPro. In both the later cases, the file was named Other\Source\AppNamePortable.ini. Neither copying it with that name nor renaming it to 7-zipPortable.ini or KeePassProPortable.ini (i.e. same name as the exe) worked. It would be great if there was a installation-wide override.

I've tried running the apps directly, but that causes even more problems, e.g. pinning to taskbar.

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 32 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Not Designed For

Unfortunately, our apps are not designed for your use case. I neither built them for this nor have ever tested for it. You can run the apps directly (7-ZipPortable\App\7-Zip64\7zFM.exe and similar) and pin them directly and they'll run in local mode for each user, which should be about the functionality you're looking for. This won't be supported by us, of course.

Sometimes, the impossible can become possible, if you're awesome!

dwaynek
Offline
Last seen: 1 year 1 month ago
Joined: 2019-05-08 16:41
no longer works

i have multiple folders and this used to work perfectly but has recently stopped working. what changed?

Log in or register to post comments