Commit 69e87117 authored by Victor Yacovlev's avatar Victor Yacovlev

WIN32: File icons

parent 7d663710
......@@ -4,7 +4,7 @@
# For manual build change this line to something line:
# OutFile "kumir2-...exe"
#!include outfilename.nsh
OutFile kumir2-2.1.0-beta2.exe
OutFile kumir2-2.1.0-beta4.exe
Name "-2.x"
InstallDir "$PROGRAMFILES\Kumir2x"
......@@ -18,6 +18,15 @@ RequestExecutionLevel admin
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "Russian"
!define SHCNE_ASSOCCHANGED 0x08000000
!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
Section "Kumir" Kumir
SetOutPath "$INSTDIR"
......@@ -33,10 +42,16 @@ Section "Kumir" Kumir
ExecWait '"$INSTDIR\vcredist_x86.exe" /passive'
Delete /REBOOTOK "$INSTDIR\vcredist_x86.exe"
ExecWait 'assoc .kum=niisi.kumir2.program'
ExecWait 'assoc .kod=niisi.kumir2.bytecode'
ExecWait 'ftype niisi.kumir2.program="$INSTDIR\bin\kumir2-open.exe" "%1"'
ExecWait 'ftype niisi.kumir2.bytecode="$INSTDIR\bin\kumir2-run.exe" "%1" "%*"'
WriteRegStr HKCR ".kum" "" "ru.niisi.kumir2.program"
WriteRegStr HKCR "ru.niisi.kumir2.program" "" " "
WriteRegStr HKCR "ru.niisi.kumir2.program\shell\open\command" "" '"$INSTDIR\bin\kumir2-open.exe" "%1"'
WriteRegStr HKCR "ru.niisi.kumir2.program\DefaultIcon" "" "$INSTDIR\share\icons\kumir2-kum.ico"
WriteRegStr HKCR ".kod" "" "ru.niisi.kumir2.bytecode"
WriteRegStr HKCR "ru.niisi.kumir2.bytecode" "" " "
WriteRegStr HKCR "ru.niisi.kumir2.bytecode\shell\open\command" "" '"$INSTDIR\bin\kumir2-run.exe" "%1" "%*"'
WriteRegStr HKCR "ru.niisi.kumir2.bytecode\DefaultIcon" "" "$INSTDIR\share\icons\kumir2-kod.ico"
Call RefreshShellIcons
CreateDirectory "$SMPROGRAMS\2"
CreateShortCut "$SMPROGRAMS\2\-.lnk" "$INSTDIR\bin\kumir2-classic.exe"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment