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.