Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to add shortcut files to the Teststand workspace

74 views
Skip to first unread message

A. Senthilnathan

unread,
Jul 20, 2005, 2:41:21 PM7/20/05
to
I am deploying my test stand application using TS deployment utility. At the end I need three four icons / shortcuts to launch the operator interface with different seq file entry points. I have created manually the shortcuts and it is working fine. How do I add these icons to my installer. I tried to add these shortcuts into the workspace. But it is adding the exe instead of the shortcut.
 
How do I add these shortcuts to the installer / create these shortcuts during installation?
 
Thanks
Senthilnathan A.

Antonio Lie

unread,
Jul 21, 2005, 6:40:41 PM7/21/05
to
Hi,
Have you tried to create a program item for the operator interface?A Program Item is  the closest thing to shortcut the current deployment utility supports.You only have to go to the Deployed Files tab, select the specific file, check the 'Create Program Item' check box and give it a name.
This action will create a Windows Start Menu Item linked to the selected file.
 
Hope It Helps.
 
 
 

Antonio Lie

unread,
Jul 22, 2005, 1:11:37 PM7/22/05
to
Hi,
I found a workaround that could work for you.You can write a post.bat file to copy the shortcut created for your program item to wherever you want.The only thing you have to do is to create the windows start menu item for your operator interface and include a post.bat file in your installer directory to copy the *.lnk file to the desired location.
The Post.bat file is executed immediatly after the installer finishes.
I am attaching a simple installer that installs the CVI simple operator interface and creates a shortcut for it in the Windows Start menu and on the Desktop.
I am only copying the file from the start menu to the desktop in the post file.
I hope it helps.
 


Installer.zip:
http://forums.ni.com/attachments/ni/330/7767/1/Installer.zip

A. Senthilnathan

unread,
Jul 22, 2005, 8:10:14 PM7/22/05
to
Hello Antonio Lie,
 
Thanks for your help. I have used similar approach of using the post.bat files to create icons in the desktop. I found a suggesstion in the national instrument's support archives, to use post.bat and a third party tool (shortcut.exe) to create the icons. In the post.bat file i had commands with appropriate values to run shortcut exe. It is said that the installer runs the post.bat file automatically. It was not working. When I add the post / post.bat in the custom commands of the installer, then it runs the post.bat file at the end of the installer.
 
Does the installer runs the post.bat file automatically? Is the file name should be post.bat?
 
Thanks,
Senthilnathan A.

nandini

unread,
Jul 25, 2005, 11:41:26 AM7/25/05
to
Hi Senthilnathan:
 
Is the post.bat file in the same directory a setup.exe?  The way it works is that the installer that the TestStand 3.0 Deployment Utility creates checks to see if a batch file named post.bat exists in the same directory as setup.exe. If the post.bat file does exist, then the installer runs post.bat.  
 
Please see the following link for further help with this utility:
<a href="http://digital.ni.com/public.nsf/websearch/1E54BA3152A6A2A586256D7C004F5A78?OpenDocument" target="_blank">http://digital.ni.com/public.nsf/websearch/1E54BA3152A6A2A586256D7C004F5A78?OpenDocument</a>
&nbsp;
Thank you
Nandini Subramaniam
NI
0 new messages