[gbrainy] Update win32 installer



commit ae56c555541e858659835ebae68b2cf0afd4d2f4
Author: Jordi Mas <jmas softcatala org>
Date:   Tue Nov 10 19:53:28 2009 +0100

    Update win32 installer

 platforms/win32/installer/gbrainy.nsi |   74 +++++++--------------------------
 platforms/win32/src/build.bat         |    4 +-
 2 files changed, 18 insertions(+), 60 deletions(-)
---
diff --git a/platforms/win32/installer/gbrainy.nsi b/platforms/win32/installer/gbrainy.nsi
index ab92f88..4db7dc4 100644
--- a/platforms/win32/installer/gbrainy.nsi
+++ b/platforms/win32/installer/gbrainy.nsi
@@ -2,7 +2,7 @@
 
 ; HM NIS Edit Wizard helper defines
 !define PRODUCT_NAME "gbrainy"
-!define PRODUCT_VERSION "1.00"
+!define PRODUCT_VERSION "1.20"
 !define PRODUCT_WEB_SITE "http://live.gnome.org/gbrainy";
 !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\gbrainy.exe"
 !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
@@ -38,22 +38,18 @@ SetCompressor /solid lzma
 ; Instfiles page
 !insertmacro MUI_PAGE_INSTFILES
 ; Finish page
-!define MUI_FINISHPAGE_RUN "$INSTDIR\gbrainy.bat"
+;!define MUI_FINISHPAGE_RUN "$INSTDIR\gbrainy.bat"
 !insertmacro MUI_PAGE_FINISH
 
 ; Uninstaller pages
 !insertmacro MUI_UNPAGE_INSTFILES
 
 ; Language files
-!insertmacro MUI_LANGUAGE "Catalan"
 !insertmacro MUI_LANGUAGE "English"
-!insertmacro MUI_LANGUAGE "French"
-!insertmacro MUI_LANGUAGE "Galician"
-!insertmacro MUI_LANGUAGE "German"
-!insertmacro MUI_LANGUAGE "Italian"
+!insertmacro MUI_LANGUAGE "Catalan"
+!insertmacro MUI_LANGUAGE "PortugueseBR"
+!insertmacro MUI_LANGUAGE "Danish"
 !insertmacro MUI_LANGUAGE "Spanish"
-!insertmacro MUI_LANGUAGE "Slovak"
-!insertmacro MUI_LANGUAGE "Dutch"
 
 ; MUI end ------
 
@@ -76,51 +72,20 @@ Section "MainSection" SEC01
   
   SetOverwrite ifnewer
   
-  SetOutPath "$INSTDIR"  
-  
-  SetOutPath "$INSTDIR\locale\ca\LC_MESSAGES\"
-  File "/oname=gbrainy.mo" "..\topack\locale\ca.gmo" 
-  
-  SetOutPath "$INSTDIR\locale\es\LC_MESSAGES\"
-  File "/oname=gbrainy.mo" "..\topack\locale\es.gmo"
-  
-  SetOutPath "$INSTDIR\locale\de\LC_MESSAGES\"
-  File "/oname=gbrainy.mo" "..\topack\locale\de.gmo"
-  
-;  SetOutPath "$INSTDIR\locale\fr\LC_MESSAGES\"
-;  File "/oname=gbrainy.mo" "..\topack\locale\fr.gmo"
-  
-;  SetOutPath "$INSTDIR\locale\nl\LC_MESSAGES\"
-;  File "/oname=gbrainy.mo" "..\topack\locale\nl.gmo"
-
-  SetOutPath "$INSTDIR\locale\it\LC_MESSAGES\"      
-  File "/oname=gbrainy.mo" "..\topack\locale\it.gmo"  
-  
-  SetOutPath "$INSTDIR\locale\gl\LC_MESSAGES\"
-  File "/oname=gbrainy.mo" "..\topack\locale\gl.gmo"
-  
-  SetOutPath "$INSTDIR\locale\sk\LC_MESSAGES\"
-  File "/oname=gbrainy.mo" "..\topack\locale\sk.gmo"
-  
-  SetOutPath "$INSTDIR\locale\nl\LC_MESSAGES\"
-  File "/oname=gbrainy.mo" "..\topack\locale\nl.gmo"
-  
-  SetOutPath "$INSTDIR\locale\fr\LC_MESSAGES\"
-  File "/oname=gbrainy.mo" "..\topack\locale\fr.gmo"
-  
+  SetOutPath "$INSTDIR"
   SetOutPath "$INSTDIR"
   File "..\topack\gbrainy.exe"
