Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create setup using Visual Studio.NET

Hello,

I've attached a simple C# project that I wanted to create an installation for. The C# application is just a waveform graph on a form. I just wanted to get the NI references added. The setup project was created by adding a new project of type Setup Wizard. I let VS.NET find the references and create the installation. When I build it, I get errors trying to include the NI merge modules:

------ Build started: Project: MeasurementStudioInstallTest, Configuration: Release .NET ------

Preparing resources...
Updating references...
Performing main compilation...

Build complete -- 0 errors, 0 warnings
Building satellite assemblies...



------ Starting pre-build validation for project 'Setup1' ---
---
------ Pre-build validation for project 'Setup1' completed ------
------ Build started: Project: Setup1, Configuration: Release ------

Building file 'C:\csharp\wlt\Setup1\Release\Setup1.msi'...
ERROR: Unable to import merge module 'mstudiouiwinforms'
ERROR: Unable to import merge module 'mstudiocommon'
ERROR: Unable to import merge module 'mstudioui'
Packaging file 'MeasurementStudioInstallTest.exe'...
Packaging file 'Setup.Exe'...



---------------------- Done ----------------------

Build: 1 succeeded, 1 failed, 0 skipped


All of the files are at the location specified in the project file at "C:\program files\common files\merge modules". Any ideas why the setup cannot import the NI merge modules?

Thanks,
Derek
0 Kudos
Message 1 of 5
(4,814 Views)
Hello,

I set up a system this morning to try and reproduce your error using your C# project. It all worked fine for me.

You may want to try including another merge module other than a National Instruments MSM. They should all be located in Program Files\Common Files\Merge Modules. Just right click on the setup project and select Add>>Merge Module...

I have been using the Visual Studio .NET installer projects for a while and have seen this happen once before. It happened when I installed VS.NET 2002 and VS.NET 2003 on the same system. I had to uninstall/reinstll Visual Studio .NET 2003 to get it working again. Microsoft explained it as a schema corruption?

If you can import other merge modules, please let me know so I can try and track down what the i
ssue is?

Regards,
Jeff
NI
0 Kudos
Message 2 of 5
(4,814 Views)
Hi Jeff,

Thanks for the fast reply! I tried adding a different NI merge module and a Crystal Reports merge module, and both were unable to be imported.

I did have both VS.NET 2002 and 2003, and now I only have 2003. Please tell me I don't have to re-install 2003 again...

Let me know if there's anything else I can try at this end.

Thanks,
Derek
0 Kudos
Message 3 of 5
(4,814 Views)
Hello Derek,

First I would try and do a repair on VS.NET 2003 to see if that works. I know it takes about an hour but it is the safest way to get back to a good install state.

Let me warn you that this may not work, but it is just a hunch about the fact that Microsoft told me it was a schema corruption issue. If you have another system that has only had VS.NET 2003 on it you can copy all files from :

Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\Deployment

to the other machine. This will include all deployment schemas and thier merging code.

I hope this helps.
Jeff
NI
0 Kudos
Message 4 of 5
(4,814 Views)
Hi Jeff,

I haven't tried the repair option yet. I'll have to try that later. I tried copying the deployment folder you mentioned above, but this didn't work as I just realized that it also previously had 2002 on it. The funny this is it works fine on that pc. I have a feeling I'll be un-installing and re-installing eventually...

Thanks for all your help!
Derek
0 Kudos
Message 5 of 5
(4,814 Views)