Share via


Problem in using Microsoft.Deployment.WindowsInstaller

Question

Saturday, May 24, 2014 6:35 PM

Hello Guys,

Am facing an issue with namespace regarding WindowsInstaller
My code is to Read a MSI file and to write, other operations etc.

OS: Windows 7, 64 BIT
VS: VS2013
(I have WiX Toolset v3.8 installed on my machine, which will assist in windows installer funstions)

My Code starts like this:

using System;
using System.Linq;
using WindowsInstaller;
using Microsoft.Deployment.WindowsInstaller;
using Microsoft.Deployment.WindowsInstaller.Linq;

namespace ReadMSI
{

Error: "the type or namespace name 'deployment' does not exist in the namespace 'microsoft'"

I have related .dll installed to the below location.
"C:\Program Files (x86)\WiX Toolset v3.8\bin\Microsoft.Deployment.WindowsInstaller.dll"

Not sure what am missing. 
Is this any issue with installing WiX Toolset v3.8

Please assist.

All replies (1)

Saturday, May 24, 2014 7:56 PM

Did you reference the dll that contain the namespaces? You said the dll is there but you did not mention whether you referenced the dll in your project.

Visual C++ MVP