|
From: <xue...@us...> - 2003-06-14 12:18:35
|
Update of /cvsroot/popfile/windows
In directory sc8-pr-cvs1:/tmp/cvs-serv24606
Modified Files:
installer.nsi
Log Message:
Handle read-only popfile.cfg and use explicit path when changing file attributes.
Index: installer.nsi
===================================================================
RCS file: /cvsroot/popfile/windows/installer.nsi,v
retrieving revision 1.61
retrieving revision 1.62
diff -C2 -d -r1.61 -r1.62
*** installer.nsi 12 Jun 2003 20:48:51 -0000 1.61
--- installer.nsi 14 Jun 2003 12:18:29 -0000 1.62
***************
*** 271,275 ****
$\r$\nOK to overwrite this file?$\r$\n$\r$\n\
Click 'Yes' to overwrite, click 'No' to skip updating this file" IDNO stopwords_done
! SetFileAttributes stopwords.default NORMAL
use_other_name:
--- 271,275 ----
$\r$\nOK to overwrite this file?$\r$\n$\r$\n\
Click 'Yes' to overwrite, click 'No' to skip updating this file" IDNO stopwords_done
! SetFileAttributes "$INSTDIR\stopwords.default" NORMAL
use_other_name:
***************
*** 283,291 ****
FileClose ${CFG}
IfFileExists "$INSTDIR\popfile.cfg" 0 update_config
IfFileExists "$INSTDIR\popfile.cfg.bak" 0 make_cfg_backup
MessageBox MB_YESNO "Backup copy of 'popfile.cfg' already exists ('popfile.cfg.bak').$\r$\n\
$\r$\nOK to overwrite this file?$\r$\n$\r$\n\
Click 'Yes' to overwrite, click 'No' to skip making a backup copy" IDNO update_config
! SetFileAttributes popfile.cfg.bak NORMAL
make_cfg_backup:
--- 283,292 ----
FileClose ${CFG}
IfFileExists "$INSTDIR\popfile.cfg" 0 update_config
+ SetFileAttributes "$INSTDIR\popfile.cfg" NORMAL
IfFileExists "$INSTDIR\popfile.cfg.bak" 0 make_cfg_backup
MessageBox MB_YESNO "Backup copy of 'popfile.cfg' already exists ('popfile.cfg.bak').$\r$\n\
$\r$\nOK to overwrite this file?$\r$\n$\r$\n\
Click 'Yes' to overwrite, click 'No' to skip making a backup copy" IDNO update_config
! SetFileAttributes "$INSTDIR\popfile.cfg.bak" NORMAL
make_cfg_backup:
|