-  File "..\topack\logic-games.svg"
-  File "..\topack\memory-games.svg"
-  File "..\topack\math-games.svg"
-  File "..\topack\background.svg"
+  File "/r" "..\topack\app-graphics\*"
+  File "/r" "..\topack\game-graphics\*"
   File "..\topack\gbrainy.bat"
   File "/r" "..\topack\mono\*"
+  File "/r" "..\topack\locale\*"
+  File "/r" "..\src\data\verbal_analogies.xml"
   
   
   CreateDirectory "$SMPROGRAMS\gbrainy"
-  CreateShortCut "$SMPROGRAMS\gbrainy\gbrainy.lnk" "$INSTDIR\gbrainy.bat"
-  CreateShortCut "$DESKTOP\gbrainy.lnk" "$INSTDIR\gbrainy.bat"
+  CreateShortCut "$SMPROGRAMS\gbrainy\gbrainy.lnk" "$INSTDIR\gbrainy.bat" "" "$INSTDIR\gbrainy.exe" 0 SW_SHOWMINIMIZED
+  CreateShortCut "$DESKTOP\gbrainy.lnk" "$INSTDIR\gbrainy.bat" "" "$INSTDIR\gbrainy.exe" 0 SW_SHOWMINIMIZED
 
 SectionEnd
 
@@ -153,7 +118,8 @@ Function un.onInit
   Abort
 FunctionEnd
 
-Section Uninstall  
+Section Uninstall
+  RMDir /r "$INSTDIR\*"  
   
   Delete "$SMPROGRAMS\gbrainy\gbrainy.lnk"
   Delete "$DESKTOP\gbrainy.lnk"
@@ -162,17 +128,7 @@ Section Uninstall
   Delete "$SMPROGRAMS\gbrainy\Website.lnk"
   Delete "$DESKTOP\gbrainy.lnk"
   Delete "$SMPROGRAMS\gbrainy\gbrainy.lnk"
-  RMDir /r "$INSTDIR\locale\*"
-  RMDir /r "$INSTDIR\mono\*"
-  Delete "$INSTDIR\gbrainy.bat"
-  Delete "$INSTDIR\gbrainy.exe"
-  Delete "$INSTDIR\logic-games.svg"
-  Delete "$INSTDIR\memory-games.svg"
-  Delete "$INSTDIR\math-games.svg"
-  Delete "$INSTDIR\background.svg"  
-  Delete "$INSTDIR\${PRODUCT_NAME}.url"
-  Delete "$INSTDIR\uninst.exe"
-  
+  RMDir "$INSTDIR"
 
   DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
   DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
diff --git a/platforms/win32/src/build.bat b/platforms/win32/src/build.bat
index a792c1b..374eef7 100644
--- a/platforms/win32/src/build.bat
+++ b/platforms/win32/src/build.bat
@@ -1,5 +1,7 @@
 copy ..\data\*.svg .
