Section ".aq" aq_file
DetailPrint "关联 aq 文件..."
SectionIn 1
WriteRegStr HKCR ".aq" "" "Aq.file"
WriteRegStr HKCR "Aq.file" "" "aq_file"
WriteRegStr HKCR "Aq.file\DefaultIcon" "" "$INSTDIR\rc\AIDI_logo.ico"
WriteRegStr HKCR "Aq.file\shell" "" ""
WriteRegStr HKCR "Aq.file\shell\open" "" ""
WriteRegStr HKCR "Aq.file\shell\open\command" "" '"$INSTDIR\AIDI.exe" "%1"'
SectionEnd
!define SHCNE_ASSOCCHANGED 0x8000000
!define SHCNF_IDLIST 0
Function RefreshShellIcons
; By jerome tremblay - april 2003
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v \
(${SHCNE_ASSOCCHANGED}, ${SHCNF_IDLIST}, 0, 0)'
FunctionEnd
记录一下,可用。