11-16-2014 09:32 PM
Hi Sir :
I use Measurement studio 2013 and VS2013 for my project and I want to distribute my project on another PC with same OS.
My platform is Win 7 64-bit and use .Net framework 4.5.
Before to create an installer, I find that I should create a licenses.licx file for my project.
I refer the link below.
However, this example based on VS2010 and some of steps below I do not how to do in VS2013.
To manually license the Measurement Studio assemblies you must have a licenses.licx text file included in your project. If your project does not have a licenses.licx file, complete the following steps.
In Visual Studio 2010, if you create a Visual C++ CLR project and then add a Measurement Studio control, by default Visual Studio does not embed the license for the Measurement Studio control into the compiled application. As a result, you receive aLicenseException at run time. To work around this issue, you can manually set the licenses.licx file to build with the License Compiler by completing the following steps:
Could you please give me a example that bases on VS2013?
I only use waveformgraph and led arrays in my project and use NationalInstruments.UI.WindowsForms、NationalInstruments.Analysis.Enterprise、NationalInstruments.Common and NationalInstruments.UI for reference.
So I create licenses.licx like attached file, could you help to check if the file is correct?
I follow NI’s recommendation to use wix for MS installer and I also try your example All Libraries.2012.
This version bases on VS2012,
However, I can not check and add .Net Framework 4.5 on target machine.
Could you show me how to do this or could you proivde me an example that base on VS2013?
Best regards,
Marcus