Archive: XP user level install?


XP user level install?
Tried installing from a "restricted" user on my XP box here. It appears the .onInit can run because it detects that an old version is installed, but then can't load the uninstaller. I tried uninstalling it from the add/remove software and it said I lacked the permissions to modify the add/remove settings. What happens if you run an installer that doesn't have anything going on in .onInit is it just quits. Same things happens in the installer if it detects an old version and you say not to uninstall.

So I'm wondering if there's a way I can detect if the user has the proper access level to run the installer. At least so I can give an error message that says something. Better than just having the installer quit without giving any indication that it even ran at all.

Any suggestions would be appreciated.
Thanks.


If it a restricted user, then they shouldn't be able to install something. They would have to get permission. That is why there is a restricted user that can not download anything and install it.

-Duane


Yeah
However if they run the installer, nothing happens. It runs, but just quits instantly. Not sure why .onInit will run, perhaps it doesn't detect that the program is running until it hits the ShowWindow, not really sure. I'm just wondering if there's a way to detect that they can't install because they don't have permissions so I can give them a dialog telling them such. Otherwise might end up with e-mails saying the installers just quit when the problem is that they are running as a restricted user and never mentioned that.


Would this work?
In .onInit try to write to the registry, that should fail since the registry should be locked down. Display a message saying that they probably don't have permissions to install the program and prompt them to quit or continue.

Will that work with the desired effect, or am I going to get some false positives in doing so?

Thanks.