[qet] [4113] Nsis Installers : write file associations registry keys to titleblocks

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4113
Author:   scorpio810
Date:     2015-08-14 16:16:25 +0200 (Fri, 14 Aug 2015)
Log Message:
-----------
Nsis Installers : write file associations registry keys to titleblocks

Modified Paths:
--------------
    trunk/packaging/windows/QET.nsi
    trunk/packaging/windows/QET64.nsi

Modified: trunk/packaging/windows/QET.nsi
===================================================================
--- trunk/packaging/windows/QET.nsi	2015-08-14 07:05:24 UTC (rev 4112)
+++ trunk/packaging/windows/QET.nsi	2015-08-14 14:16:25 UTC (rev 4113)
@@ -13,9 +13,8 @@
 	!include FileFunc.nsh
 	!insertmacro GetParameters
 	!insertmacro GetOptions
-
-
 	
+	
 ; MUI Settings
 ;--------------------------------
 ;General
@@ -206,6 +205,12 @@
 	WriteRegDWORD HKEY_CLASSES_ROOT "qet_element_file"                                 "BrowserFlags" 0x00000008
 	WriteRegStr   HKEY_CLASSES_ROOT "qet_element_file\DefaultIcon"                     ""             "$final_element_ico"
 	WriteRegStr   HKEY_CLASSES_ROOT "qet_element_file\shell\open\command"              ""             "$\"$final_qet_exe$\" $\"%1$\""
+	WriteRegStr   HKEY_CLASSES_ROOT ".titleblock"                                      ""             "qet_titleblock_file"
+	WriteRegStr   HKEY_CLASSES_ROOT "qet_titleblock_file"                              ""             "Titleblock QET"
+	WriteRegDWORD HKEY_CLASSES_ROOT "qet_titleblock_file"                              "EditFlags"    0x00000000
+	WriteRegDWORD HKEY_CLASSES_ROOT "qet_titleblock_file"                              "BrowserFlags" 0x00000008
+	WriteRegStr   HKEY_CLASSES_ROOT "qet_titleblock_file\DefaultIcon"                  ""             "$final_titleblock_ico"
+	WriteRegStr   HKEY_CLASSES_ROOT "qet_titleblock_file\shell\open\command"           ""             "$\"$final_qet_exe$\" $\"%1$\""
 	
 	SetShellVarContext all ; all users
 	; shortcuts in the start menu
@@ -301,6 +306,8 @@
 	DeleteRegKey HKEY_CLASSES_ROOT "qet_diagram_file"
 	DeleteRegKey HKEY_CLASSES_ROOT ".elmt"
 	DeleteRegKey HKEY_CLASSES_ROOT "qet_element_file"
+	DeleteRegKey HKEY_CLASSES_ROOT ".titleblock"
+	DeleteRegKey HKEY_CLASSES_ROOT "qet_titleblock_file"
 	
 	IfFileExists "$INSTDIR" 0 NoErrorMsg
 	;MessageBox MB_OK "Note: $INSTDIR could not be removed!" IDOK 0 ; skipped if file doesn't exist

Modified: trunk/packaging/windows/QET64.nsi
===================================================================
--- trunk/packaging/windows/QET64.nsi	2015-08-14 07:05:24 UTC (rev 4112)
+++ trunk/packaging/windows/QET64.nsi	2015-08-14 14:16:25 UTC (rev 4113)
@@ -216,6 +216,12 @@
 	WriteRegDWORD HKEY_CLASSES_ROOT "qet_element_file"                                 "BrowserFlags" 0x00000008
 	WriteRegStr   HKEY_CLASSES_ROOT "qet_element_file\DefaultIcon"                     ""             "$final_element_ico"
 	WriteRegStr   HKEY_CLASSES_ROOT "qet_element_file\shell\open\command"              ""             "$\"$final_qet_exe$\" $\"%1$\""
+	WriteRegStr   HKEY_CLASSES_ROOT ".titleblock"                                      ""             "qet_titleblock_file"
+	WriteRegStr   HKEY_CLASSES_ROOT "qet_titleblock_file"                              ""             "Titleblock QET"
+	WriteRegDWORD HKEY_CLASSES_ROOT "qet_titleblock_file"                              "EditFlags"    0x00000000
+	WriteRegDWORD HKEY_CLASSES_ROOT "qet_titleblock_file"                              "BrowserFlags" 0x00000008
+	WriteRegStr   HKEY_CLASSES_ROOT "qet_titleblock_file\DefaultIcon"                  ""             "$final_titleblock_ico"
+	WriteRegStr   HKEY_CLASSES_ROOT "qet_titleblock_file\shell\open\command"           ""             "$\"$final_qet_exe$\" $\"%1$\""
 	
 	SetShellVarContext all ; all users
 	; shortcuts in the start menu
@@ -319,6 +325,8 @@
 	DeleteRegKey HKEY_CLASSES_ROOT "qet_diagram_file"
 	DeleteRegKey HKEY_CLASSES_ROOT ".elmt"
 	DeleteRegKey HKEY_CLASSES_ROOT "qet_element_file"
+	DeleteRegKey HKEY_CLASSES_ROOT ".titleblock"
+	DeleteRegKey HKEY_CLASSES_ROOT "qet_titleblock_file"
 	
 	IfFileExists "$INSTDIR" 0 NoErrorMsg
 	;MessageBox MB_OK "Note: $INSTDIR could not be removed!" IDOK 0 ; skipped if file doesn't exist


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/