Bonjour,
J'ai fais une installation avec l'installeur inno setup et j'ai fais en sorte que lorsque que le framework est installer il lance le message framework installer mais le pb c'est qu'a chaque fois que je clique sur "suivant" ça me relance le message
[Code]
function NextButtonClick(CurPageID: Integer): Boolean;
var
frameworkPath : string;
dotnetRedistPath: string;
ResultCode: Integer;
begin
if RegKeyExists(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\.NETFramework\Policy\v2.0') = true then
begin
if RegQueryStringValue(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\.NETFramework\Policy\v2.0','50727',frameworkPath)=true then
begin
MsgBox('FRAMEWORK installer.', mbInformation, MB_OK);
result:=true;
//if Exec(ExpandConstant('.\dotnetfx.exe'), '', '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
//begin
//handle success if necessary; ResultCode contains the exit code
//MsgBox('FRAMEWORK installer avec succes.', mbInformation, MB_OK);
//end
//else
//begin
//handle failure if necessary; ResultCode contains the error code
//MsgBox('FRAMEWORK installer avec succes.', mbInformation, MB_OK);
//end;
end
else
begin
MsgBox('FRAMEWORK NON installer.', mbInformation, MB_OK);
if Exec(ExpandConstant('.\dotnetfx.exe'), '', '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
begin
// handle success if necessary; ResultCode contains the exit code
MsgBox('FRAMEWORK installer avec succes.', mbInformation, MB_OK);
end
else
begin
// handle failure if necessary; ResultCode contains the error code
MsgBox('Erreur lors de l''installation du FRAMEWORK.', mbInformation, MB_OK);
end;
end
end
end;
merci de vos réponses
Configuration: Windows XP
Internet Explorer 7.0