09-10-2015 09:54 AM
I'm trying to use LabVIEW to run an NSIS Uninstaller package, then wait until completion.
Using System Exec vi with 'Wait Until Completion' set to True, the VI waits until the UAC prompt is clicked to allow the uninstall, then LabVIEW continues before the Uninstaller completes. Does anyone have any suggestions of how to get it to wait until after the full thread completes? Failing that, I'll ditch System Exec and look at using something like Python, DotNet etc.
09-10-2015 10:04 AM
Yeah, have a look at the .NET 'Process' library - I've used it before as a replacement to System Exec and is a lot more powerful. I think it's somewhere in System.Diagnostics.
09-11-2015 03:07 AM
Searching online it appears the .net class is System.Diagnostics.Process.Start, but that's not available in the class browser in LabVIEW, and none of the System Diagnostics objects contain public classes. Do you still have your code to check which class you used? Cheers Duncan
09-11-2015 06:58 AM
Yeah, it's a bit confusing. It's actually in System and then System.Diagnostics:
09-18-2015 02:32 AM
Thank you for that Sam. That's what I needed to be able to call an exe using .Net, but that too uses the UAC prompt as the thread to wait for. .Net is more useful that SystemExec, so I'll look at what other methods & properties are available in there & post something on here once I've resolved it.