this is a feature of DriverPacks.
you can create a driverpack (or modify an existing) and
use the INI in the DriverPack to launch an application
based on the presence of a specific HWID. or specific File name (like its driver file name).
the entry in the ini may look like this
[CR2]
; REQUIRED
exc_count = 1
; OPTIONAL
exc_1_tagFiles = 2
exc_1_tagFile1 = "%SystemRoot%\system32\drivers\P17.sys"
exc_1_tagFile2 = "%DPSROOT%\D\S\CR2\Ctzapxx.ini"
exc_1_+hwids = 0
exc_1_-hwids = 0
exc_1_+infFiles = 1
exc_1_+infFile1 = "%DPSROOT%\D\S\CR2\Win2k_xp\*.inf"
exc_1_-infFiles = 0
exc_1_commands = 1
exc_1_command1 = "%DPSROOT%\D\S\CR2\ctzapxx.exe /S"
this says that if the file "%SystemRoot%\system32\drivers\P17.sys" is found
execute --> ctzapxx.exe /S
explained...
P17.sys will only exist if the device is present and its driver was successfully installed in the machine
if both of these things are true then we need to run the devices installer
to provide control panels and other features that compliment but are not part of the actual driver.
there is quite a bit of info already documented here on this topic -