View Full Version : install assembly only if .NET 2.0(or higher) is installed on target machine

02-25-2008, 11:47 AM
Hi all!
I have InstallShield 2008 professional - Base MSI project. I have two assemblies (Microsoft.Office.DocumentFormat.OpenXml.dll and WindowsBase.dll) that I need to install to GAC, but only if on target machine exists .NET Framework version 2.0 or higher. I should not (and I cannot) install these assemblies if target machine has .NET Framework version smaller than 2.0 installed.

If I try to install these dlls on machine that have only .NET 1.0 installed, I'm getting an error:

"Error 1304: error writing to file Microsoft.Office.DocumentFormat.OpenXml.dll. Verify that you have access to that directory."

Does anyone know how can I install these assemblies only on machines wtih .NET 2.0 (or higher)? Please help me... :(