Installation InnoSetup链接安装程序MSI文件
我用InnoSetup制作了一个安装程序,我需要在正常安装后运行一些msi文件。 我添加了下面几行代码:Installation InnoSetup链接安装程序MSI文件,installation,windows-installer,inno-setup,Installation,Windows Installer,Inno Setup,我用InnoSetup制作了一个安装程序,我需要在正常安装后运行一些msi文件。 我添加了下面几行代码: [Files] Source: "..\..\..\Dependencies\sqlncli2012.msi"; DestDir: "{tmp}" Source: "..\..\..\Dependencies\SQLSysClrTypes.msi"; DestDir: "{tmp}" Source: "..\..\..\Dependencies\SQLServer2012_XMO.msi";
[Files]
Source: "..\..\..\Dependencies\sqlncli2012.msi"; DestDir: "{tmp}"
Source: "..\..\..\Dependencies\SQLSysClrTypes.msi"; DestDir: "{tmp}"
Source: "..\..\..\Dependencies\SQLServer2012_XMO.msi"; DestDir: "{tmp}"
Source: "..\..\..\Dependencies\SqlCmdLnUtils.msi"; DestDir: "{tmp}"
[Run]
Filename: "msiexec.exe"; Parameters: "/i IACCEPTSQLNCLILICENSETERMS=YES""{tmp}\sqlncli2012.msi"" /qb"; StatusMsg: Installing MySQL Server;
Filename: "msiexec.exe"; Parameters: "/i ""{tmp}\SQLSysClrTypes.msi"" /qb"
Filename: "msiexec.exe"; Parameters: "/i ""{tmp}\SQLServer2012_XMO.msi"" /qb"
Filename: "msiexec.exe"; Parameters: "/i ""{tmp}\SqlCmdLnUtils.msi"" /qb"
我看到有一个类似的问题,但我就是不知道我做错了什么。
我在虚拟机中重新安装了windows 7,出现以下错误:
正如您所看到的,我在最后一个msi文件SqlCmdLnUtils中出错,之前的文件甚至都没有启动。(我也在没有“iacceptsqlnclilienceterms=YES”的情况下进行了测试,并得到以下错误“缺少所需的iacceptsqlnclilienceterms=YES命令行参数。通过指定此参数…,因此安装文件不存在的事实将消失。)我通过删除“/qb”来解决此问题“这意味着基本用户界面,因此默认情况下将是完整用户界面,并将文件从{tmp}移动到{app}文件夹,但我认为没有必要这样做
Source: "..\..\..\Dependencies\sqlncli2012.msi"; DestDir: "{app}\Installation Files";
Source: "..\..\..\Dependencies\SQLSysClrTypes.msi"; DestDir: "{app}\Installation Files";
Source: "..\..\..\Dependencies\SQLServer2012_XMO.msi"; DestDir: "{app}\Installation Files"
Source: "..\..\..\Dependencies\SqlCmdLnUtils.msi"; DestDir: "{app}\Installation Files"
[Run]
Filename: "msiexec.exe"; Parameters: "/i ""{app}\Installation Files\sqlncli2012.msi"; StatusMsg: Installing SQL Server Native Client;
Filename: "msiexec.exe"; Parameters: "/i ""{app}\Installation Files\SQLSysClrTypes.msi"; StatusMsg: Installing SQL SysClrTypes;
Filename: "msiexec.exe"; Parameters: "/i ""{app}\Installation Files\SQLServer2012_XMO.msi"; StatusMsg: Installing SQL Server XMO;
Filename: "msiexec.exe"; Parameters: "/i ""{app}\Installation Files\SqlCmdLnUtils.msi"; StatusMsg: Installing SQL CmdLnUtils;
如果从命令提示符运行SQLServer2012_XMO.msi安装命令,是否也会发生同样的情况?第二个错误报告您缺少SQL Server本机客户端,因此我想您还需要将其包括在安装链中。但是最好使用
preparetoall
事件来安装所有这些软件包。如果我从命令提示符运行,效果很好,因此我认为可能需要删除qb(基本UI)。SQLServer本机客户端是第一个,sqlncli。我不知道如何使用PrepareToInstall,所以现在我就这样离开它。谢谢你的回答!