Inno Setup - 设置 QuickTime 的文件权限
我正在尝试使“.mov”文件与 Windows 上的 QuickTime Player 关联,因为默认情况下,Windows Media Player 正在尝试打开它们。我的 iss 文件中一定有什么不对的地方。这是我所拥有的:
Root: HKCR; Subkey: ".mov"; ValueType: string; ValueName: ""; ValueData: "QuickTime.mov"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "QuickTimeFile"; ValueType: string; ValueName: ""; ValueData: "QuickTime File"; Flags: uninsdeletekey
Root: HKCR; Subkey: "QuickTime\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\QuickTimePlayer.exe,0"
Root: HKCR; Subkey: "QuickTimeFile\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\QuickTimePlayer.exe"" ""%1"""
我在顶部的代码中也有 ChangeAssociations=yes 。
我一定在某个地方没有正确的值。运行安装后,它不会将文件关联从 Windows Media 更改为 QuickTime。
I am trying to make ".mov" files associate with the QuickTime Player on Windows, as it seems by default, the Windows Media Player is trying to open them. I must not have something right in my iss file. Here is what I have:
Root: HKCR; Subkey: ".mov"; ValueType: string; ValueName: ""; ValueData: "QuickTime.mov"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "QuickTimeFile"; ValueType: string; ValueName: ""; ValueData: "QuickTime File"; Flags: uninsdeletekey
Root: HKCR; Subkey: "QuickTime\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\QuickTimePlayer.exe,0"
Root: HKCR; Subkey: "QuickTimeFile\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\QuickTimePlayer.exe"" ""%1"""
I also have ChangeAssociations=yes in the code at the top.
I must not have the correct value somewhere. After running the install it doesn't change the file association from Windows Media to QuickTime.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然不行!如果
HKCR\.mov
的默认值为QuickTime.mov
,那么您需要将您的设置写入HKCR\QuickTime.mov
!Of course it does not work! If the default value of
HKCR\.mov
isQuickTime.mov
, then you need to write your settings toHKCR\QuickTime.mov
!