The Inno Setup package is upgraded to administrator privileges.

Source: Internet
Author: User

The Inno Setup package is installed on the win7 64-bit system. If you select the running program in the last step of installation, an error prompt box is displayed.

This is because the Administrator permission is required to run the program in 64-bit Windows 7, and the packaged files attempt to run directly without this permission.

There are many solutions online, but they are not specific. Like http://www.cnblogs.com/walker-lc/articles/3470679.html

  

  

Add administrator permissions

1. In [Setup] Add privilegesrequired = admin to a node

2. Go to the installation directory and find the file setupldr.e32. This is a two-step configuration file, which must be modified using the reshacker.exe tool.

Find <requestedexecutionlevel level = "asinvoker" UIAccess = "false"/> </requestedprivileges>,

Change to <requestedexecutionlevel = "requireadministrator" UIAccess = "false"/> </requestedprivileges>

Delete administrator permissions

1. In [Setup] Add privilegesrequired = none or privilegesrequired = lowest to a node

2. In [Setup] The value of defaultdirname (installation path) on the node. The default value may be defaultdirname = {pf }\{# myappname },

Do not include variable values such as {pf}, {win}, and {sys}. For example, set them to defaultdirname = {localappdata }\{# myappname}

 

Because it is more general, people are still asking the same questions online. Here we will refine the process of adding administrator permissions.

1. Find the installation path of Inno Setup, such as D: \ Program Files \ Inno Setup 5, and find the setupldr. E32 file.

2.download an exescope.exe file and open the setupldr. E32 file,

3. repackage the software. After installation, you can run the software as an administrator. The desktop shortcut effect is as follows:

The image is ugly, but the focus is on the small shield in the black box, indicating that the permission is successfully upgraded.

 

The Inno Setup package is upgraded to administrator privileges.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.