|
From: <xue...@us...> - 2003-10-06 15:25:38
|
Update of /cvsroot/popfile/windows
In directory sc8-pr-cvs1:/tmp/cvs-serv22790
Modified Files:
installer.nsi
Log Message:
If corpus conversion is required, ensure console window is used after the Win9x/Kakasi reboot.
Index: installer.nsi
===================================================================
RCS file: /cvsroot/popfile/windows/installer.nsi,v
retrieving revision 1.127
retrieving revision 1.128
diff -C2 -d -r1.127 -r1.128
*** installer.nsi 6 Oct 2003 13:57:57 -0000 1.127
--- installer.nsi 6 Oct 2003 15:25:30 -0000 1.128
***************
*** 2074,2077 ****
--- 2074,2091 ----
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioC.ini" "Field 3" "Flags" "DISABLED"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioC.ini" "Field 4" "Flags" "DISABLED"
+
+ ; If we are upgrading POPFile, the corpus might have to be converted from flat file format
+
+ ReadINIStr ${L_TEMP} "$INSTDIR\backup\backup.ini" "FlatFileCorpus" "Status"
+ StrCmp ${L_TEMP} "new" 0 display_the_page
+ WriteINIStr "$INSTDIR\backup\backup.ini" "FlatFileCorpus" "Status" "old"
+
+ ; Corpus conversion will occur when POPFile is started - this may take several minutes,
+ ; so we ensure that POPFile will not be run in the background when it is run for the
+ ; first time (by using the Start Menu or by running 'popfile.exe').
+
+ !insertmacro MUI_INSTALLOPTIONS_WRITE "ioC.ini" "Inherited" "Console" "1"
+ Push "1"
+ Call SetConsoleMode
Goto display_the_page
|