Archive: remaining temp files ($pluginsdir)


remaining temp files ($pluginsdir)
Hi!

After testing my installers several times I now found many remaining temp files and folders. It seems that the installer does not remove them regardless whether the installer exits via Abort/Quit or "finish". Is this a bug? What am I doing wrong? I even rebooted the machine hoping NSIS would have inserted something into registry to clean temp files at windows startup. It seems NSIS does not remove ANY file (e.g. ioSpecial.ini or modern-wizard.bmp stay there, too).

btw: What is the behaviour I should get - especially if using "Quit" to abort the installer (e.g. within some custom page leave function)?

install.log says:
RMDir: RemoveDirectory("C:\DOKUME~1\stb\LOKALE~1\Temp\nsr5E.tmp")

But the dir persists containing multiple dlls, iospecial.ini and two bitmaps. FYI: I don't add manually files into $pluginsdir (just calling some plugins).

Regards
stb


The most probable reason why the plugin directory is still there is that one of the plugins you are using did not shutdown before you ended the installer.
Make sure you unload all plugins.


Why doesn't NSIS do that automatically before closing the installer?


Unloading a DLL while it might be running code can and probably will result in a crash.


Ok, I removed "SetPluginUnload alwaysoff" from my script and now tmp files go away as expected (regardless of using Abort or Quit).

Thanks for your help :up: :up: :up: