Uninstaller plugin function not called
Hi,
I am writing an uninstaller. It need to stop a running service before removing. I have written a NSIS plugin for it. I know that there is a SimpleService plugin already. This too does not seen to be working in the uninstaller.
And my plugin is called from uninstaller section like this
Section UninstallI am sure that, I have copied the correct plugin ro the plugin directory of NSIS. Through some file operations i am debugging the code. In the "Installer" the other functionls available in "MyNSISPlugin" got executed and the debug outputs are correct.
MyNSISPlugin:: DeleteService "MyService"
SectionEnd
The uninstaller is only making the problem.
I am calling the uninstaller from Windows->Add/Remove applicaions
What could be the reason?
This is how my plugin prototype look like
extern "C" void __declspec(dllexport) DeleteService(HWND hwndParent, int string_size,char *variables, stack_t **stacktop,extra_parameters *extra)Thanks,
{
//Code is not even reaching here
g_hwndParent=hwndParent;
EXDLL_INIT();
{
char ServiceName[256]="\0";
popstring(ServiceName);
.........
.........
}
Lloyd