I'm working on the bootstrap application of a new installer for some of our products. So far, I've been relying on two things that I read about somewhere:
Recent testing has found that one or both of these statements is false, because one of the applications that I'm launching is a third party installer that requires elevation, and it's failing because of the elevation requirement.
How do I set my application to require elevation? I know it has something to do with the manifest file. As I'm working in Visual Studio 2008, and the manifest file is generated, I'd like to know what to enter into the project's properties and where to make it require elevation.
"The requested operation requires elevation" means that in order to open the file you'll need the elevated permission of a local administrator to take ownership and gain access.
“The requested operation requires elevation” error message indicates that you can only get access or take possession of the file/folder by getting elevated permission from a local administrator. One fix to the problem is to change the ownership of the drive.
The term “elevation” simply means that you need a “higher” level of access to the system than you currently have. The privileges associated with your current login need to be temporarily raised or “elevated” to a more privileged or powerful level.
When I couldn't find application manifest as a new item that could be added to my project, I went into the online help and found this:
configure the VS2008 in Configuration Properties - Linker - Manifest File - UAC Execution Level (requireAdministrator)
That did the trick.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With