Archive: NSIS installer conflicts with .NET 2.0 installer


NSIS installer conflicts with .NET 2.0 installer
We're using an NSIS installer to install the .NET Framework 2.0, among other things. The .NET installer sometimes stops during its installation to complain that the NSIS installer needs to be shut down before it can proceed. We can't seem to intentionally reproduce this, but it's happened often enough to be alarming.

We can tell the .NET installer to "Ignore" the problem, and that seems to satisfy it. But it would be unprofessional to force our users to do that. Any thoughts?


The only idea I have is kichik' .net version check out example using System plug-in, dll to be replaced may stay locked if installer (or OS) not unloaded it yet.


I'm not sure what you mean--could you point me to the example?


If you're using GetDotNETVersion, which uses mscoree.dll to check for .NET, your installer has mscoree.dll loaded while the other installer wants to update it. You can use the 'u' flag to have the System plug-in unload mscoree.dll after it's done with it.

System::Call "mscoree::GetCORVersion(w .r0, i ${NSIS_MAX_STRLEN}, *i) i .r1 ?u"
Please let me know if that helps and update the Wiki page, if it does.