--- a/Makefile Fri Oct 07 01:06:34 2011 +0200
+++ b/Makefile Mon Oct 10 00:37:27 2011 +0200
@@ -172,7 +172,7 @@
$(call get_src_hg,build/beremiz)
touch beremiz
-Beremiz-$(version).exe: python mingw matiec plcopeneditor beremiz
+Beremiz-$(version).exe: python mingw matiec plcopeneditor beremiz $(src)/license.txt $(src)/install.nsi
sed -e 's/\$$BVERSION/$(version)/g' $(src)/license.txt > build/license.txt
sed -e 's/\$$BVERSION/$(version)/g' $(src)/install.nsi | makensis -
--- a/install.nsi Fri Oct 07 01:06:34 2011 +0200
+++ b/install.nsi Mon Oct 10 00:37:27 2011 +0200
@@ -46,10 +46,11 @@
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\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"
SectionEnd
Section "Uninstall"
@@ -61,4 +62,6 @@
RMDir /R "$INSTDIR"
DeleteRegKey /ifempty HKCU "Software\Beremiz"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Beremiz"
+ SetShellVarContext current
+ Delete "$DESKTOP\Beremiz.lnk"
SectionEnd