08-14-2009 03:10 PM
08-21-2009 02:59 PM - edited 08-21-2009 03:00 PM
Nuts! 😞
I made a little test app to hopefully prove your theory about being able to check for .NET... however, it seems that my original statement was correct. If you build an exe and installer from the attached project and install and run the app on a copy of XP without .NET installed you get the following error message:
And then the development menu bar reappears with a broken arrow:
Shaun
08-21-2009 04:55 PM
08-24-2009 09:12 AM
Unfortunately that is not the problem. The only way I can get the registry solution to work sucessfully is to create a launcher vi that does the registry check and then dynamically launches the main application. This way the launcher VI has no calls (whether they are within subVIs or not) to .NET and therefore can run even if .NET is installed (see the attached, new version of the code).
Shaun
08-24-2009 09:33 AM
08-24-2009 09:46 AM
Although I wish this worked, I can back up shew82. I have a large app that uses a little .NET calling within it. When the built exe is installed on a target PC without .NET, then launched, I get a broken run arrow and exactly the same error that shew82 has shown. I cryptic "this vi is broken" message.
My app is in LabVIEW 8.6, and I would have hoped that it would still run, and that I'd get an error from the sections of code that call .NET dlls. I have to ask my customers to manually check for .NET before installing my application.