我想在我的设置中自动安装redist和directx,所以当安装结束安装游戏时,它会自动安装其他重要程序,比如那两个。我正在使用inno。有人知道怎么做?
答案 0 :(得分:0)
[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={{E4F9F679-6E2B-46A2-B7CE-6FEAD68186AA}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
OutputBaseFilename=setup
SetupIconFile=D:\Igrice\Akcija\Outlast Whistleblower\Icon.ico
Compression=lzma
SolidCompression=yes
SourceDir=d:\
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: " {cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "D:\Igrice\Akcija\Outlast Whistleblower\OutlastLauncher.exe"; DestDir: " {app}"; Flags: ignoreversion
Source: "D:\Igrice\Akcija\Outlast Whistleblower\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\DXSETUP.EXE"; Description: "Launch application"; Flags: postinstall nowait skipifsilent unchecked
Filename: "{app}\vcredist_x64.EXE"; Description: "Launch application"; Flags: postinstall nowait skipifsilent unchecked
Filename: "{app}\vcredist_x86.EXE"; Description: "Launch application"; Flags: postinstall nowait skipifsilent unchecked