02-27-2007 11:08 AM
02-28-2007 09:09 AM
02-28-2007 10:58 AM
12-01-2008 04:18 PM
I am seeing the same problem. The NI merge modules are defined in my VS2008 set up package as they were defined by the dependencies determined by VS2008.However when the setup is run on a target machine the NI components are not installed and none of the files are anywhere to be found on the target machine. I prefer not to install these files into application directory. My expectation is that the merge modules would copy the files to the target machine and register them in the GAC.
I hope I am misinterpretting the suggested solution.
Am I to understand that a manual GAC registration step is required in order to deploy a windows forms application that uses NI components? That I cannot simply include the apporpriate merge modules in my installer and count on the reuired assemblies to be deployed properly on the target machine?
12-02-2008 08:57 AM
The default behavior of our merge modules is to install the assemblies and any necessary components into the application directory. However, we do allow you to override this setting for our merge modules and install these components into whatever directory you so chose. However, you must remember that the .NET CLR requires that assemblies live either in the GAC or the same directory, or subdirectory of the application so that it can locate them at run-time. I'm simply pointing this out so you don't start dumping the assemblies into random locations that the CLR doesn't look in. Enough talk, so how do you configure this setting...
Best Regards,
12-02-2008 09:45 AM
Results made easy as pie.
Clear, concise, not condescending, prompt, and most of all... correct.
Thanks for the assistance and for teaching me a little about VS setup projects.
Joe
12-02-2008 10:29 AM
Thanks a lot guys for all your responses.
Kudos to all of you.
AJ.
12-02-2008 10:46 AM
There is one last piece of this puzzle that I may as well follow up on here.
VS will detect all possible dependencies. This makes sense. The thing is, when I make use of only a small subset of the entire functionality of a component, I can probably get away with distributing far less (less merge modules). For instance, VS identifies mstudiodesign.2008.msm as a dependency. I am pretty certain I can safely eliminate this merge module from my install package. Is there a cross reference document someplace that shows the relationship between functionality and merge module? I suppose I could just use a build and test method for determining the least necessary distributable, but I prefer to work smarter rather than harder.
Joe
12-02-2008 11:38 AM
Take a look at the Measurement Studio .NET Merge Modules and Measurement Studio .NET XCOPY Deployment Files help topics in the NI Measurement Studio Help. These topics are both found under the Deploying Applications >> Merge Modules and Deployment Files category in the table of contents.
Best Regards,