views:

86

answers:

1

Hi,

I want to stop my installer inbetween programeticaly through my installer class.I want to do this in beforeinstall event handler.However when i call Rollback(),i donot know the IDictionary SavedState to pass as parameter.I am passing it as null due to which the rollback is throwing an exception.Does anyone know how to halt the installer from running programatically?.

Regards, Harsh Suman

+1  A: 

If you are creating a setup project as part of Visual Studio you should be able to add a custom action into various parts of the installer. Within the custom action you can write code to achieve your result. MSDN Link

Kane