1
如何在Windows默認應用程序列表中列出我的應用程序?Inno Setup:擴展Windows默認應用程序列表
我有一個特殊的基於Java的視頻播放器應用程序,由Inno Setup創建安裝程序。我希望我的應用程序在Windows 10上的可選視頻播放器列表中列出(我也不知道如何使用較舊的Windows版本)。
如何在Windows默認應用程序列表中列出我的應用程序?Inno Setup:擴展Windows默認應用程序列表
我有一個特殊的基於Java的視頻播放器應用程序,由Inno Setup創建安裝程序。我希望我的應用程序在Windows 10上的可選視頻播放器列表中列出(我也不知道如何使用較舊的Windows版本)。
對於一般信息,請參見:
在Inno Setup的,要實施這種使用[Registry]
section:
[Registry]
; Create the application capability key
Root: HKLM; Subkey: "Software\My Company"; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\My Company\My Program"; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\My Company\My Program\Capability"; \
ValueType: string; ValueName: "ApplicationDescription"; ValueData: "This is My Program that does stuff"; \
Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\My Company\My Program\Capability"; \
ValueType: string; ValueName: "ApplicationName"; ValueData: "My Program"; \
Flags: uninsdeletevalue
; List of extensions the application supports
Root: HKLM; Subkey: "Software\My Company\My Program\Capability\FileAssociations"; \
ValueType: string; ValueName: ".jpg"; ValueData: "MyProgram.JPEG"; \
Flags: uninsdeletevalue
; Add the capability key to list of registered applications
Root: HKLM; Subkey: "Software\RegisteredApplications"; \
ValueType: string; ValueName: "My Program"; ValueData: "Software\My Company\My Program\Capability"; \
Flags: uninsdeletevalue
; For each extension that the application supports
Root: HKCR; Subkey: "MyProgram.JPEG"; Flags: uninsdeletekeyifempty
Root: HKCR; Subkey: "MyProgram.JPEG"; \
ValueType: string; ValueName: ""; ValueData: "MyProgram JPEG"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "MyProgram.JPEG\DefaultIcon"; Flags: uninsdeletekeyifempty
Root: HKCR; Subkey: "MyProgram.JPEG\DefaultIcon"; \
ValueType: string; ValueName: ""; ValueData: "{app}\MyProg.exe,1"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "MyProgram.JPEG\Shell"; Flags: uninsdeletekeyifempty
Root: HKCR; Subkey: "MyProgram.JPEG\Shell\open"; Flags: uninsdeletekeyifempty
Root: HKCR; Subkey: "MyProgram.JPEG\Shell\open\Command"; Flags: uninsdeletekeyifempty
Root: HKCR; Subkey: "MyProgram.JPEG\Shell\open\Command"; \
ValueType: string; ValueName: ""; ValueData: """{app}\MyProg.exe"" ""%1"""; Flags: uninsdeletevalue