CVS: packaging mspgcc-full-install.nsi,1.5,1.6

Chris Liechti <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/packaging
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22265/packaging

Modified Files:
	mspgcc-full-install.nsi 
Log Message:
little change in section hierarchy

Index: mspgcc-full-install.nsi
===================================================================
RCS file: /cvsroot/mspgcc/packaging/mspgcc-full-install.nsi,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -d -r1.5 -r1.6
--- mspgcc-full-install.nsi	28 Dec 2005 20:54:39 -0000	1.5
+++ mspgcc-full-install.nsi	29 Dec 2005 01:20:26 -0000	1.6
@@ -7,7 +7,7 @@
 !include "variables.nsh"
 
 !define VERSION_MAJOR 0
-!define VERSION_MINOR 4
+!define VERSION_MINOR 5
 
 !define README  "README.txt"
 
@@ -220,7 +220,9 @@
     Call AddPath
 SectionEnd
 
-Section "Set file Associations" SecAssociations
+
+; OPTIONAL
+Section "Associate .a43 with mspgcc" SecAssociateA43
     SectionIn 1 2
     ; Write the mspgcc.downloader Keys
     WriteRegStr HKCR "mspgcc.ihexfile" "" "MSP430 ihex binary"
@@ -228,8 +230,16 @@
     WriteRegStr HKCR "mspgcc.ihexfile\shell\open" "" "JTAG Download"
     WriteRegStr HKCR "mspgcc.ihexfile\shell\open\command" "" "$INSTDIR\bin\msp430-downloader.exe $\"%1$\""
     WriteRegStr HKCR "mspgcc.ihexfile\shell\totitext" "" "Convert to TI-Text"
-    WriteRegStr HKCR "mspgcc.ihexfile\shell\totitext\command" "" "$INSTDIR\bin\ihex2titext $\"%1$\""
+    WriteRegStr HKCR "mspgcc.ihexfile\shell\totitext\command" "" "$INSTDIR\bin\ihex2titext $\"%1$\" -o $\"%1.txt$\""
+    ; Write File Associations
+    WriteRegStr HKCR ".a43" "" "mspgcc.ihexfile"
+    WriteRegStr HKCR ".a43" "Content Type" "application/octet-stream"
+SectionEnd
 
+; OPTIONAL
+Section "Associate .elf with mspgcc" SecAssociateELF
+    SectionIn 1 2
+    ; Write the mspgcc.downloader Keys
     WriteRegStr HKCR "mspgcc.elffile" "" "MSP430 elf binary"
     WriteRegStr HKCR "mspgcc.elffile\DefaultIcon" "" "$INSTDIR\bin\msp430-downloader.exe"
     WriteRegStr HKCR "mspgcc.elffile\shell\open" "" "JTAG Download"
@@ -239,11 +249,8 @@
     WriteRegStr HKCR "mspgcc.elffile\shell\ihex" "" "Convert to IHex"
     WriteRegStr HKCR "mspgcc.elffile\shell\ihex\command" "" "$INSTDIR\bin\msp430-objcopy -O ihex $\"%1$\" $\"%1.a43$\" "
     WriteRegStr HKCR "mspgcc.elffile\shell\totitext" "" "Convert to TI-Text"
-    WriteRegStr HKCR "mspgcc.elffile\shell\totitext\command" "" "$INSTDIR\bin\ihex2titext $\"%1$\""
-
+    WriteRegStr HKCR "mspgcc.elffile\shell\totitext\command" "" "$INSTDIR\bin\ihex2titext $\"%1$\" -o $\"%1.txt$\""
     ; Write File Associations
-    WriteRegStr HKCR ".a43" "" "mspgcc.ihexfile"
-    WriteRegStr HKCR ".a43" "Content Type" "application/octet-stream"
     WriteRegStr HKCR ".elf" "" "mspgcc.elffile"
     WriteRegStr HKCR ".elf" "Content Type" "application/octet-stream"
 SectionEnd
@@ -396,7 +403,8 @@
   !insertmacro MUI_DESCRIPTION_TEXT ${SecLibraries}     "Several add-on libraries for the MSP430. libmspgcc, libcommandline, libspi"
   !insertmacro MUI_DESCRIPTION_TEXT ${SecGdb}           "The GNU command line debugger (GDB) for the MSP430."
   !insertmacro MUI_DESCRIPTION_TEXT ${SecDownloader}    "gdbproxy, msp430-jtag, msp430-bsl. Interface to the MSP430 FET JTAG tool and BSL."
-  !insertmacro MUI_DESCRIPTION_TEXT ${SecAssociations}  "Assign file extensions to the msp430-downloader tool"
+  !insertmacro MUI_DESCRIPTION_TEXT ${SecAssociateA43}  "Assign file extensions to the msp430-downloader tool"
+  !insertmacro MUI_DESCRIPTION_TEXT ${SecAssociateELF}  "Assign file extensions to the msp430-downloader tool"
   !insertmacro MUI_DESCRIPTION_TEXT ${SecGiveio}        "A parallel port access driver for Windows NT, 2000 and XP (needed for the JTAG adaptor). Note: this is NOT needed for Windows 95, 98 or Me."
   !insertmacro MUI_DESCRIPTION_TEXT ${SecMakeAndLibs}   "The GNU make utilities - make, diff, patch, rm, mv, mkdir, cp and the cygwin libraries."
   !insertmacro MUI_DESCRIPTION_TEXT ${SecMake}          "The GNU make utilities - make, diff, patch, rm, mv, mkdir, cp."



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.