03-27-2013 04:48 PM
I have recently upgraded one of my programs from VS2008 to VS2012. I also had Measurement Studio 2009 and upgraded to 2013. Since Microsoft dropped their setup and deployment in VS2012, I am attempting to use Flexera Express to build a setup program. My application contains a form that has a scatter graph control that needs to be deployed on Win7 and XP machines. I attempted to force the compile to .NET framework 4.5, but that won't support XP. I downgraded the .NET framework back down to 3.5. I noticed that I had to change the NI references each time I changed the .NET framework. I only had references to the NationalInstruments.UI, NationalInstruments.UI.WindowsForms, and NationalInstruments.Common. When I build the setup it requires me to explicitly declare the redistributable packages. So I selected the NI Measurement Studio Windows Forms Support package and it selects the Design-Time Support and User Interface Common Support automatically (dependencies I'm guessing). But after I build this version of the setup and install it on a system, I get the following message when attempting to initialize the scatter graph control:
Could not load file or assembly 'NationalInstruments.UI, Version 8.9.35.246, culture=neutral, PublicKeyToken=18cbae0f9955702a' or one of its dependencies. The system cannot find the file specified.
Is there a redistributable package I'm missing? I've tried to add in Base Components for running Measurement Studio, but get the same error.
I tried to use Wix, but ran out of patience trying to figure that one out. Any help is greatly appreciated.
Solved! Go to Solution.
03-28-2013 04:04 PM
In general, when deploying utilities from with Measurement Studio controls you should refer to this documentation for the necessary dependencies for merge modules:
http://digital.ni.com/public.nsf/allkb/6677098983C36F9086256CFE007F457A?OpenDocument