杉宫竹苑工作室

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2147|回复: 0

NSIS 文件关联方法

[复制链接]
发表于 2017-2-26 13:39:31 | 显示全部楼层 |阅读模式

正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!

您需要 登录 才可以下载或查看,没有账号?立即注册

x
  1. Section ".txt" Note
  2. DetailPrint "关联 txt 文件..."
  3. SectionIn 1
  4. WriteRegStr HKCR ".txt" "" "Note.file"
  5. WriteRegStr HKCR "Note.file" "" "文本文件 (.txt)"
  6. WriteRegStr HKCR "Note.file\DefaultIcon" "" "$INSTDIR\Note.exe,0"
  7. WriteRegStr HKCR "Note.file\shell" "" ""
  8. WriteRegStr HKCR "Note.file\shell\open" "" ""
  9. WriteRegStr HKCR "Note.file\shell\open\command" "" '"$INSTDIR\Note.exe" "%1"'
  10. SectionEnd

  11. 菜单默认显示为“打开(&O)”;如需要更改菜单内容,还需要将以下内容
  12. WriteRegStr HKCR "Note.file\shell" "" ""
  13. WriteRegStr HKCR "Note.file\shell\open" "" ""
  14. 改为:
  15. WriteRegStr HKCR "Note.file\shell" "" open
  16. WriteRegStr HKCR "Note.file\shell\open" "" "编辑(&E)"
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SgzyStudio

GMT+8, 2024-5-19 16:20 , Processed in 0.108387 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表