Installer: Added .inc association

If .inc is not associated, it is associated with whatever .ini is.
This commit is contained in:
Birunthan Mohanathas 2012-07-23 18:26:37 +03:00
parent 39b9832540
commit 5759429823

View File

@ -851,6 +851,15 @@ SkipIniMove:
WriteRegStr HKCR "Rainmeter.SkinInstaller\shell\edit" "" "Install Rainmeter skin"
WriteRegStr HKCR "Rainmeter.SkinInstaller\shell\edit\command" "" '"$INSTDIR\SkinInstaller.exe" %1'
; If .inc isn't associated, use the .ini association for it.
ReadRegStr $1 HKCR ".inc" ""
${If} $1 == ""
ReadRegStr $1 HKCR ".ini" ""
${If} $1 != ""
WriteRegStr HKCR ".inc" "" "$1"
${EndIf}
${EndIf}
; Refresh shell icons if new install
${If} $0 == ""
${RefreshShellIcons}