Ema
22nd July 2008 10:58 UTC
update mozilla environment
Hi all,
maybe this is more a mozilla question...
Anyway, I'm using NSIS for an installer that besides other things install a mozilla plugin copying it in Mozilla/Plugin folder.
What I noticed is that the plugin is not recognized if the browser was open. If I close it or I go to about:plugins page then it's ok.
Is there a way from NSIS script to "update" Mozilla environmant after installing a plugin?
Thanks a lot for any tips on that.
Bye
KrisAster
22nd July 2008 16:07 UTC
I don't know much about mozilla and how it is coded, but if I were you, I'd look in their code to see if there is some Windows message that they handle that refreshes their plug-ins. If there is, then you could just send/post that message after you finish installing. There are plenty of examples to show you how to do something like that. Look at the documentation for SendMessage.
Downward FG
22nd July 2008 16:20 UTC
Alternatively
Processes
::FindProcess "firefox.exe"
Pop $R0
StrCmp $R0"0" skip1
Processes::KillProcess "firefox.exe"
>Skip1:
Kills firefox. Could be a bit annoying, but it is acceptable practice to punish users who don't shut down applications before they install a plug-in