Inno Setup无法执行已安装的文件

问题描述 投票:0回答:1

我正在尝试将不同的软件归为一类,并使用Inno Setup进行整个设置。包括的软件是.NET Framework,SQL Server 2008 R2 Express,Windows Installer和Crystal Reports。

我面临的问题在[Files]部分中。我已经定义了函数名称,但是执行设置时没有一个函数执行。

[Files] 

Source: "D:\Inno Setup\Prerequisites\WindowsInstaller4_5\WindowsXP-KB942288-v3-x86.exe"; DestDir: "{app}"; DestName:"wi.exe"; Check: checkwixp86; AfterInstall: InstallWindowsInstaller
Source: "D:\Inno Setup\Prerequisites\WindowsInstaller4_5\WindowsXP-KB942288-v3-x86.exe"; DestDir: "{app}"; DestName:"wi.exe"; Check: checkwi86; AfterInstall: InstallWindowsInstaller
Source: "D:\Inno Setup\Prerequisites\WindowsInstaller4_5\WindowsXP-KB942288-v3-x86.exe"; DestDir: "{app}"; DestName:"wi.exe"; Check: checkwi64; AfterInstall: InstallWindowsInstaller

Source: "D:\Inno Setup\Prerequisites\dotnetfx35\NDP451-KB2858728-x86-x64-AllOS-ENU.exe"; DestDir: "{app}"; DestName:"dotnetfx35.exe"; Check: Checkdotnet; AfterInstall: InstallFramework;

Source: "D:\Inno Setup\Prerequisites\CrystalReports105\CRRuntime_32bit_13_0_5.msi"; DestDir: "{app}"; DestName:"cr.exe"; Check: ShouldInstallCR86; AfterInstall: InstallCrystalReports
Source: "D:\Inno Setup\Prerequisites\CrystalReports105\CRRuntime_64bit_13_0_5.msi"; DestDir: "{app}"; DestName:"cr.exe"; Check: ShouldInstallCR64; AfterInstall: InstallCrystalReports

Source: "D:\Inno Setup\Prerequisites\SQLServer2008R2SP2\SQLEXPRWT_x86_ENU.exe"; DestDir: "{app}"; DestName:"sql.exe"; Check: CheckSQLServer86; AfterInstall: InstallSQLServer
Source: "D:\Inno Setup\Prerequisites\SQLServer2008R2SP2\SQLEXPRWT_x64_ENU.exe"; DestDir: "{app}"; DestName:"sql.exe"; Check: CheckSQLServer64; AfterInstall: InstallSQLServer
installation installer inno-setup executable
1个回答
0
投票

[Files] section仅“安装”文件,不会运行它们。

为此使用[Files]

© www.soinside.com 2019 - 2024. All rights reserved.