--- a/install.nsi Tue Oct 11 16:34:05 2011 +0200
+++ b/install.nsi Thu Apr 03 22:36:17 2014 +0200
@@ -1,3 +1,7 @@
+
+SetCompressor /SOLID /FINAL lzma
+SetDatablockOptimize off
+
!include MUI2.nsh
; MUI Settings
@@ -23,13 +27,20 @@
OutFile "Beremiz-$BVERSION.exe"
InstallDir "$PROGRAMFILES\Beremiz"
!define PYTHONW_EXE "$INSTDIR\python\pythonw.exe"
-!define BEREMIZ_EXE '"$INSTDIR\beremiz\Beremiz.py" -u "http://www.beremiz.org/updateinfo/$BVERSION/"'
+!define BEREMIZ_EXE '"$INSTDIR\beremiz\Beremiz.py" -u "http://www.beremiz.org/updateinfo/$BVERSION/" $BEXTENSIONS'
Section "Beremiz"
SetOutPath $INSTDIR
File /r /x debian /x *.pyc "build/*"
SectionEnd
+Section "Examples"
+ CreateDirectory "$DESKTOP\BeremizExamples"
+ SetOutPath "$DESKTOP\BeremizExamples"
+ File /r "examples/*"
+ CreateShortCut "$DESKTOP\BeremizExamples\canopen_tests\CAN_TCP_Server.lnk" "$INSTDIR\CanFestival-3\drivers\can_tcp_win32\can_tcp_win32_server.exe" "" "" 0 SW_SHOWNORMAL "" "Simple CAN emulation over TCP (for CANopen testing)"
+SectionEnd
+
Section "Install"
;Store installation folder
WriteRegStr HKCU "Software\Beremiz" "" $INSTDIR
@@ -46,11 +57,13 @@
SetShellVarContext all
CreateDirectory "$SMPROGRAMS\Beremiz"
SetOutPath "$INSTDIR\mingw\bin"
- CreateShortCut "$SMPROGRAMS\Beremiz\PlcopenEditor.lnk" "${PYTHONW_EXE}" '"$INSTDIR\plcopeneditor\plcopeneditor.py"' "$INSTDIR\plcopeneditor\images\poe.ico"
+ CreateShortCut "$SMPROGRAMS\Beremiz\PlcopenEditor.lnk" "${PYTHONW_EXE}" '"$INSTDIR\beremiz\plcopeneditor.py"' "$INSTDIR\beremiz\images\poe.ico"
CreateShortCut "$SMPROGRAMS\Beremiz\Beremiz.lnk" "${PYTHONW_EXE}" '${BEREMIZ_EXE}' "$INSTDIR\beremiz\images\brz.ico"
CreateShortCut "$SMPROGRAMS\Beremiz\Uninstall.lnk" "$INSTDIR\uninstall.exe"
SetShellVarContext current
CreateShortCut "$DESKTOP\Beremiz.lnk" "${PYTHONW_EXE}" '${BEREMIZ_EXE}' "$INSTDIR\beremiz\images\brz.ico"
+; Profiling :
+; CreateShortCut "$DESKTOP\BeremizPro.lnk" "${PYTHONW_EXE}" '-m cProfile -o %USERPROFILE%/stats.pstat ${BEREMIZ_EXE}' "$INSTDIR\beremiz\images\brz.ico"
SectionEnd
Section "Uninstall"