install.nsi
changeset 4 e3a923bd3d56
parent 0 7bc9d95b92bc
child 6 862080d48ef2
--- 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