Inno Setup - 设置 QuickTime 的文件权限

发布于 2024-12-12 11:18:23 字数 755 浏览 0 评论 0原文

我正在尝试使“.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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

原来分手还会想你 2024-12-19 11:18:23

当然不行!如果HKCR\.mov的默认值为QuickTime.mov,那么您需要将您的设置写入HKCR\QuickTime.mov

Root: HKCR; Subkey: ".mov"; ValueType: string; ValueName: ""; ValueData: "QuickTime.mov"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "QuickTime.mov"; ValueType: string; ValueName: ""; ValueData: "QuickTime File"; Flags: uninsdeletekey
Root: HKCR; Subkey: "QuickTime.mov\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\QuickTimePlayer.exe,0"
Root: HKCR; Subkey: "QuickTime.mov\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\QuickTimePlayer.exe"" ""%1"""

Of course it does not work! If the default value of HKCR\.mov is QuickTime.mov, then you need to write your settings to HKCR\QuickTime.mov!

Root: HKCR; Subkey: ".mov"; ValueType: string; ValueName: ""; ValueData: "QuickTime.mov"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "QuickTime.mov"; ValueType: string; ValueName: ""; ValueData: "QuickTime File"; Flags: uninsdeletekey
Root: HKCR; Subkey: "QuickTime.mov\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\QuickTimePlayer.exe,0"
Root: HKCR; Subkey: "QuickTime.mov\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\QuickTimePlayer.exe"" ""%1"""
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文