Using NI Package Builder, I deploy an end-user application (i.e. a TestStand Deployment with User Interfaces or a LabVIEW Executable). For my end-user’s convenience, I want to add shortcuts on the desktop. How can I do that?
You can prepare shortcuts like any other files and then, in NI Package Manager, add them to your package for deployment. Follow these steps:
(1) Create your shortcut in Windows Explorer, i.e. following Create a desktop shortcut for an Office program or file
(2) In NI Package Manager, add your shortcut file to your Inputs
(3) Add your shortcut file to your package via Drag-and-Drop. This way it will be installed to the target with the package. As target folder use [Desktop]
Now you are done. Create your package and your installer. The installer will also put Your Shortcut.lnk to your target’s desktop.
If you want to create Desktop Shortcuts for your TestStand User Interfaces, you will possibly want to add some parameters to start a specific sequence file or a specific TestStand environment.To do that:
A shortcut path is finite in length, so if you add both a parameter to start a specific sequence file and one to start a specific TestStand environment file, you might reach that length too early. In this case it might come handy to create a Windows Environment Variable to shorten pathes.To create a Windows Environment Variable you use the Command Line as administrator with the command setx. You might want to run the following command:setx /M TSUI "C:\Users\Public\Documents\National Instruments\TestStand 2019 (64-bit)\UserInterfaces"Explanation:
A example shortcut running the simple TestStand User Interface with a default Test Sequence and a specific TestStand environment, would be look like this:
"%TSUI%\Simple\CSharp\Source Code\bin\x64\release\TestExec.exe" "%PUBLIC%\Documents\MySoftware\My Computer Motherboard Test Sequence.seq" /env "%PUBLIC%\Documents\MySoftware\MyEnvironment\MyEnvironment.tsenv"
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.