Progress bar for Windows installer now goes all the way across the screen

Updated Installer TODO with other features


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@794 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
ghaushe
2003-02-21 16:15:35 +00:00
parent 173f2a0f50
commit 2b520fb451
2 changed files with 12 additions and 4 deletions
+5 -1
View File
@@ -1,4 +1,8 @@
Things stiill needing doing of rthe installer: Things stiill needing doing of rthe installer:
- untgz.dll doesn't support error checking yet - untgz.dll doesn't support error checking yet
- check md5 sums on downloaded files - check md5 sums on downloaded files
- the uninstaller doesn't seem to get everything - Read previous install directory from registry
- Allow users to choose mirror, rather than randomly choosing one
- Only read mirror file once, if only 1 is used.
- use uqm icon for the installer
+7 -3
View File
@@ -1,6 +1,8 @@
!define MUI_PRODUCT "The Ur-Quan Masters" ;Define your own software name here !define MUI_PRODUCT "The Ur-Quan Masters" ;Define your own software name here
!echo "Loading options.nsh file..."
!include "options.nsh" !include "options.nsh"
!echo "Loading content.nsh file..."
!include "content.nsh" !include "content.nsh"
; ***************** content ********************** ; ***************** content **********************
@@ -418,7 +420,7 @@ SubSectionEnd
Section $(SecMoveSaveName) SecMoveSave Section $(SecMoveSaveName) SecMoveSave
SectionIn 1 2 SectionIn 1 2
IfFileExists "$INSTDIR\content\starcon2.0*" +2 IfFileExists "$INSTDIR\content\starcon2.0*" +2
return goto MoveSaveEnd
ReadEnvStr $R0 "APPDATA" ReadEnvStr $R0 "APPDATA"
StrCmp $R0 "" 0 MoveSave StrCmp $R0 "" 0 MoveSave
ReadEnvStr $R0 "USERPROFILE" ReadEnvStr $R0 "USERPROFILE"
@@ -433,15 +435,16 @@ SectionIn 1 2
StrCpy $R0 "$R0\uqm\save" StrCpy $R0 "$R0\uqm\save"
IfFileExists "$R0\starcon2.0*" 0 MoveSaveContinue IfFileExists "$R0\starcon2.0*" 0 MoveSaveContinue
MessageBox MB_OK|MB_ICONEXCLAMATION $(MoveSaveAlreadyExists) MessageBox MB_OK|MB_ICONEXCLAMATION $(MoveSaveAlreadyExists)
return goto MoveSaveEnd
MoveSaveContinue: MoveSaveContinue:
CreateDirectory $R0 CreateDirectory $R0
ClearErrors ClearErrors
CopyFiles /FILESONLY "$INSTDIR\content\starcon2.0*" "$R0\" CopyFiles /FILESONLY "$INSTDIR\content\starcon2.0*" "$R0\"
IfErrors +3 IfErrors +3
Delete "$INSTDIR\content\starcon2.0*" Delete "$INSTDIR\content\starcon2.0*"
return goto MoveSaveEnd
MessageBox MB_OK|MB_ICONEXCLAMATION $(MoveSaveBadCopy) MessageBox MB_OK|MB_ICONEXCLAMATION $(MoveSaveBadCopy)
MoveSaveEnd:
SectionEnd SectionEnd
Section $(SecStartMenuName) SecStartMenu Section $(SecStartMenuName) SecStartMenu
@@ -655,6 +658,7 @@ Section "Uninstall"
Delete "$INSTDIR\ogg.dll" Delete "$INSTDIR\ogg.dll"
; Remove content dir ; Remove content dir
!echo "Adding 'Remove content' commands. Please wait..."
!verbose 3 !verbose 3
!insertmacro REMOVE_CONTENT !insertmacro REMOVE_CONTENT
!verbose 4 !verbose 4