Run As
Posted: Tue Dec 07, 2004 1:16 pm
Here's an issue that I've had a problem with, and I wonder whether InstallAware can resolve it, or whether I have to do my workaround.
My app needs at least Power User rights (I note that IW3 only allows an Admin rights check). Of course many people don't have Admin rights, so the Administrator walks up to the machine, uses Run-As to install it, and then walks away. What happens is that my installer has a "Run Now" option at the end (as does IW3), and that gets run. The user creates something in My Documents, and then closes the app. When they run the app later, they find their document disappeared. The reason of course is that the original was in the My Documents for the admin user, and now they are looking in their own real My Documents.
The only way I've been able to solve this is simply to stop the user being able to run the app at the end. This is something I've been annoyed by in installers, but maybe they found this issue too.
Now, I've looked for a Microsoft API to find out if the current app is running using another account, but not found anything I can use and trust. Does the MSI technology overcome this issue? Is there anything in InstallAware that will help? Or is it just a case of a problem that will never be solved?
I'd appreciate any thoughts on this matter.
Matthew
My app needs at least Power User rights (I note that IW3 only allows an Admin rights check). Of course many people don't have Admin rights, so the Administrator walks up to the machine, uses Run-As to install it, and then walks away. What happens is that my installer has a "Run Now" option at the end (as does IW3), and that gets run. The user creates something in My Documents, and then closes the app. When they run the app later, they find their document disappeared. The reason of course is that the original was in the My Documents for the admin user, and now they are looking in their own real My Documents.
The only way I've been able to solve this is simply to stop the user being able to run the app at the end. This is something I've been annoyed by in installers, but maybe they found this issue too.
Now, I've looked for a Microsoft API to find out if the current app is running using another account, but not found anything I can use and trust. Does the MSI technology overcome this issue? Is there anything in InstallAware that will help? Or is it just a case of a problem that will never be solved?
I'd appreciate any thoughts on this matter.
Matthew