المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : AddInCustomAction not working properly



C# Programming
08-11-2009, 06:31 PM
Hi,

I have write an AddInCustomAction that must be performed before the Installation.
I did something like:


public override void Install(IDictionary stateSaver)
{
///
//here is the code that should run before the installation
// pseudo code:
// if (MyFile.txt exist)
// remove_file();
///

base.Install(stateSaver);
}


This doesn't work properly.
the file MyFile.txt exists (and so should be removed)
but after installation it still exists!!

Any Idea?

Thanks