2018年1月21日

Portableapps Application File Association

Foxitreader as an exmple
Save the following as a .reg and register it
=================

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]
"FoxitReader Portable"="Software\\FoxitReaderPortable\\Capabilities"

[HKEY_LOCAL_MACHINE\SOFTWARE\FoxitReaderPortable\Capabilities]
"ApplicationName"="FoxitReader Portable"
"ApplicationDescription"="Foxit Reader is the PDF Reader which enables you to become part of the connected world. Provide authors with comments on documents, be notified when new document versions become available, discuss interesting topics right in the document, or securely open protected documents."
"ApplicationIcon"="\"D:\\Documents\\PortableApps\\FoxitReaderPortable\\FoxitReaderPortable.exe\",0"
"Hidden"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\FoxitReaderPortable\Capabilities\FileAssociations]
".pdf"="FoxitReaderPortable"
".fdf"="FoxitReaderPortable"
".xfdf"="FoxitReaderPortable"
".xdp"="FoxitReaderPortable"

[HKEY_LOCAL_MACHINE\SOFTWARE\FoxitReaderPortable]
"LocalizedString"="FoxitReader Portable"
""="FoxitReader Portable"

[HKEY_LOCAL_MACHINE\SOFTWARE\FoxitReaderPortable\DefaultIcon]
""="\"D:\\Documents\\PortableApps\\FoxitReaderPortable\\FoxitReaderPortable.exe\",0"

[HKEY_LOCAL_MACHINE\SOFTWARE\FoxitReaderPortable\shell\open\command]
""="\"D:\\Documents\\PortableApps\\FoxitReaderPortable\\FoxitReaderPortable.exe\""

[HKEY_LOCAL_MACHINE\SOFTWARE\FoxitReaderPortable\shell\properties\command]
""="\"D:\\Documents\\PortableApps\\FoxitReaderPortable\\FoxitReaderPortable.exe\" -preferences"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReaderPortable]
""="FoxitReader Portable"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReaderPortable\DefaultIcon]
""="\"D:\\Documents\\PortableApps\\FoxitReaderPortable\\FoxitReaderPortable.exe\",0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FoxitReaderPortable\shell\open\command]
""="\"D:\\Documents\\PortableApps\\FoxitReaderPortable\\FoxitReaderPortable.exe\" \"%1\""