【发布时间】:2020-06-02 13:46:52
【问题描述】:
我有一个 Inno Setup 脚本,它只是将文件安装到用户的本地程序文件目录:C:\Users{account}\AppData\Local\Programs\MyAppName。
当我运行安装程序 exe 时它不应该触发提升,但它会触发。
[Setup]
AppName=MyAppManager
AppVerName=MyAppManager
AppCopyright=Copyright (C) 2018 Frank Rizzo
AppPublisher=Frank Rizzo
DefaultDirName={userpf}\MyAppManager
DisableDirPage=yes
DisableProgramGroupPage=yes
DisableReadyPage=yes
;UninstallDisplayIcon={app}\MyAppManager.exe
OutputBaseFilename=MyAppManagerSetup
AppID=MyAppManager.1
VersionInfoVersion=0.4
[Files]
Source: "..\bin\debug\MyAppManager.exe"; DestDir: "{app}"
Source: "CleanFiles\MyAppManager.exe.config"; DestDir: "{app}"
Source: "..\bin\debug\ScintillaNET.dll"; DestDir: "{app}"
Source: "..\bin\debug\Elasticsearch.Net.dll"; DestDir: "{app}"
Source: "..\bin\debug\Nest.dll"; DestDir: "{app}"
我需要做些什么来避免海拔升高?
【问题讨论】:
-
首先从您的安装程序名称中删除 setup 或 install 字样。如果 Windows 认为该程序是安装程序,它会自动强制提升,并专门键入这些名称。从技术上讲,任何安装任何东西的应用程序都应该需要提升,而您试图在没有提升的情况下这样做违反了 Windows 准则。您还会遇到大多数 AV 软件和公司组策略设置的问题。
标签: windows windows-10 inno-setup