Inno Setup不会执行已安装的文件

时间:2015-03-05 08:05:21

标签: installation installer inno-setup executable

我正在尝试将不同的软件放在一个伞下并使用Inno Setup进行整体设置。包括的软件包括.NET框架,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

1 个答案:

答案 0 :(得分:0)

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

使用[Run] section