Inno setup 如何在inno安装程序中禁用现有文件夹的消息框

Inno setup 如何在inno安装程序中禁用现有文件夹的消息框,inno-setup,setuptools,Inno Setup,Setuptools,我正在使用inno设置 我尝试了简单的inno脚本代码来安装我的program.exe,但问题是安装程序总是检查{app}(Distination文件夹)的存在,我的目标是隐藏消息框,该消息框显示“文件夹存在,是否仍要安装到该文件夹?” 我的剧本是: [Setup] AppName=My Program AppVersion=1.5 DefaultDirName={pf}\My Program DisableProgramGroupPage=yes UninstallDisplayIcon={

我正在使用inno设置

我尝试了简单的inno脚本代码来安装我的program.exe,但问题是安装程序总是检查{app}(Distination文件夹)的存在,我的目标是隐藏消息框,该消息框显示“文件夹存在,是否仍要安装到该文件夹?”

我的剧本是:

[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program

DisableProgramGroupPage=yes
UninstallDisplayIcon={app}\MyProg.exe
OutputDir=userdocs:Inno Setup Examples Output

[Files]
Source: "MyProg.exe"; DestDir: "{app}"
Source: "MyProg.chm"; DestDir: "{app}"
Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme
请参见下图:

我发现:

DirExistsWarning=no

工作正常,还有其他选择吗?

您想要什么选择?
direxistswaning
不正是您想要的吗?