我有以下代码与Inno安装程序。如何使用Inno安装程序处理.msi文件?
但我该如何将这个类似的功能应用于.msi文件?
msiexec /I "\package\file.msi" /qb
?怎么样?
procedure AfterMyProgInstall(S: String);
var
ErrorCode: Integer;
begin
{MsgBox('Please wait the libraries are getting installed, ' +
'without the libraries it wont work.', mbInformation, MB_OK);}
ExtractTemporaryFile(S);
{SW_SHOW, SW_SHOWNORMAL, SW_SHOWMAXIMIZED, SW_SHOWMINIMIZED, SW_SHOWMINNOACTIVE, SW_HIDE}
ShellExec('', ExpandConstant('{app}\package\' + S), '', '', SW_SHOWNORMAL,
ewWaitUntilTerminated, ErrorCode);
end;
有什么办法可以自动卸载msi作为innosetup卸载例程的一部分吗? – Nyerguds 2013-03-07 11:40:49