equal
deleted
inserted
replaced
|
1 |
|
2 SetCompressor /SOLID /FINAL lzma |
|
3 SetDatablockOptimize off |
|
4 |
1 !include MUI2.nsh |
5 !include MUI2.nsh |
2 |
6 |
3 ; MUI Settings |
7 ; MUI Settings |
4 !define MUI_ICON "build\beremiz\images\brz.ico" |
8 !define MUI_ICON "build\beremiz\images\brz.ico" |
5 !define MUI_HEADERIMAGE |
9 !define MUI_HEADERIMAGE |
21 |
25 |
22 Name "Beremiz $BVERSION" |
26 Name "Beremiz $BVERSION" |
23 OutFile "Beremiz-$BVERSION.exe" |
27 OutFile "Beremiz-$BVERSION.exe" |
24 InstallDir "$PROGRAMFILES\Beremiz" |
28 InstallDir "$PROGRAMFILES\Beremiz" |
25 !define PYTHONW_EXE "$INSTDIR\python\pythonw.exe" |
29 !define PYTHONW_EXE "$INSTDIR\python\pythonw.exe" |
26 !define BEREMIZ_EXE '"$INSTDIR\beremiz\Beremiz.py" -u "http://www.beremiz.org/updateinfo/$BVERSION/"' |
30 !define BEREMIZ_EXE '"$INSTDIR\beremiz\Beremiz.py" -u "http://www.beremiz.org/updateinfo/$BVERSION/" $BEXTENSIONS' |
27 |
31 |
28 Section "Beremiz" |
32 Section "Beremiz" |
29 SetOutPath $INSTDIR |
33 SetOutPath $INSTDIR |
30 File /r /x debian /x *.pyc "build/*" |
34 File /r /x debian /x *.pyc "build/*" |
|
35 SectionEnd |
|
36 |
|
37 Section "Examples" |
|
38 CreateDirectory "$DESKTOP\BeremizExamples" |
|
39 SetOutPath "$DESKTOP\BeremizExamples" |
|
40 File /r "examples/*" |
|
41 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)" |
31 SectionEnd |
42 SectionEnd |
32 |
43 |
33 Section "Install" |
44 Section "Install" |
34 ;Store installation folder |
45 ;Store installation folder |
35 WriteRegStr HKCU "Software\Beremiz" "" $INSTDIR |
46 WriteRegStr HKCU "Software\Beremiz" "" $INSTDIR |
44 |
55 |
45 Section "Shortcuts" |
56 Section "Shortcuts" |
46 SetShellVarContext all |
57 SetShellVarContext all |
47 CreateDirectory "$SMPROGRAMS\Beremiz" |
58 CreateDirectory "$SMPROGRAMS\Beremiz" |
48 SetOutPath "$INSTDIR\mingw\bin" |
59 SetOutPath "$INSTDIR\mingw\bin" |
49 CreateShortCut "$SMPROGRAMS\Beremiz\PlcopenEditor.lnk" "${PYTHONW_EXE}" '"$INSTDIR\plcopeneditor\plcopeneditor.py"' "$INSTDIR\plcopeneditor\images\poe.ico" |
60 CreateShortCut "$SMPROGRAMS\Beremiz\PlcopenEditor.lnk" "${PYTHONW_EXE}" '"$INSTDIR\beremiz\plcopeneditor.py"' "$INSTDIR\beremiz\images\poe.ico" |
50 CreateShortCut "$SMPROGRAMS\Beremiz\Beremiz.lnk" "${PYTHONW_EXE}" '${BEREMIZ_EXE}' "$INSTDIR\beremiz\images\brz.ico" |
61 CreateShortCut "$SMPROGRAMS\Beremiz\Beremiz.lnk" "${PYTHONW_EXE}" '${BEREMIZ_EXE}' "$INSTDIR\beremiz\images\brz.ico" |
51 CreateShortCut "$SMPROGRAMS\Beremiz\Uninstall.lnk" "$INSTDIR\uninstall.exe" |
62 CreateShortCut "$SMPROGRAMS\Beremiz\Uninstall.lnk" "$INSTDIR\uninstall.exe" |
52 SetShellVarContext current |
63 SetShellVarContext current |
53 CreateShortCut "$DESKTOP\Beremiz.lnk" "${PYTHONW_EXE}" '${BEREMIZ_EXE}' "$INSTDIR\beremiz\images\brz.ico" |
64 CreateShortCut "$DESKTOP\Beremiz.lnk" "${PYTHONW_EXE}" '${BEREMIZ_EXE}' "$INSTDIR\beremiz\images\brz.ico" |
|
65 ; Profiling : |
|
66 ; CreateShortCut "$DESKTOP\BeremizPro.lnk" "${PYTHONW_EXE}" '-m cProfile -o %USERPROFILE%/stats.pstat ${BEREMIZ_EXE}' "$INSTDIR\beremiz\images\brz.ico" |
54 SectionEnd |
67 SectionEnd |
55 |
68 |
56 Section "Uninstall" |
69 Section "Uninstall" |
57 SetShellVarContext all |
70 SetShellVarContext all |
58 Delete "$INSTDIR\Uninstall.exe" |
71 Delete "$INSTDIR\Uninstall.exe" |