Changeset 2491 for vidalia/trunk/pkg/win32/vidalia-bundle.nsi.in
- Timestamp:
- 04/05/08 23:12:12 (9 months ago)
- Files:
-
- 1 modified
-
vidalia/trunk/pkg/win32/vidalia-bundle.nsi.in (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vidalia/trunk/pkg/win32/vidalia-bundle.nsi.in
r2469 r2491 28 28 !define TOR_DESC "${TOR_NAME} ${TOR_APPVERSION}" 29 29 30 !define P RIVOXY_NAME "Privoxy"31 !define P RIVOXY_EXEC "privoxy.exe"32 !define P RIVOXY_APPVERSION "3.0.6"33 !define P RIVOXY_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}" 34 34 35 35 !define TORBUTTON_NAME "Torbutton" … … 166 166 File "Vidalia\${VIDALIA_APPVERSION}\LICENSE-OPENSSL" 167 167 File "Vidalia\${VIDALIA_APPVERSION}\CREDITS" 168 WriteIniStr "$INSTDIR\Vidalia\Vidalia Website.url" "InternetShortcut" "URL" "http://www.vidalia-project.net" 168 169 169 170 ; Include a prebuilt GeoIP cache … … 213 214 CreateShortCut "${SHORTCUTS}\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\${UNINSTALLER}" 0 214 215 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"217 216 CreateShortCut "${SHORTCUTS}\Vidalia Website.lnk" "$INSTDIR\Vidalia\Vidalia Website.url" 218 217 SectionEnd … … 321 320 322 321 ;-------------------------------- 323 ; P rivoxy324 var bInstallP rivoxy325 SectionGroup "${P RIVOXY_DESC}" PrivoxyGroup326 ;-------------------------------- 327 ; P rivoxyapplication binaries328 Section "${P RIVOXY_NAME}" Privoxy322 ; Polipo 323 var bInstallPolipo 324 SectionGroup "${POLIPO_DESC}" PolipoGroup 325 ;-------------------------------- 326 ; Polipo application binaries 327 Section "${POLIPO_NAME}" Polipo 329 328 SectionIn 1 2 330 329 ; 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/" 341 337 342 338 ; 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 349 361 SectionEnd 350 362 351 363 ;-------------------------------- 352 ; P rivoxyStart menu shortcuts353 Section "$(P rivoxyShortcuts)" PrivoxyShortcuts364 ; Polipo Start menu shortcuts 365 Section "$(PolipoShortcuts)" PolipoShortcuts 354 366 SectionIn 1 355 367 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" 377 373 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"' 378 379 SectionEnd 379 380 ;--------------------------------381 ; Run Privoxy at startup382 Section "$(PrivoxyStartup)" PrivoxyStartup383 SectionIn 1384 CreateShortCut "$SMSTARTUP\Privoxy.lnk" "$INSTDIR\Privoxy\privoxy.exe" "" "" 0 SW_SHOWMINIMIZED385 SectionEnd386 380 SectionGroupEnd 387 381 … … 440 434 run_vidalia: 441 435 Exec '"$INSTDIR\Vidalia\${VIDALIA_EXEC}"' 442 goto check_privoxy436 goto done 443 437 444 438 check_tor: 445 IntCmp $bInstallTor 1 run_tor check_p rivoxy check_privoxy439 IntCmp $bInstallTor 1 run_tor check_polipo check_polipo 446 440 run_tor: 447 441 Exec '"$INSTDIR\Tor\${TOR_EXEC}"' 448 449 check_p rivoxy:450 IntCmp $bInstallP rivoxy 1 run_privoxydone done451 run_p rivoxy:442 443 check_polipo: 444 IntCmp $bInstallPolipo 1 run_polipo done done 445 run_polipo: 452 446 SetOutPath "$INSTDIR\Privoxy" 453 ExecShell "" '"$INSTDIR\Privoxy\${PRIVOXY_EXEC}"' "" SW_SHOWMINIMIZED 447 Exec '"$INSTDIR\Polipo\${POLIPO_EXEC}" -c config' 448 454 449 done: 455 450 FunctionEnd … … 490 485 SectionGroupEnd 491 486 492 Section "un.P rivoxy ${PRIVOXY_APPVERSION}" UninstallPrivoxy487 Section "un.Polipo ${POLIPO_APPVERSION}" UninstallPolipo 493 488 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" 502 492 SectionEnd 503 493 … … 530 520 531 521 CheckVidaliaAppData: 532 IfFileExists "$APPDATA\Vidalia\*.*" CheckP rivoxy522 IfFileExists "$APPDATA\Vidalia\*.*" CheckPolipo 533 523 SectionGetFlags ${UninstallVidaliaAppData} $0 534 524 IntOp $0 $0 & ${SECTION_OFF} 535 525 SectionSetFlags ${UninstallVidaliaAppData} $0 536 526 537 CheckP rivoxy:538 IfFileExists "$INSTDIR\P rivoxy\*.*" Done539 SectionGetFlags ${UninstallP rivoxy} $0527 CheckPolipo: 528 IfFileExists "$INSTDIR\Polipo\*.*" Done 529 SectionGetFlags ${UninstallPolipo} $0 540 530 IntOp $0 $0 & ${SECTION_OFF} 541 SectionSetFlags ${UninstallP rivoxy} $0531 SectionSetFlags ${UninstallPolipo} $0 542 532 543 533 Done: … … 548 538 IfFileExists "$INSTDIR\Tor\*.*" DontRemoveTheUninstaller 549 539 IfFileExists "$INSTDIR\Vidalia\*.*" DontRemoveTheUninstaller 550 IfFileExists "$INSTDIR\P rivoxy\*.*" DontRemoveTheUninstaller540 IfFileExists "$INSTDIR\Polipo\*.*" DontRemoveTheUninstaller 551 541 RMDir /r "$INSTDIR" 552 542 RMDir /r "${SHORTCUTS}" … … 565 555 !insertmacro MUI_DESCRIPTION_TEXT ${VidaliaShortcuts} "$(VidaliaShortcutsDesc)" 566 556 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)" 571 560 572 561 !insertmacro MUI_DESCRIPTION_TEXT ${Torbutton} "$(TorbuttonAppDesc)" … … 580 569 !insertmacro MUI_DESCRIPTION_TEXT ${UninstallVidalia} "$(VidaliaUninstDesc)" 581 570 !insertmacro MUI_DESCRIPTION_TEXT ${UninstallVidaliaAppData} "$(AppDataUninstDesc)" 582 !insertmacro MUI_DESCRIPTION_TEXT ${UninstallP rivoxy} "$(PrivoxyUninstDesc)"571 !insertmacro MUI_DESCRIPTION_TEXT ${UninstallPolipo} "$(PolipoUninstDesc)" 583 572 !insertmacro MUI_UNFUNCTION_DESCRIPTION_END 584 573
