安装后输入 IDE 消除视图复选框


安装

完成后,安装程序会为用户提供一个标记为"查看"的复选框选项,该选项为用户提供了在安装完成后打开安装文件夹的选项。如何禁用此功能?

安装完成后,我不希望用户可以选择"查看"任何内容。只需关闭安装程序即可。

更新:这是脚本:

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "My App"
#define MyAppVersion "1.0"
#define MyAppPublisher "Blah, LLC"
#define MyAppURL "http://www.blah.com/"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppID={{f47ac10b-58cc-4372-a567-0e02b2c3d479}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
CreateAppDir=false
LicenseFile=ReleaseEULA.rtf
SetupIconFile=Releasebinlogo.ico
Compression=lzma/Max
SolidCompression=true
AppCopyright=Blah, LLC
AppVerName={#MyAppName}
DisableFinishedPage=yes
VersionInfoVersion=1.0
VersionInfoCompany=Blah, LLC
VersionInfoDescription=My description here.
VersionInfoCopyright=2012
VersionInfoProductName=My App
VersionInfoProductVersion=1.0
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Files]
Source: Releasebinglassfish-3.1.2; DestDir: {sd}MyApp; Flags: ignoreversion recursesubdirs createallsubdirs external; 
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
Source: {src}README.txt; DestDir: {tmp}; Attribs: ReadOnly; Flags: isreadme external dontcopy;
[Types]
Name: full; Description: "Full Installation";
Name: custom; Description: "Custom Installation"; Flags: IsCustom;
[Components]
Name: webserver; Description: "GlassFish 3.1.2 Application Server"; Types: full custom; ExtraDiskSpaceRequired: 100851712; 
Name: sqlserver; Description: "SQL Server Express 2008 R2"; ExtraDiskSpaceRequired: 745537536; Types: full custom;
Name: sqlserversqlserver_x64; Description: "Microsoft SQL Server Express (x64)"; Flags: exclusive; Types: full custom; 
Name: sqlserversqlserver_x86; Description: "Microsoft SQL Server Express (x86)"; Flags: exclusive; Types: full custom;
[Tasks]
Components: webserver; Name: glassfishservice; Description: "Register the web server as a Windows Service."; GroupDescription: "Web Server Options";
[Run]
Tasks: glassfishservice; Components: webserver; Filename: asadmin; Parameters: "create-service MyApp"; WorkingDir: "{sd}MyAppbin"; StatusMsg: "Creating GlassFish service."; 
Tasks: glassfishservice; Components: webserver; Filename: net; Parameters: "start ""MyApp GlassFish Server"""; StatusMsg: "Starting Windows service."; 
; https://blogs.oracle.com/foo/entry/automatic_starting_of_servers_in  AND   https://blogs.oracle.com/foo/entry/how_to_make_v3_platform
Filename: SQLEXPRWT_x86_ENU.exe; WorkingDir: {src}bin; Description: "Installs SQL Server 32-bit edition."; StatusMsg: "Installing SQL Server Express 2008..."; Components: sqlserversqlserver_x86; Flags: HideWizard 32bit; 
Filename: SQLEXPRWT_x64_ENU.exe; WorkingDir: {src}bin; Description: "Installs SQL Server 64-bit edition."; StatusMsg: "Installing SQL Server Express 2008..."; Components: sqlserversqlserver_x64; Flags: HideWizard 64bit; 
Components: "sqlserver sqlserversqlserver_x64 sqlserversqlserver_x86"; Filename: sqlcmd; Parameters: "-S COMPUTERSQLEXPRESS -i {sd}binscript.sql"; Description: "Creating database."; 
[InnoIDE_PostCompile]
Name: "C:Program FilesPowerISOpiso.exe"; Parameters: "create -o """"{#MyAppName} - v{#MyAppVersion}.iso"""" -add Release /"; Flags: CmdPrompt; 
[UninstallRun]
Tasks: glassfishservice; Components: webserver; Filename: net; Parameters: "stop ""MyApp GlassFish Server"""; StatusMsg: "Stopping Windows service."; 
Tasks: glassfishservice; Components: webserver; Filename: asadmin; Parameters: "_delete-service MyApp"; WorkingDir: "{sd}MyAppbin"; StatusMsg: "Destroying GlassFish service.";
[Dirs]

如果这是 InnoSetup 安装,请检查您的[Run]部分是否有postinstall条目并将其删除。postinstall在文档中定义为:

安装后

Valid only in a [Run] section. Instructs Setup to create a checkbox on the Setup Completed wizard page. The user can uncheck or

选中此复选框,从而选择此条目是否应 处理与否。以前,此标志称为显示复选框。

"已完成"页上出现复选框的另一个原因是isreadme标志。 从文档中:

Isreadme

文件

是"自述文件"。安装中只能有一个文件具有 此标志。当文件具有此标志时,用户将询问他/她是否 想在安装后查看自述文件 完成。如果选择"是",安装程序将使用 文件类型的默认程序。因此,自述文件。 应始终以扩展名结尾,如 .txt、.wri 或 .doc。

请注意,如果安装程序必须重新启动用户的计算机(由于 安装带有标志重新启动替换的文件,或者如果始终重新启动 [设置] 节指令为是(,不会给用户一个 查看自述文件的选项

最新更新