Creating File Associations
- Updated2025-04-10
- 1 minute(s) read
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.
- Select [System(64-bit)] in the Root drop-down.
-
Set the Executable Path to the name of the command prompt executable:
cmd.exe
-
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.
- Click OK.
- Build your package by selecting .
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""