Разобрался сделав так
Код:
WriteRegStr HKLM "Software\Classes\.mp3" "" "mp3.File"
WriteRegStr HKLM "Software\Classes\mp3.File" "" "mp3 Media File"
WriteRegStr HKLM "Software\Classes\mp3.File\DefaultIcon" "" "$INSTDIR\Icons\Black Style.dll,6"
WriteRegStr HKLM "Software\Classes\mp3.File\shell\open\command" "" "$\"$INSTDIR\AIMP2.exe$\" $\"%1$\""
; ставим приложением по умолчанию для текущего пользователя
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mp3\UserChoice"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mp3\UserChoice" "Progid" "mp3.File"
; ставим приложением по умолчанию для текущего пользователя
WriteRegStr HKLM "Software\Classes\.WAV" "" "Aimp.File"
WriteRegStr HKLM "Software\Classes\WAV.File" "" "WAV Media File"
WriteRegStr HKLM "Software\Classes\WAV.File\DefaultIcon" "" "$INSTDIR\Icons\Black Style.dll,11"
WriteRegStr HKLM "Software\Classes\WAV.File\shell\open\command" "" "$\"$INSTDIR\AIMP2.exe$\" $\"%1$\""
; ставим приложением по умолчанию для текущего пользователя
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.WAV\UserChoice"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.WAV\UserChoice" "Progid" "WAV.File"
Плюс в секции удаление отметил восстановление по дефолту ассоциаций
Код:
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mp3" "" ""
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mp3\OpenWithList" "a" "wmplayer.exe"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mp3\UserChoice" "Progid" "WMP11.AssocFile.MP3"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.aac" "" ""
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.aac\OpenWithList" "a" "wmplayer.exe"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.aac\UserChoice" "Progid" "WMP11.AssocFile.aac"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.wav" "" ""
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.wav\OpenWithList" "a" "wmplayer.exe"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.wav\UserChoice" "Progid" "WMP11.AssocFile.wav"