I want to register a. md file with the default opening method for my own program, but I tried but was unsuccessful.
Section
; 获取安装路径
StrCpy $0 $INSTDIR\Cherry Noted.exe
StrCpy $1 $INSTDIR\favicon.ico
; 设置 .md 文件的默认打开方式
WriteRegStr HKCR .md "" "MarkdownFile"
WriteRegStr HKCR MarkdownFile "" "Cherry Noted file (.md)"
WriteRegStr HKCR MarkdownFile\DefaultIcon "" "$1"
WriteRegStr HKCR MarkdownFile\shell\open\command "" '$0 "%1"'
SectionEnd