Summary
This article describes how to configure a program to automatically elevate when it is run.
Synopsis
This article describes how to configure a program to automatically elevate when it is run.
Discussion
The ability to automatically elevate under UAC enabled systems is contingent on presence of a Manifest. A manifest is a small XML file embedded in the XP Theme resource inside the executable file, or sitting side by side with a particular naming convention.
To create a manifest for an application:
- Create the manifest according to Microsoft's documentation. An example manifest that can be customized can be seen here, as taken from an InstallShield-built setup.exe:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="InstallShield.Setup" type="win32" /> <description>InstallShield.Setup</description> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> </requestedPrivileges> </security> </trustInfo> </assembly> - Next, save the XML into an *.xml file.
- Either Stream the XML file into the executable using a resource editor (such as Visual Studio or XN Resource Editor) as the XP Theme resource, or
- Place the XML file in your installation next to the executable matching its filename, but with a *.manifest extension:
myapp.exe myapp.exe.manifest
With the presence of a manifest, elevation will be triggered every time that application is invoked from the Windows Shell (ShellExecute()). It should be noted, however, that if it is invoked via CreateProcess(), as is used in Executable Custom Actions, the elevation will not occur.
Additional Information
Manifests (Windows)
Related Articles
How to elevate LaunchApplication function 7Number of Views Determining If an Application Is Currently Running 5Number of Views Suite/Advanced UI Installer: Is It Possible to Force-Stage Packages if the Cache Path Is Cleared? 26Number of Views Private Application Catalogue on Snow Atlas 51Number of Views Application Does Not Launch After Finish Is Clicked on the Install 9Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago