瀏覽代碼

wingrass/nsis: add file association for pyw files

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54626 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 年之前
父節點
當前提交
c3f79f5925
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      mswindows/GRASS-Installer.nsi.tmpl

+ 4 - 2
mswindows/GRASS-Installer.nsi.tmpl

@@ -624,8 +624,9 @@ Section "GRASS" SecGRASS
 	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GRASS_BASE}" "Publisher" "${PUBLISHER}"
         
         ;File Association
-        ${registerExtension} "$INSTALL_DIR\extrabin\python.exe" ".py"  "Python File"
-        ${registerExtension} "$INSTALL_DIR\extrabin\python.exe" ".pyc" "Compiled Python File"
+        ${registerExtension} "$INSTALL_DIR\extrabin\python.exe"  ".py"  "Python File"
+        ${registerExtension} "$INSTALL_DIR\extrabin\python.exe"  ".pyc" "Compiled Python File"
+        ${registerExtension} "$INSTALL_DIR\extrabin\pythonw.exe" ".pyw" "Python File (no console)"
 
 	;Create the Desktop Shortcut
 	SetShellVarContext current
@@ -1010,6 +1011,7 @@ Section "Uninstall"
         ;File Association
         ${unregisterExtension} ".py"  "Python File"
         ${unregisterExtension} ".pyc" "Compiled Python File"
+        ${unregisterExtension} ".py"  "Python File (no console)"
 SectionEnd
 
 ;----------------------------------------------------------------------------------------------------------------------------