-gmcs -target:winexe -out:gbrainy.exe SVGImage.cs PuzzleGames/PuzzleFourSided.cs Preferences.cs GtkDialog.cs PlayerHistory.cs PlayerHistoryDialog.cs PuzzleGames/PuzzleSquaresAndLetters.cs PuzzleGames/PuzzleTrianglesWithNumbers.cs CalculationGames/CalculationFractions.cs PuzzleGames/PuzzleCountCircles.cs PuzzleGames/PuzzleEquation.cs PuzzleGames/PuzzleQuadrilaterals.cs PuzzleGames/PuzzleCountSeries.cs PuzzleGames/PuzzleExtraCircle.cs  ArrayListIndicesRandom.cs GameManager.cs PuzzleGames/PuzzleCirclesRectangle.cs Game.cs PuzzleGames/PuzzleFigures.cs PuzzleGames/PuzzleMatrixNumbers.cs PuzzleGames/PuzzleMoveFigure.cs PuzzleGames/PuzzlePencil.cs PuzzleGames/PuzzleSquares.cs PuzzleGames/PuzzleTriangles.cs PuzzleGames/PuzzleCoverPercentage.cs PuzzleGames/PuzzleNumericSequence.cs PuzzleGames/PuzzleSquareDots.cs PuzzleGames/PuzzleNumericRelation.cs PuzzleGames/PuzzleNextFigure.cs PuzzleGames/PuzzleSquareSheets.cs CalculationGames/CalculationArithmetical.cs MemoryGames/MemoryColouredFi
 gures.cs GameSession.cs MemoryGames/MemoryNumbers.cs Memory.cs MemoryGames/MemoryColouredText.cs PuzzleGames/PuzzleCube.cs MemoryGames/MemoryWords.cs PuzzleGames/PuzzleFigureLetter.cs CustomGameDialog.cs PuzzleGames/PuzzleDivideCircle.cs CalculationGames/CalculationGreatestDivisor.cs CalculationGames/CalculationTwoNumbers.cs CalculationGames/CalculationWhichNumber.cs PuzzleGames/PuzzleMatrixGroups.cs PuzzleGames/PuzzleBalance.cs PuzzleGames/PuzzleOstracism.cs MemoryGames/MemoryCountDots.cs CalculationGames/CalculationOperator.cs PuzzleGames/PuzzleFigurePattern.cs ColorPalette.cs PuzzleGames/PuzzlePeopleTable.cs GameDrawingArea.cs MemoryGames/MemoryFigures.cs PuzzleGames/PuzzleMissingSlice.cs PuzzleGames/PuzzleLines.cs PuzzleGames/PuzzleTetris.cs PreferencesDialog.cs PuzzleGames/PuzzleMissingPiece.cs MemoryGames/MemoryIndications.cs PuzzleGames/PuzzleMostInCommon.cs PuzzleGames/PuzzleBuildTriangle.cs CairoContextEx.cs PuzzleGames/PuzzleClocks.cs PuzzleGames/PuzzleLargerShape.
 cs MemoryGames/MemoryFiguresNumbers.cs gbrainy.cs Defines.cs -pkg:gnome-sharp-2.0 -pkg:gtk-sharp-2.0 -pkg:glade-sharp-2.0 -r:Mono.Cairo.dll -r:Mono.Posix -resource:gbrainy.glade -resource:../data/resume-32.png -resource:../data/endgame-32.png -resource:../data/pause-32.png -resource:../data/allgames-32.png -resource:../data/gbrainy.png -resource:../data/logic-games-32.png -resource:../data/math-games-32.png -resource:../data/memory-games-32.png -resource:../data/gbrainy.svg
