Comment gérer le .fichier msi avec Inno Setup?
J'ai ce code suivant avec Inno Setup.
Mais comment puis-je appliquer cette fonction similaire à .fichier msi?
msiexec /I "\package\file.msi" /qb
? Comment?
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;
Vous devez vous connecter pour publier un commentaire.
Essayez ceci:
Ou:
Filename: "{tmp}\file.msi"; Parameters: "/qb"; Flags: shellexec
Bâtiment sur la réponse @kobik a donné. J'ai dû inclure le".exe " dans le nom de fichier.
Comme:
Filename
paramètre. Shell va gérer cela si le programme d'installation de Windows est installé et des packages MSI sont inscrits à exécuter par elle.this way
. Mais je n'ai pas essayé (encore).Note que: j'utilise Inno Setup 5.5.3 sur Windows 7, et que ce code
est pour l'Inno script d'Installation dans la course à la section. Avec ce code, vous pouvez
exécuter
msi
fichiers sans aucun problème. Voici le code: