Skip to content
⌘ NSIS Forum Archive

update mozilla environment

3 posts

Ema#

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😛lugins 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#
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#
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