Last post Mar 27, 2012 06:15 AM by NavinKumar.K.S
Mar 22, 2012 12:18 AM|NavinKumar.K.S|LINK
In my Websetup project i need to remove the website which i have created during uninstall. I am using the following code to remove but the uninstall method is not fired while i am executing uninstall here is the below code which i am using for both install
for Install which working
static void CreateWebSite()
ServerManager iisManager = new ServerManager();
SiteCollection sites = iisManager.Sites;
string webSiteName = string.Empty;
iisManager.Sites.Add("MySite", "http", "*:8080:", "D:\\Mysite");
for uninstall its not getting called while i execute uninstall
public override void Uninstall(System.Collections.IDictionary savedState)
ServerManager manager = new ServerManager();
Site siteToRemove = manager.Sites["MySite"];
should i need to use some other method do to Uninstall
Mar 23, 2012 12:24 PM|RobartGilbert|LINK
It resolved the following:
I suspect this was because of redirects, but I'm not sure. I'm guessing this was a bug in the install process, so I hope this helps others.
See if this helps
Mar 27, 2012 06:15 AM|NavinKumar.K.S|LINK
Finally i with the help of
superguppie found the issue. i missed up some thing in Custom Action. i forgot to add Custom Action for Uninstall. now it works.
Thanks for reply.