aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAndrew Lewman <andrew@torproject.org>2007-09-24 22:17:57 +0000
committerAndrew Lewman <andrew@torproject.org>2007-09-24 22:17:57 +0000
commitb396958d0812c45acb042a5d45ba67aa1959b29d (patch)
tree76a584b40f03ecf9815d6a753cc7f8597292d67d /contrib
parentad11e9d0f12b2e447f8be8a24df4787b77520344 (diff)
downloadtor-b396958d0812c45acb042a5d45ba67aa1959b29d.tar
tor-b396958d0812c45acb042a5d45ba67aa1959b29d.tar.gz
Updated to make the shortcuts work by default.
svn:r11616
Diffstat (limited to 'contrib')
-rw-r--r--contrib/polipo/polipo-mingw.nsi24
1 files changed, 11 insertions, 13 deletions
diff --git a/contrib/polipo/polipo-mingw.nsi b/contrib/polipo/polipo-mingw.nsi
index cac7aa7c9..cbae41c41 100644
--- a/contrib/polipo/polipo-mingw.nsi
+++ b/contrib/polipo/polipo-mingw.nsi
@@ -6,7 +6,7 @@
;
!include "MUI.nsh"
-!define VERSION "1.0.2"
+!define VERSION "1.0.3.20070922-darcs"
!define INSTALLER "polipo-${VERSION}-win32.exe"
!define WEBSITE "http://www.pps.jussieu.fr/~jch/software/polipo/"
@@ -39,7 +39,7 @@ VIAddVersionKey "FileVersion" "${VERSION}"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\win-uninstall.ico"
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\win.bmp"
!define MUI_HEADERIMAGE
-!define MUI_FINISHPAGE_RUN "$INSTDIR\polipo.exe -c $configdir\config"
+!define MUI_FINISHPAGE_RUN '"$INSTDIR\polipo.exe" -c config'
!define MUI_FINISHPAGE_LINK "Visit the Polipo website for the latest updates."
!define MUI_FINISHPAGE_LINK_LOCATION ${WEBSITE}
@@ -57,7 +57,6 @@ VIAddVersionKey "FileVersion" "${VERSION}"
!insertmacro MUI_UNPAGE_FINISH
!insertmacro MUI_LANGUAGE "English"
-Var configdir
Var configfile
;Sections
@@ -77,13 +76,12 @@ Section "Polipo" Polipo
WriteIniStr "$INSTDIR\Polipo Website.url" "InternetShortcut" "URL" ${WEBSITE}
StrCpy $configfile "config"
- StrCpy $configdir $INSTDIR
- SetOutPath $configdir
+ SetOutPath $INSTDIR
;If there's already a polipo config file, ask if they want to
;overwrite it with the new one.
- IfFileExists "$configdir\config" "" endifconfig
+ IfFileExists "$INSTDIR\config" "" endifconfig
MessageBox MB_ICONQUESTION|MB_YESNO "You already have a Polipo config file.$\r$\nDo you want to overwrite it with the default sample config file?" IDNO yesreplace
- Delete $configdir\config
+ Delete $INSTDIR\config
Goto endifconfig
yesreplace:
StrCpy $configfile ".\config.windows"
@@ -105,8 +103,8 @@ Section "Start Menu" StartMenu
IfFileExists "$SMPROGRAMS\Polipo\*.*" "" +2
RMDir /r "$SMPROGRAMS\Polipo"
CreateDirectory "$SMPROGRAMS\Polipo"
- CreateShortCut "$SMPROGRAMS\Polipo\Polipo.lnk" "$INSTDIR\polipo.exe -c $configdir\config"
- CreateShortCut "$SMPROGRAMS\Polipo\Poliporc.lnk" "Notepad.exe" "$configdir\config"
+ CreateShortCut "$SMPROGRAMS\Polipo\Polipo.lnk" '"$INSTDIR\polipo.exe" -c $INSTDIR\config'
+ CreateShortCut "$SMPROGRAMS\Polipo\Poliporc.lnk" "Notepad.exe" "$INSTDIR\config"
CreateShortCut "$SMPROGRAMS\Polipo\Polipo Documentation.lnk" "$INSTDIR\www\index.html"
CreateShortCut "$SMPROGRAMS\Polipo\Polipo Website.lnk" "$INSTDIR\Polipo Website.url"
CreateShortCut "$SMPROGRAMS\Polipo\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
@@ -114,12 +112,12 @@ SectionEnd
Section "Desktop" Desktop
SetOutPath $INSTDIR
- CreateShortCut "$DESKTOP\Polipo.lnk" "$INSTDIR\polipo.exe -c $configdir\config"
+ CreateShortCut "$DESKTOP\Polipo.lnk" '"$INSTDIR\polipo.exe" -c $INSTDIR\config'
SectionEnd
Section /o "Run at startup" Startup
SetOutPath $INSTDIR
- CreateShortCut "$SMSTARTUP\Polipo.lnk" "$INSTDIR\polipo.exe -c $configdir\config" "" "" "" SW_SHOWMINIMIZED
+ CreateShortCut "$SMSTARTUP\Polipo.lnk" '"$INSTDIR\polipo.exe" -c $INSTDIR\config' "" "" "" SW_SHOWMINIMIZED
SectionEnd
SubSectionEnd
@@ -130,8 +128,8 @@ Section "Uninstall"
Delete "$INSTDIR\Polipo Website.url"
Delete "$INSTDIR\config"
Delete "$INSTDIR\config.sample"
- StrCmp $configdir $INSTDIR +2 ""
- RMDir /r $configdir
+ StrCmp $INSTDIR $INSTDIR +2 ""
+ RMDir /r $INSTDIR
Delete "$INSTDIR\Uninstall.exe"
RMDir /r "$INSTDIR\Documents"
RMDir $INSTDIR