install.nsi
changeset 4 e3a923bd3d56
parent 0 7bc9d95b92bc
child 6 862080d48ef2
equal deleted inserted replaced
3:2ee55ffac580 4:e3a923bd3d56
    44 
    44 
    45 Section "Shortcuts"
    45 Section "Shortcuts"
    46   SetShellVarContext all
    46   SetShellVarContext all
    47   CreateDirectory "$SMPROGRAMS\Beremiz"
    47   CreateDirectory "$SMPROGRAMS\Beremiz"
    48   SetOutPath "$INSTDIR\mingw\bin"
    48   SetOutPath "$INSTDIR\mingw\bin"
    49   
       
    50   CreateShortCut "$SMPROGRAMS\Beremiz\PlcopenEditor.lnk" "${PYTHONW_EXE}" '"$INSTDIR\plcopeneditor\plcopeneditor.py"' "$INSTDIR\plcopeneditor\images\poe.ico"
    49   CreateShortCut "$SMPROGRAMS\Beremiz\PlcopenEditor.lnk" "${PYTHONW_EXE}" '"$INSTDIR\plcopeneditor\plcopeneditor.py"' "$INSTDIR\plcopeneditor\images\poe.ico"
    51   CreateShortCut "$SMPROGRAMS\Beremiz\Beremiz.lnk" "${PYTHONW_EXE}" '${BEREMIZ_EXE}' "$INSTDIR\beremiz\images\brz.ico"
    50   CreateShortCut "$SMPROGRAMS\Beremiz\Beremiz.lnk" "${PYTHONW_EXE}" '${BEREMIZ_EXE}' "$INSTDIR\beremiz\images\brz.ico"
    52   CreateShortCut "$SMPROGRAMS\Beremiz\Uninstall.lnk" "$INSTDIR\uninstall.exe"
    51   CreateShortCut "$SMPROGRAMS\Beremiz\Uninstall.lnk" "$INSTDIR\uninstall.exe"
       
    52   SetShellVarContext current
       
    53   CreateShortCut "$DESKTOP\Beremiz.lnk" "${PYTHONW_EXE}" '${BEREMIZ_EXE}' "$INSTDIR\beremiz\images\brz.ico"
    53 SectionEnd
    54 SectionEnd
    54 
    55 
    55 Section "Uninstall"
    56 Section "Uninstall"
    56   SetShellVarContext all
    57   SetShellVarContext all
    57   Delete "$INSTDIR\Uninstall.exe"
    58   Delete "$INSTDIR\Uninstall.exe"
    59   Delete "$SMPROGRAMS\Beremiz\Beremiz.lnk"
    60   Delete "$SMPROGRAMS\Beremiz\Beremiz.lnk"
    60   RMDir /R "$SMPROGRAMS\Beremiz"
    61   RMDir /R "$SMPROGRAMS\Beremiz"
    61   RMDir /R "$INSTDIR"
    62   RMDir /R "$INSTDIR"
    62   DeleteRegKey /ifempty HKCU "Software\Beremiz"
    63   DeleteRegKey /ifempty HKCU "Software\Beremiz"
    63   DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Beremiz"
    64   DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Beremiz"
       
    65   SetShellVarContext current
       
    66   Delete "$DESKTOP\Beremiz.lnk"
    64 SectionEnd
    67 SectionEnd