12-23-2015 05:58 PM
I'm trying to create an installer for my app that includes Measurement Studio .msm modules, using WiX v3.10.1.2213. I've attached a bare minimum WiX source file that demonstrates the problem.
When I run:
candle.exe MeasurementStudioControls.wxs
...it completes with no errors.
But:
light.exe -ext WixUIExtension -out MeasurementStudioControls.msi MeasurementStudioControls.wixobj
...gives the following errors:
MeasurementStudioControls.msi : error LGHT0204 : ICE83: Both MsiPublishAssemblies AND MsiUnpublishAssemblies actions MUST be present in InstallExecuteSequence table. MeasurementStudioControls.msi : error LGHT0204 : ICE83: The MsiPublishAssemblies action MUST be present in AdvtExecuteSequence table.
Indeed, Orca shows that these actions are not present in either table in the resulting .msi file.
Nevertheless, the .msi file runs without errors. But then when I run:
gacutil /l
...NationalInstruments.Controls isn't there, so it doesn't appear to be getting installed.
Smoke.exe finds numerous errors in MStudioCommon.2010_x64.msm and MStudioControls.2010_x64.msm. Is there something wrong with these files that prevents them from getting installed, or am I doing something wrong?
12-28-2015 02:17 PM
Have you seen this KnowledgeBase Article? Deploying Measurement Studio Applications with WiX: http://digital.ni.com/public.nsf/allkb/764B727C9BD2C4C686257C970053D059?OpenDocument
If you haven't, step through this to see if it helps you.
Also, I've attached a screen shot of a search I did for NationalInstruments.Controls location on my computer.
12-28-2015 04:41 PM
12-29-2015 10:33 AM - edited 12-29-2015 10:42 AM
I am not too familiar with WiX, is there a specific reason you must use WiX rather than following the KnowledgeBase for VS 2010 and earlier?
After doing some seraching it looks like this problem has come up outside the scope of National Instruments in other instances; you may have better luck on a different forum like Windows or WiX.
I did find this forum that might be a good starting place: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Frustrated-can-t-get-a-simple-installe...
The last post suggests using the "shut up" command, adding -sice:ICE83 or -sval to your command line.
I was able to get the program to not produce errors (not sure if it worked 100%) by running
light.exe -sice:ICE83 -ext WixUIExtension -out MeasurementStudioControls.msi MeasurementStudioControls.wixobj
or
light.exe -sval -ext WixUIExtension -out MeasurementStudioControls.msi MeasurementStudioControls.wixobj
12-29-2015 05:03 PM
I'm using WiX so I won't have to rewrite the installer when we move to VS2012 or later.
I know I can suppress ICE83 with the "shut up" command, but if you'll use the .wxs file I provided, you'll see that it successfully creates the installer even with the ICE83 errors. The problem comes later when I try to run the installer--it doesn't seem to install anything.
I found the following article about issues installing in Windows 7: http://digital.ni.com/public.nsf/websearch/046E1B36934C7C198625788000591A1E?OpenDocument
So I added MStudioUtils_x64.msm to my WiX project, but that didn't help. (See attached .wxs file.)
Has anyone successfully installed MStudioControls.2010_x64.msm using WiX?
12-30-2015 03:03 PM
I think you are going to spend more time trying to troubleshoot and debug a process that is not exactly supported behavior. I realize it would be nice to have the same installer when you move to VS12, but it will be less work at the end of the day to simply follow the respective KnowledgeBase article for the version you are currently using.