+gmcs -win32icon:../data/app-graphics/gbrainy.ico -target:winexe -out:gbrainy.exe PuzzleGames/PuzzleTimeNow.cs PuzzleGames/PuzzlePercentage.cs GameTips.cs Unix.cs PuzzleGames/Puzzle3DCube.cs VerbalAnalogies/Analogies.cs VerbalAnalogies/AnalogiesFactory.cs VerbalAnalogies/AnalogiesMultipleOptions.cs VerbalAnalogies/AnalogiesPairOfWordsCompare.cs VerbalAnalogies/AnalogiesPairOfWordsOptions.cs VerbalAnalogies/AnalogiesQuestionAnswer.cs VerbalAnalogies/Analogy.cs PuzzleGames/PuzzleSquaresAndLetters.cs  MemoryGames/MemoryFacts.cs SimpleLabel.cs dialogs/PreferencesDialog.cs dialogs/AboutDialog.cs dialogs/CustomGameDialog.cs dialogs/GtkDialog.cs dialogs/PlayerHistoryDialog.cs SVGImage.cs PuzzleGames/PuzzleFourSided.cs Preferences.cs PlayerHistory.cs PuzzleGames/PuzzleTrianglesWithNumbers.cs PuzzleGames/PuzzleCountCircles.cs PuzzleGames/PuzzleEquation.cs PuzzleGames/PuzzleQuadrilaterals.cs PuzzleGames/PuzzleCountSeries.cs PuzzleGames/PuzzleExtraCircle.cs  ArrayListIndicesRandom.cs Ga
 meManager.cs PuzzleGames/PuzzleCirclesRectangle.cs Game.cs PuzzleGames/PuzzleFigures.cs PuzzleGames/PuzzleMatrixNumbers.cs PuzzleGames/PuzzleMoveFigure.cs PuzzleGames/PuzzlePencil.cs PuzzleGames/PuzzleSquares.cs PuzzleGames/PuzzleTriangles.cs PuzzleGames/PuzzleCoverPercentage.cs PuzzleGames/PuzzleNumericSequence.cs PuzzleGames/PuzzleSquareDots.cs PuzzleGames/PuzzleNumericRelation.cs PuzzleGames/PuzzleNextFigure.cs PuzzleGames/PuzzleSquareSheets.cs MemoryGames/MemoryColouredFigures.cs GameSession.cs MemoryGames/MemoryNumbers.cs MemoryGames/Memory.cs CountDown.cs  MemoryGames/MemoryColouredText.cs PuzzleGames/PuzzleCube.cs MemoryGames/MemoryWords.cs PuzzleGames/PuzzleFigureLetter.cs PuzzleGames/PuzzleDivideCircle.cs PuzzleGames/PuzzleMatrixGroups.cs PuzzleGames/PuzzleBalance.cs PuzzleGames/PuzzleOstracism.cs MemoryGames/MemoryCountDots.cs PuzzleGames/PuzzleFigurePattern.cs ColorPalette.cs PuzzleGames/PuzzlePeopleTable.cs GameDrawingArea.cs MemoryGames/MemoryFigures.cs PuzzleGa
 mes/PuzzleMissingSlice.cs PuzzleGames/PuzzleLines.cs PuzzleGames/PuzzleTetris.cs PuzzleGames/PuzzleMissingPiece.cs MemoryGames/MemoryIndications.cs PuzzleGames/PuzzleMostInCommon.cs PuzzleGames/PuzzleHandshakes.cs PuzzleGames/PuzzleCounting.cs PuzzleGames/PuzzleBuildTriangle.cs CairoContextEx.cs PuzzleGames/PuzzleClocks.cs PuzzleGames/PuzzleLargerShape.cs CalculationGames/CalculationArithmetical.cs CalculationGames/CalculationAverage.cs CalculationGames/CalculationCloserFraction.cs CalculationGames/CalculationFractions.cs CalculationGames/CalculationGreatestDivisor.cs CalculationGames/CalculationOperator.cs CalculationGames/CalculationPrimes.cs CalculationGames/CalculationProportions.cs CalculationGames/CalculationRatio.cs CalculationGames/CalculationTwoNumbers.cs MemoryGames/MemoryFiguresNumbers.cs gbrainy.cs Defines.cs -pkg:gtk-sharp-2.0 -pkg:glade-sharp-2.0 -r:Mono.Cairo.dll -r:Mono.Posix -resource:gbrainy.glade -resource:../data/app-graphics/resume-32.png -resource:../da
 ta/app-graphics/endgame-32.png -resource:../data/app-graphics/pause-32.png -resource:../data/app-graphics/allgames-32.png -resource:../data/app-graphics/gbrainy.png -resource:../data/app-graphics/logic-games-32.png -resource:../data/app-graphics/math-games-32.png -resource:../data/app-graphics/memory-games-32.png -resource:../data/app-graphics/verbal-games-32.png -resource:../data/app-graphics/gbrainy.svg 
+
+
 
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]