This commit is contained in:
mterwoord_cp 2010-08-13 18:46:07 +00:00
parent 6257ca299a
commit ff29283492

13
Setup2/Events.inc Normal file
View file

@ -0,0 +1,13 @@
[Code]
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
var
xResultCode: Integer;
begin
Exec(ExpandConstant('{code:VSNET2008_PATH|}\devenv.exe'), '/setup', '', SW_HIDE, ewWaitUntilTerminated, xResultCode);
if xResultCode <> 0 then
begin
RaiseException('An error occurred while unregistering with Visual Studio!');
end;
end;