我试图将不同的软件放在一个单独的伞下,并使用Inno Setup进行一个完整的设置。所包含的软件包括.NET框架、SQL Server2008Windows Express、R2 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发布于 2015-03-05 16:56:07
[Files] section只“安装”这些文件,并不运行它们。
为此,请使用[Run] section。
https://stackoverflow.com/questions/28872828
复制相似问题