I have a program that I am writing for our customers. One scenario for some of our customers is they will be trying to run the program on a windows xp machine using a standard user account. The program installs some data files to the user's local settings folder. And then the program and executables typically go to C:\program files\<program name>\
So, what's happening is we want to install it as the standard user. That way when they try to run the program from their profile their local data files are present and everything. But when we do the run as and select an administrator account it installs everything to the administrator's profile, not the standard user's. So the program breaks.
When I do this on my windows 7 machine I can put it on any profile I want it's just it comes up with a prompt asking for an adminstrator name and password. Once given, it continues the install on the standard user's account.
This is not the case in windows xp. For whatever reason it installs to the administrator's account.
One kinda workaround I have devised is to simply install it as the standard user to the c drive instead of the program files folder. This does work without giving any sort of access errors. Basically, if you try to install to the program files as the standard user it will throw an access denied error because they are not an administrator. I would like, however, if possible to install the executable to program files and the data files to the user's local settings folder.
Does anyone know how to install a program to the user account with perhaps temporarily elevated adminstrator rights, so that program goes to the program file's folder and the other files go to the user's local app data folder?