diff --git a/Setup2/Events.inc b/Setup2/Events.inc new file mode 100644 index 000000000..60a2dac2f --- /dev/null +++ b/Setup2/Events.inc @@ -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; \ No newline at end of file