|Subject:||How to flag installed EXE as "runas Administrator"|
|Posted by:||Gerry (Ger…@discussions.microsoft.com)|
|Date:||Mon, 26 Feb 2007|
The program I develope uses Application Updater blocks (code sample from
Microsoft) to download newer versions of itself as we make them available
from our website. This is a C# .NET application developed under VS 2005.
To work properly under Vista, the user must turn off UAC or flag the exe as
"runas Administrator", so that it can write to the Program Files tree, to
update itself. How can I mark my EXE as runas Adminstrator in Visual Studio
2005? I have tried creating a manifest, and I have a code signing ID.
BTW, is it good design to make "Program Files" a restricted folder, and yet
allow EXEs to run from any other folder? If I install my application to
"ProgramFiles" with no space, it works properly with no restrictions.
However, it seems to be valuable for all program to be in one common tree, to
keep the hard disk organized. I think MS is dropping the ball here.