04-28-2016 04:18 AM
Scratch the above, we've made it much simpeler. Also this is compatible for 32-bit and 64-bit:
:: STOP AND DISABLE nimDNSResponder Service
NET STOP /Y nimDNSResponder >NUL 2>&1
SC CONFIG nimDNSResponder START= DISABLED >NUL 2>&1
Easy and fast!
04-28-2016 08:34 AM
Hm, just stopping the service doesn't quite cut it.
Tried it twice here now (damn that install takes long)
Fixxing it now so we will have a decent installer soon!
04-28-2016 09:12 AM
Here, this should work for 32 and 64
NET STOP /Y NINetworkDiscovery >NUL 2>&1
SC CONFIG NINetworkDiscovery START= DISABLED >NUL 2>&1
NET STOP /Y niLXIDiscovery >NUL 2>&1
SC CONFIG niLXIDiscovery START= DISABLED >NUL 2>&1
NET STOP /Y niDNSResponder >NUL 2>&1
SC CONFIG niDNSResponder START= DISABLED >NUL 2>&1
"C:\Program Files\National Instruments\Shared\mDNS Responder\nimdnsNSPTool.exe" -remove "981DF75B-898E-4c0c-B01C-5F181F817889" >NUL 2>&1
"C:\Program Files(x86)\National Instruments\Shared\mDNS Responder\nimdnsNSPTool.exe" -remove "981DF75B-898E-4c0c-B01C-5F181F817889" >NUL 2>&1
04-29-2016 08:24 AM
Darn, sorry, typo in service name:
This is tested and working now!
:: STOP AND DISABLE nimDNSResponder Services
NET STOP /Y NINetworkDiscovery >NUL 2>&1
SC CONFIG NINetworkDiscovery START= DISABLED >NUL 2>&1
NET STOP /Y niLXIDiscovery >NUL 2>&1
SC CONFIG niLXIDiscovery START= DISABLED >NUL 2>&1
NET STOP /Y nimDNSResponder >NUL 2>&1
SC CONFIG nimDNSResponder START= DISABLED >NUL 2>&1
:: REMOVE nimDNSResponder (two instances for 64-bit systems)
"C:\Program Files\National Instruments\Shared\mDNS Responder\nimdnsNSPTool.exe" -remove "981DF75B-898E-4c0c-B01C-5F181F817889" >NUL 2>&1
IF EXIST "%PROGRAMFILES(X86)%" "C:\Program Files (x86)\National Instruments\Shared\mDNS Responder\nimdnsNSPTool.exe" -remove "981DF75B-898E-4c0c-B01C-5F181F817889"
>NUL 2>&1
08-16-2016 11:58 AM - edited 08-16-2016 12:25 PM
I have the same issue. Putting the following tasks into manual gets around the problem, but I don't want to have to do this cause we run lots of computers, and this is a pain for IT to implement everytime we install the run time.
NI License Server
NI LXI Discovery Service
NI mDNS Responder Service - Stop if running
NI Network Discovery
How do I fix it correctly without having to add the remove registry lines? I am using 2015 SP1 now, had hoped this would be fixed by NI by this time. It was happening with labview 2012. Can I put the remove registry lines in the project somewhere so they automatically occur when the build is made?
Edit: I found the link above on page 5 that shows you how to add the bat file to a build pretty much does it. Still think this shouldn't be necessary to add, but at least it can be done.
Thanks in advance, Andre
Andre