cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
CsharpDev
Level 2

Web service call on uninstallation using installshield 2011

Hi there ,
Currently i m working on C# winform application, for creating package i m using installshield 2011. i wanted to call a web service at the time of uninstallation. how to achieve that can anyone help ?
I wanted to call a web service webmethod at the time of Uninstallation of my application.

thanking you in anticipation
Labels (1)
0 Kudos
(2) Replies
Gonzo72
Level 3

I just did a similar thing myself.

Wrote a custom DLL in C# that accepted the parameters I wanted to pass then setup a custom action (managed code) that called the dll method and passed in the parameters I needed.


Good luck.
0 Kudos
Christopher_Pai
Level 16

I assume that this web service invocation shouldn't block the uninstall, correct? I'd hate to not be able to uninstall software because a remote server wasn't accessible.

The easiest way to do this is probably to write a windowless windows exe ( not console app ) that calls the web service and swallows all errors. A more elegant solution would be a DTF custom action that could log to the installer log.

You should read the following to understand custom action context and scheduling:

http://www.installsite.org/pages/en/isnews/200108/index.htm
0 Kudos