CVS: packaging mspgcc-full-install.nsi,1.15,1.16

Chris Liechti <[email protected]> Fri, 26 May 2006 11:11:40 -0700
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/packaging
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv8345/packaging

Modified Files:
	mspgcc-full-install.nsi 
Log Message:
register the two new filetypes for the msp430-downloader

Index: mspgcc-full-install.nsi
===================================================================
RCS file: /cvsroot/mspgcc/packaging/mspgcc-full-install.nsi,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -w -d -r1.15 -r1.16
--- mspgcc-full-install.nsi	1 May 2006 22:57:12 -0000	1.15
+++ mspgcc-full-install.nsi	26 May 2006 18:11:38 -0000	1.16
@@ -217,6 +217,23 @@
     CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\msp430-gdbproxy (parallel).lnk" "$INSTDIR\bin\msp430-gdbproxy.exe" "--port=3333 msp430" "$INSTDIR\msp430-gdbproxy.exe" 0
 ;     CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\msp430-gdbproxy-debug.lnk" "$INSTDIR\bin\msp430-gdbproxy.exe" "--port=3333 --debug --debug msp430" "$INSTDIR\msp430-gdbproxy.exe" 0
     !insertmacro MUI_STARTMENU_WRITE_END
+
+    ; Write additional mspgcc.downloader Keys
+    WriteRegStr HKCR "mspgcc.downloader.config" "" "MSP430 Downloader Config"
+    WriteRegStr HKCR "mspgcc.downloader.config\DefaultIcon" "" "$INSTDIR\bin\msp430-downloader.exe"
+    WriteRegStr HKCR "mspgcc.downloader.config\shell\open" "" "Download"
+    WriteRegStr HKCR "mspgcc.downloader.config\shell\open\command" "" "$INSTDIR\bin\msp430-downloader.exe $\"%1$\""
+    
+    WriteRegStr HKCR "mspgcc.downloader.archive" "" "MSP430 Downloader Archive"
+    WriteRegStr HKCR "mspgcc.downloader.archive\DefaultIcon" "" "$INSTDIR\bin\msp430-downloader.exe"
+    WriteRegStr HKCR "mspgcc.downloader.archive\shell\open" "" "Download"
+    WriteRegStr HKCR "mspgcc.downloader.archive\shell\open\command" "" "$INSTDIR\bin\msp430-downloader.exe $\"%1$\""
+    ; Write File Associations
+    WriteRegStr HKCR ".m43" "" "mspgcc.downloader.config"
+    WriteRegStr HKCR ".m43" "Content Type" "text/plain"
+    
+    WriteRegStr HKCR ".z43" "" "mspgcc.downloader.archive"
+    WriteRegStr HKCR ".z43" "Content Type" "application/octet-stream"
 SectionEnd
 
 SubSection "GiveIO (required for Windows NT, 2000 and XP only))" SecGiveio
@@ -474,9 +491,14 @@
     DeleteRegKey HKCR ".elf"
     Skip_Del_elf:
 
+    ; Remove File Associations
+    DeleteRegKey HKCR ".m43"
+    DeleteRegKey HKCR ".z43"
     ; remove the mspgcc.* Keys
     DeleteRegKey HKCR "mspgcc.ihexfile"
     DeleteRegKey HKCR "mspgcc.elffile"
+    DeleteRegKey HKCR "mspgcc.downloader.config"
+    DeleteRegKey HKCR "mspgcc.downloader.archive"
 
     # MUST REMOVE UNINSTALLER, too
     Delete "$INSTDIR\${PRODUCT}-uninstall.exe"



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642