Recently I had to virtualize ACDSee with ThinApp. As it appeared, getting ThinApp to capture the file type associations of ACDSee is not as easy as you might expect. The reason for this is: ACDSee is using an unusual way to register it’s FTAs. If you use the following command, you can see all the file types ACDSee registered with Windows.
ftype | find /i “ACD”
You will see something like ACDSee 15.gif=”C:Program FilesACD SystemsACDSee15.0ACDSeeQV15.exe” “%1″.
But if you use the following command, you can see that the FTAs for GIF files are still pointing somewhere else.
assoc | find /i “.gif”
To fix this, you have to execute the following line for every file type that you want to register with ACDSee. Execute this before you do the PostScan with ThinApp.
assoc .jpeg=”ACDSee 15.jpeg”
assoc .jpg=”ACDSee 15.jpg”
assoc .gif=”ACDSee 15.gif”
assoc .png=”ACDSee 15.png”
After the PostScan is done you will also have to add the file types to the package.ini of your ThinApp project. Otherwise the built package wont include the FTAs.
[ACDSeeQV15.exe]Source=%ProgramFilesDir%ACD SystemsACDSee15.0ACDSeeQV15.exeShortcut=ACDSee 15.datFileTypes=.jpeg.jpg.gif.png
As you can see above, the files will be associated with the ACDSee quick viewer.
After you have successfully built your ACDSee ThinApp package, you can use thinreg.exe to register the file types with the target machine’s Windows.
thinreg.exe /q ACDSeeQV15.exe
To unregister the file types again, just use thinreg.exe /q /u ACDSeeQV15.exe.