Archive: Multiple Users & Registry


Multiple Users & Registry
Hello there,

I'm currently writing an installer for an application which is used by only one user, called "info".

Since I have some tools and batch scripts which are placed in HKLM / ... / Run (Autorun for all users), I have to start the
installer with admin rights with "Run as". The installer detects if the current user ("info" for example, has no admin rights!) has no admin rights and aborts the execution.

Now my problem: I need to add the main application in the user autostart in registry, but just for user "info"!

The "admin" acount only has the HKLM / ... / Run tools & scripts.

The user "info" should have some additional things like start menu entries (main app, uninstall etc.).

How can I achieve to write to different user acounts in registry?
SetShellVarContext won't help me :-(

Any ideas?

Thanks,
Gruntz


This thread seems to have a partial solution to the problem. You can make the registering executable just exit without setting anything if the user is not "info".