Table Of Contents

Creating File Associations

Last Modified: November 6, 2020

Create a custom execute that modifies associated file types after you install a package.

Use the Windows Assoc command tool to determine if a file extension association already exists, and return the file type name. Define the file type with Assoc if the extension does not have any existing file type association.

Use the Windows Ftype command tool to assign the application associated with the file type.

  1. Select [System (32-bit)] in the Root drop-down.
  2. Set the Executable Path to the name of the command prompt executable: cmd.exe
  3. Enter the following arguments in the Arguments field to pass a string to the command prompt and run ftype: /c ftype <FileType>="<Path>" "%1"

    Replace <FileType> with the file type you want to modify, and <Path> with the full path of the executable you want to associate the file type with.

  4. Click OK.
  5. Build your package by selecting Build»Build All Packages.

To associate a custom user interface application with TestStand .seq files, you would use the following arguments:

/c ftype NationalInstruments.TestStandSequenceFile.1 = "%programfiles%\MyProduct\My App.exe""%1"

Recently Viewed Topics