04-08-2013 12:53 PM
Hi,
I'm trying to deploy a C#/WPF application that uses MStudio controls using VS2012 and am having some trouble. It seems there is no built-in installer (besides ClickOnce, which doesn't work with MStudio), so I downloaded/installed InstallShield LE and tried to create an installer that way, but I'm getting the following error when building the installer project:
Error 18 -1007: Unable to copy file from '[project dir]\Express\Interm\MergeModules\MStudioCommon.2005.243BBD6632074B44BCDC8E5E58FE6937\_0416B1C9023B72F95CB8617C6658FCDF.243BBD6632074B44BCDC8E5E58FE6937' to '[project dir]\DVD-5\DiskImages\DISK1\Module Retargetable Folder\policy.8.5.NationalInstruments.Common.Native\9.1.20.163_4544464CDEAAB541\NationalInstruments.Common.Native.config'. The file path is longer than the limit set by the operating system. Change the build location of the current release to a shorter path to resolve this issue. ISEXP : error : -1007: Unable to copy file from '[project dir]\Interm\MergeModules\MStudioCommon.2005.243BBD6632074B44BCDC8E5E58FE6937\_0416B1C9023B72F95CB8617C6658FCDF.243BBD6632074B44BCDC8E5E58FE6937' to '[project dir]\DVD-5\DiskImages\DISK1\Module Retargetable Folder\policy.8.5.NationalInstruments.Common.Native\9.1.20.163_4544464CDEAAB541\NationalInstruments.Common.Native.config'. The file path is longer than the limit set by the operating system. Change the build location of the current release to a shorter path to resolve this issue.
Similar errors are present for various NI binaries and config files (18 errors in total, all the same in nature as the one above).
My question is: What is the recommended way to deploy applications including MStudio components using VS2012? I'm basically looking for something like this for VS2012.
Thanks, any feedback is appreciated.
04-08-2013 03:07 PM
Update:
I got past the long-filename error by moving to a different workspace, and now get the following errors:
ISEXP : error : -4072: Error retrieving dependency Microsoft_VC100_CRT_x86.AFA96EB4_FA9F_335C_A7CB_36079407553D:0 of C:\Program Files (x86)\Common Files\Merge Modules\MStudioCommon.2012.msm ISEXP : error : -4072: Error retrieving dependency Microsoft_VC100_CRT_x86.AFA96EB4_FA9F_335C_A7CB_36079407553D:0 of C:\Program Files (x86)\Common Files\Merge Modules\MStudioCommon.2012.msm ISEXP : error : -4072: Error retrieving dependency Microsoft_VC100_CRT_x86.AFA96EB4_FA9F_335C_A7CB_36079407553D:0 of C:\Program Files (x86)\Common Files\Merge Modules\MStudioCommon.2012.msm ISEXP : error : -4072: Error retrieving dependency Microsoft_VC100_CRT_x86.AFA96EB4_FA9F_335C_A7CB_36079407553D:0 of C:\Program Files (x86)\Common Files\Merge Modules\MStudioCommon.2012.msm ISEXP : error : -4072: Error retrieving dependency Microsoft_VC100_CRT_x86.AFA96EB4_FA9F_335C_A7CB_36079407553D:0 of C:\Program Files (x86)\Common Files\Merge Modules\MStudioCommon.2012.msm ISEXP : error : -4072: Error retrieving dependency Microsoft_VC100_CRT_x86.AFA96EB4_FA9F_335C_A7CB_36079407553D:0 of C:\Program Files (x86)\Common Files\Merge Modules\MStudioCommon.2012.msm ISEXP : error : -4072: Error retrieving dependency Microsoft_VC100_CRT_x86.AFA96EB4_FA9F_335C_A7CB_36079407553D:0 of C:\Program Files (x86)\Common Files\Merge Modules\MStudioCommon.2012.msm
Am I missing some msm files or perhaps have incorrect ones?
04-09-2013 03:21 PM
Since Visual Studio has removed Setup and Deployment projects, a Corrective Action Request (382945) has been filed on this behavior and R&D is currently looking into a workaround. If possible, I would recommend using WiX. This is not a guranteed fix, but this has been used to successfully deploy Measurement Studio applications in Visual Studio 2012 without the error you are receiving.
04-10-2013 01:16 PM
Thanks Anjelica, I ended up going the WiX route and it does work successfully.
Justin