Show
Ignore:
Timestamp:
04/05/08 23:12:12 (9 months ago)
Author:
edmanm
Message:

Fare thee well, Privoxy. Polipo is now included in the Windows bundle instead
of Privoxy.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vidalia/trunk/pkg/win32/vidalia-bundle.nsi.in

    r2469 r2491  
    2828!define TOR_DESC            "${TOR_NAME} ${TOR_APPVERSION}" 
    2929 
    30 !define PRIVOXY_NAME        "Privoxy" 
    31 !define PRIVOXY_EXEC        "privoxy.exe" 
    32 !define PRIVOXY_APPVERSION  "3.0.6" 
    33 !define PRIVOXY_DESC        "${PRIVOXY_NAME} ${PRIVOXY_APPVERSION}" 
     30!define POLIPO_NAME         "Polipo" 
     31!define POLIPO_EXEC         "polipo.exe" 
     32!define POLIPO_APPVERSION   "1.0.4.0" 
     33!define POLIPO_DESC         "${POLIPO_NAME} ${POLIPO_APPVERSION}" 
    3434 
    3535!define TORBUTTON_NAME      "Torbutton" 
     
    166166      File "Vidalia\${VIDALIA_APPVERSION}\LICENSE-OPENSSL" 
    167167      File "Vidalia\${VIDALIA_APPVERSION}\CREDITS" 
     168      WriteIniStr "$INSTDIR\Vidalia\Vidalia Website.url" "InternetShortcut" "URL" "http://www.vidalia-project.net" 
    168169       
    169170      ; Include a prebuilt GeoIP cache 
     
    213214      CreateShortCut "${SHORTCUTS}\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\${UNINSTALLER}" 0 
    214215      CreateShortCut "${SHORTCUTS}\Vidalia.lnk" "$INSTDIR\Vidalia\${VIDALIA_EXEC}" "" "$INSTDIR\Vidalia\${VIDALIA_EXEC}" 0 
    215        
    216       WriteIniStr "$INSTDIR\Vidalia\Vidalia Website.url" "InternetShortcut" "URL" "http://www.vidalia-project.net" 
    217216      CreateShortCut "${SHORTCUTS}\Vidalia Website.lnk" "$INSTDIR\Vidalia\Vidalia Website.url" 
    218217    SectionEnd 
     
    321320 
    322321;-------------------------------- 
    323 ; Privoxy 
    324 var bInstallPrivoxy 
    325 SectionGroup "${PRIVOXY_DESC}" PrivoxyGroup 
    326     ;-------------------------------- 
    327     ; Privoxy application binaries 
    328     Section "${PRIVOXY_NAME}" Privoxy 
     322; Polipo 
     323var bInstallPolipo 
     324SectionGroup "${POLIPO_DESC}" PolipoGroup 
     325    ;-------------------------------- 
     326    ; Polipo application binaries 
     327    Section "${POLIPO_NAME}" Polipo 
    329328        SectionIn 1 2 
    330329        ; add files / whatever that need to be installed here. 
    331         SetOutPath "$INSTDIR\Privoxy" 
    332         File /r Privoxy\${PRIVOXY_APPVERSION}\*.* 
    333  
    334         WriteRegStr HKEY_CLASSES_ROOT "PrivoxyActionFile\shell\open\command" "" 'Notepad.exe "%1"' 
    335         WriteRegStr HKEY_CLASSES_ROOT ".action" "" "PrivoxyActionFile" 
    336         WriteRegStr HKEY_CLASSES_ROOT "PrivoxyFilterFile\shell\open\command" "" 'Notepad.exe "%1"' 
    337         WriteRegStr HKEY_CLASSES_ROOT ".filter" "" "PrivoxyFilterFile" 
    338         
    339         ; Write the installation path into the registry 
    340         WriteRegStr HKCU SOFTWARE\Privoxy "Install_Dir" "$INSTDIR" 
     330        SetOutPath "$INSTDIR\Polipo" 
     331        File Polipo\${POLIPO_APPVERSION}\polipo.exe 
     332        File Polipo\${POLIPO_APPVERSION}\config 
     333        File Polipo\${POLIPO_APPVERSION}\CHANGES 
     334        File Polipo\${POLIPO_APPVERSION}\COPYING 
     335        File Polipo\${POLIPO_APPVERSION}\README.Windows 
     336        WriteINIStr "$SMPROGRAMS\Polipo\Polipo Website.url" "InternetShortcut" "URL" "http://www.pps.jussieu.fr/~jch/software/polipo/" 
    341337 
    342338        ; Write the uninstall keys for Windows 
    343         WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Privoxy" "DisplayName" "${PRIVOXY_DESC}" 
    344         WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Privoxy" "UninstallString" '"$INSTDIR\${UNINSTALLER}"' 
    345         WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Privoxy" "NoModify" 1 
    346         WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Privoxy" "NoRepair" 1 
    347         
    348         IntOp $bInstallPrivoxy 0 + 1 
     339        WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Polipo" "DisplayName" "${POLIPO_DESC}" 
     340        WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Polipo" "UninstallString" '"$INSTDIR\${UNINSTALLER}"' 
     341        WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Polipo" "NoModify" 1 
     342        WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Polipo" "NoRepair" 1 
     343       
     344        ; If the user is installing Vidalia, then update its torrc to remember where Polipo is installed 
     345        SetShellVarContext current 
     346        SectionGetFlags ${Vidalia} $0 
     347        IntOp $0 $0 & ${SF_SELECTED} 
     348        IntCmp $0 ${SF_SELECTED} write_polipo_location skip skip 
     349        write_polipo_location: 
     350            Push $INSTDIR 
     351            Push "\" 
     352            Push "\\" 
     353            Call StrRep 
     354            Pop $R0 ; contains the modified version of $INSTDIR 
     355            WriteINIStr "$APPDATA\Vidalia\vidalia.conf" General ProxyExecutable  "$R0\\Polipo\\${POLIPO_EXEC}" 
     356            WriteINIStr "$APPDATA\Vidalia\vidalia.conf" General ProxyExecutableArguments "-c, $R0\\Polipo\\config" 
     357            WriteINIStr "$APPDATA\Vidalia\vidalia.conf" General RunProxyAtStart  "true" 
     358        skip: 
     359 
     360        IntOp $bInstallPolipo 0 + 1 
    349361    SectionEnd 
    350362 
    351363    ;-------------------------------- 
    352     ; Privoxy Start menu shortcuts 
    353     Section "$(PrivoxyShortcuts)" PrivoxyShortcuts 
     364    ; Polipo Start menu shortcuts 
     365    Section "$(PolipoShortcuts)" PolipoShortcuts 
    354366        SectionIn 1 
    355367        SetShellVarContext all ; (Add to "All Users" Start Menu if possible) 
    356         RMDir /r "${SHORTCUTS}\Privoxy" 
    357         CreateDirectory "${SHORTCUTS}\Privoxy" 
    358         CreateShortCut "${SHORTCUTS}\Privoxy\Privoxy.lnk" "$INSTDIR\Privoxy\privoxy.exe" 
    359         CreateShortCut "${SHORTCUTS}\Privoxy\Web-based Feedback.lnk" "$INSTDIR\Privoxy\doc\user-manual\contact.html" 
    360         WriteINIStr "${SHORTCUTS}\Privoxy\Web-based Configuration.url" "InternetShortcut" "URL" "http://config.privoxy.org/" 
    361          
    362         CreateDirectory "${SHORTCUTS}\Privoxy\Edit Config" 
    363         CreateShortCut "${SHORTCUTS}\Privoxy\Edit Config\Main Configuration.lnk" "Notepad.exe" '"$INSTDIR\Privoxy\config.txt"' 
    364         CreateShortCut "${SHORTCUTS}\Privoxy\Edit Config\Default Actions.lnk" "Notepad.exe" '"$INSTDIR\Privoxy\default.action"' 
    365         CreateShortCut "${SHORTCUTS}\Privoxy\Edit Config\User Actions.lnk" "Notepad.exe" '"$INSTDIR\Privoxy\user.action"' 
    366         CreateShortCut "${SHORTCUTS}\Privoxy\Edit Config\Filters.lnk" "Notepad.exe" '"$INSTDIR\Privoxy\default.filter"' 
    367         CreateShortCut "${SHORTCUTS}\Privoxy\Edit Config\Trust list.lnk" "Notepad.exe" '"$INSTDIR\Privoxy\trust.txt"' 
    368          
    369         CreateDirectory "${SHORTCUTS}\Privoxy\Documentation" 
    370         CreateShortCut "${SHORTCUTS}\Privoxy\Documentation\User Manual.lnk" "$INSTDIR\Privoxy\doc\user-manual\index.html" 
    371         CreateShortCut "${SHORTCUTS}\Privoxy\Documentation\Frequently Asked Questions.lnk" "$INSTDIR\Privoxy\doc\faq\index.html" 
    372         CreateShortCut "${SHORTCUTS}\Privoxy\Documentation\Credits.lnk" "Notepad.exe" '"$INSTDIR\Privoxy\AUTHORS.txt"' 
    373         CreateShortCut "${SHORTCUTS}\Privoxy\Documentation\License.lnk" "Notepad.exe" '"$INSTDIR\Privoxy\LICENSE.txt"' 
    374         CreateShortCut "${SHORTCUTS}\Privoxy\Documentation\ReadMe file.lnk" "Notepad.exe" '"$INSTDIR\Privoxy\README.txt"' 
    375         WriteINIStr "$SMPROGRAMS\Privoxy\Documentation\Web Site.url" "InternetShortcut" "URL" "http://privoxy.org/" 
    376          
     368        RMDir /r "${SHORTCUTS}\Polipo" 
     369        CreateDirectory "${SHORTCUTS}\Polipo" 
     370        CreateShortCut "${SHORTCUTS}\Polipo\Polipo.lnk" "$INSTDIR\Polipo\polipo.exe" "-c config" 
     371        CreateShortCut "${SHORTCUTS}\Polipo\Configuration.lnk" "Notepad.exe" '"$INSTDIR\Polipo\config"' 
     372        CreateShortCut "${SHORTCUTS}\Polipo\Polipo Website.lnk" "$INSTDIR\Polipo\Polipo Website.url" 
    377373        CreateShortCut "${SHORTCUTS}\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\${UNINSTALLER}" 0 
     374 
     375        CreateDirectory "${SHORTCUTS}\Polipo\Documentation" 
     376        CreateShortCut "${SHORTCUTS}\Polipo\Documentation\Changelog.lnk" "Notepad.exe" '"$INSTDIR\Polipo\CHANGES"' 
     377        CreateShortCut "${SHORTCUTS}\Polipo\Documentation\License.lnk" "Notepad.exe" '"$INSTDIR\Polipo\COPYING"' 
     378        CreateShortCut "${SHORTCUTS}\Polipo\Documentation\Readme.lnk" "Notepad.exe" '"$INSTDIR\Polipo\README.Windows"' 
    378379    SectionEnd 
    379   
    380     ;-------------------------------- 
    381     ; Run Privoxy at startup 
    382     Section "$(PrivoxyStartup)" PrivoxyStartup 
    383       SectionIn 1 
    384       CreateShortCut "$SMSTARTUP\Privoxy.lnk" "$INSTDIR\Privoxy\privoxy.exe" "" "" 0 SW_SHOWMINIMIZED 
    385     SectionEnd      
    386380SectionGroupEnd 
    387381 
     
    440434    run_vidalia: 
    441435        Exec '"$INSTDIR\Vidalia\${VIDALIA_EXEC}"' 
    442         goto check_privoxy 
     436        goto done 
    443437     
    444438    check_tor: 
    445     IntCmp $bInstallTor 1 run_tor check_privoxy check_privoxy 
     439    IntCmp $bInstallTor 1 run_tor check_polipo check_polipo 
    446440    run_tor: 
    447441        Exec '"$INSTDIR\Tor\${TOR_EXEC}"' 
    448      
    449     check_privoxy: 
    450     IntCmp $bInstallPrivoxy 1 run_privoxy done done 
    451     run_privoxy: 
     442         
     443    check_polipo: 
     444    IntCmp $bInstallPolipo 1 run_polipo done done 
     445    run_polipo: 
    452446        SetOutPath "$INSTDIR\Privoxy" 
    453         ExecShell "" '"$INSTDIR\Privoxy\${PRIVOXY_EXEC}"' "" SW_SHOWMINIMIZED 
     447        Exec '"$INSTDIR\Polipo\${POLIPO_EXEC}" -c config' 
     448  
    454449    done: 
    455450FunctionEnd 
     
    490485SectionGroupEnd 
    491486 
    492 Section "un.Privoxy ${PRIVOXY_APPVERSION}" UninstallPrivoxy 
     487Section "un.Polipo ${POLIPO_APPVERSION}" UninstallPolipo 
    493488  SetShellVarContext all 
    494   RMDir /r "$INSTDIR\Privoxy" 
    495   RMDir /r "${SHORTCUTS}\Privoxy" 
    496   Delete "$SMSTARTUP\Privoxy.lnk" 
    497   DeleteRegKey HKEY_CLASSES_ROOT ".action" 
    498   DeleteRegKey HKEY_CLASSES_ROOT "PrivoxyActionFile" 
    499   DeleteRegKey HKEY_CLASSES_ROOT ".filter" 
    500   DeleteRegKey HKEY_CLASSES_ROOT "PrivoxyFilterFile" 
    501   DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Privoxy" 
     489  RMDir /r "$INSTDIR\Polipo" 
     490  RMDir /r "${SHORTCUTS}\Polipo" 
     491  DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Polipo" 
    502492SectionEnd 
    503493 
     
    530520 
    531521  CheckVidaliaAppData: 
    532   IfFileExists "$APPDATA\Vidalia\*.*" CheckPrivoxy 
     522  IfFileExists "$APPDATA\Vidalia\*.*" CheckPolipo 
    533523    SectionGetFlags ${UninstallVidaliaAppData} $0 
    534524    IntOp $0 $0 & ${SECTION_OFF} 
    535525    SectionSetFlags ${UninstallVidaliaAppData} $0 
    536526 
    537   CheckPrivoxy: 
    538   IfFileExists "$INSTDIR\Privoxy\*.*" Done 
    539     SectionGetFlags ${UninstallPrivoxy} $0 
     527  CheckPolipo: 
     528  IfFileExists "$INSTDIR\Polipo\*.*" Done 
     529    SectionGetFlags ${UninstallPolipo} $0 
    540530    IntOp $0 $0 & ${SECTION_OFF} 
    541     SectionSetFlags ${UninstallPrivoxy} $0 
     531    SectionSetFlags ${UninstallPolipo} $0 
    542532 
    543533  Done: 
     
    548538  IfFileExists "$INSTDIR\Tor\*.*" DontRemoveTheUninstaller 
    549539  IfFileExists "$INSTDIR\Vidalia\*.*" DontRemoveTheUninstaller 
    550   IfFileExists "$INSTDIR\Privoxy\*.*" DontRemoveTheUninstaller 
     540  IfFileExists "$INSTDIR\Polipo\*.*" DontRemoveTheUninstaller 
    551541  RMDir /r "$INSTDIR" 
    552542  RMDir /r "${SHORTCUTS}" 
     
    565555  !insertmacro MUI_DESCRIPTION_TEXT ${VidaliaShortcuts} "$(VidaliaShortcutsDesc)" 
    566556 
    567   !insertmacro MUI_DESCRIPTION_TEXT ${Privoxy} "$(PrivoxyAppDesc)" 
    568   !insertmacro MUI_DESCRIPTION_TEXT ${PrivoxyGroup} "$(PrivoxyGroupDesc)" 
    569   !insertmacro MUI_DESCRIPTION_TEXT ${PrivoxyStartup} "$(PrivoxyStartupDesc)" 
    570   !insertmacro MUI_DESCRIPTION_TEXT ${PrivoxyShortcuts} "$(PrivoxyShortcutsDesc)" 
     557  !insertmacro MUI_DESCRIPTION_TEXT ${Polipo} "$(PolipoAppDesc)" 
     558  !insertmacro MUI_DESCRIPTION_TEXT ${PolipoGroup} "$(PolipoGroupDesc)" 
     559  !insertmacro MUI_DESCRIPTION_TEXT ${PolipoShortcuts} "$(PolipoShortcutsDesc)" 
    571560 
    572561  !insertmacro MUI_DESCRIPTION_TEXT ${Torbutton} "$(TorbuttonAppDesc)" 
     
    580569  !insertmacro MUI_DESCRIPTION_TEXT ${UninstallVidalia} "$(VidaliaUninstDesc)" 
    581570  !insertmacro MUI_DESCRIPTION_TEXT ${UninstallVidaliaAppData} "$(AppDataUninstDesc)" 
    582   !insertmacro MUI_DESCRIPTION_TEXT ${UninstallPrivoxy} "$(PrivoxyUninstDesc)" 
     571  !insertmacro MUI_DESCRIPTION_TEXT ${UninstallPolipo} "$(PolipoUninstDesc)" 
    583572!insertmacro MUI_UNFUNCTION_DESCRIPTION_END 
    584573