Changeset 3258
- Timestamp:
- 06/22/08 20:47:30 (5 months ago)
- Files:
-
- branches/b0_22_2/windows/msgcapture.nsi (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/b0_22_2/windows/msgcapture.nsi
r3149 r3258 93 93 # (this is the default behaviour). 94 94 # 95 # When the main POPFile installer (or the 'Add POPFile User' wizard) calls this utility, 96 # different header text is required so the installer (and wizard) use /TIMEOUT=PFI to 97 # inform the utility. 95 # When the main POPFile installer (or the 'Add POPFile User' wizard) calls this utility 96 # some different header text is required and the POPFile program has to be started with 97 # a special command-line option used only by the installer therefore the installer 98 # (and the 'Add POPFile User' wizard) use /TIMEOUT=PFI to inform the utility. 98 99 # 99 100 # Uppercase or lowercase can be used for the command-line switch. … … 118 119 ;-------------------------------------------------------------------------- 119 120 120 !define C_VERSION "0.1. 8"121 !define C_VERSION "0.1.9" 121 122 122 123 !define C_OUTFILE "msgcapture.exe" 123 124 ; The timeout (in seconds) used when a pre-0.23.0 version of the installer calls125 ; this utility to monitor the SQL database upgrade. Note: 30 seconds may not be126 ; long enough to cope with the upgrade of very large databases (over 100 MB) on127 ; some systems.128 129 !define C_INSTALLER_TIMEOUT 30130 124 131 125 ;-------------------------------------------------------------------------- … … 173 167 VIAddVersionKey "CompanyName" "The POPFile Project" 174 168 VIAddVersionKey "LegalTrademarks" "POPFile is a registered trademark of John Graham-Cumming" 175 VIAddVersionKey "LegalCopyright" "Copyright (c) ${C_BUILD_YEAR} John Graham-Cumming"169 VIAddVersionKey "LegalCopyright" "Copyright (c) ${C_BUILD_YEAR} John Graham-Cumming" 176 170 VIAddVersionKey "FileDescription" "PFI Message Capture Utility (0-99 sec timeout)" 177 171 VIAddVersionKey "FileVersion" "${C_VERSION}" … … 352 346 installer_mode: 353 347 StrCpy $G_MODE_FLAG "PFI" 354 StrCpy ${L_TEMP} ${C_INSTALLER_TIMEOUT}355 Goto exit356 348 357 349 default: … … 402 394 !define L_TEMP $R6 403 395 !define L_TRAYICON $R5 ; system tray icon enabled ("i" ) or disabled ("") flag 404 !define L_OPTIONS $R4 ; POPFile 0.23.0no longer displays startup messages by default396 !define L_OPTIONS $R4 ; POPFile 2.x no longer displays startup messages by default 405 397 ; so we use the --verbose option to turn them back on 406 398 … … 460 452 DetailPrint "POPFILE_USER = ${L_PFI_USER}" 461 453 462 ; Starting with the 0.23.0 release, POPFile no longer displays startup messages463 ; so we use the 'verbose' option to turn them on. Earlier POPFile releases do not464 ; recognize this option and will not run if it is used, so we use the Database.pm465 ; file as a simple POPFile version test (this file was first used in 0.23.0)466 467 454 ; This utility is called by the "Add POPFile User" wizard (adduser.exe) with the option 468 455 ; '/TIMEOUT=PFI' when the installer detects that an existing SQL database is to be upgraded. … … 471 458 ; these are the only indication that POPFile is still working. 472 459 ; 473 ; Since POPFile cannot be used during the upgrade and the installer cannot easily monitor 474 ; the progress of the upgrade, a new POPFile command-line option was added for the 0.23.0 475 ; release. 460 ; Starting with the 1.1.0 release, a new command-line option (--shutdown) causes POPFile 461 ; to shutdown after performing the upgrade so when monitoring a SQL database upgrade we 462 ; simply wait for POPFile to terminate (prior to the 1.1.0 release a less than satisfactory 463 ; 'one-size-fits-all' timeout was used instead). 476 464 ; 477 ; This new option (--shutdown) causes POPFile to shutdown after performing the upgrade so 478 ; when monitoring a SQL database upgrade we simply wait for POPFile to terminate (instead 479 ; of using a less than satisfactory 'one-size-fits-all' timeout). 465 ; Starting with the 2.x release, POPFile no longer displays startup messages 466 ; so we use the 'verbose' option to turn them on. Earlier POPFile releases do not 467 ; recognize this option and will not run if it is used, so we use the Database.pm 468 ; file as a simple POPFile version test (this file was first used in 2.x) 480 469 481 470 StrCpy ${L_OPTIONS} "" 482 IfFileExists "${L_PFI_ROOT}\POPFile\Database.pm" 0 look_for_exe471 IfFileExists "${L_PFI_ROOT}\POPFile\Database.pm" 0 check_mode 483 472 StrCpy ${L_OPTIONS} "--verbose" 473 474 check_mode: 484 475 StrCmp $G_MODE_FLAG "" look_for_exe 485 476