Skip to content

Commit

Permalink
fix for building Windows installer
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4995 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
lotus committed Jul 13, 2008
1 parent b704cf1 commit adeb881
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions yacy.nsi
Expand Up @@ -36,7 +36,14 @@ LicenseData "gpl.txt"

Section "Binaries (required)"
SectionIn 1 2 3 RO
Call ClearShortcuts

;clear old shortcuts
SetShellVarContext current
RMDir /r "$SMPROGRAMS\YaCy"
Delete "$QUICKLAUNCH\YaCy-Search.lnk" ;old
Delete "$DESKTOP\YaCy-Search.lnk" ;old
Delete "$SMSTARTUP\start YaCy (no console).lnk" ;old

SetOutPath $INSTDIR

File /r "RELEASE\MAIN\*"
Expand Down Expand Up @@ -98,23 +105,14 @@ Section "Uninstall"

;or jump to this
keepdata:
Call ClearShortcuts
RMDir /r "$SMPROGRAMS\YaCy"
Delete "$DESKTOP\YaCy.lnk"
Delete "$SMSTARTUP\YaCy.lnk"

DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YaCy"
nouninstall:
SectionEnd

Function ClearShortcuts
SetShellVarContext current

RMDir /r "$SMPROGRAMS\YaCy"
Delete "$DESKTOP\YaCy.lnk"
Delete "$SMSTARTUP\YaCy.lnk"
Delete "$QUICKLAUNCH\YaCy-Search.lnk" ;old
Delete "$DESKTOP\YaCy-Search.lnk" ;old
Delete "$SMSTARTUP\start YaCy (no console).lnk" ;old
FunctionEnd

Function GetJRE
; based on http://nsis.sourceforge.net/Simple_Java_Runtime_Download_Script
MessageBox MB_OK "YaCy uses Java ${JRE_VERSION6}. \
Expand Down

0 comments on commit adeb881

Please sign in to comment.