Initial checkin of windows installer
This commit is contained in:
parent
4364eeb7ab
commit
33e99efee9
5 changed files with 120 additions and 0 deletions
BIN
contrib/installer/Bitmap1.bmp
Normal file
BIN
contrib/installer/Bitmap1.bmp
Normal file
Binary file not shown.
After ![]() (image error) Size: 358 B |
BIN
contrib/installer/Bitmap2.bmp
Normal file
BIN
contrib/installer/Bitmap2.bmp
Normal file
Binary file not shown.
After ![]() (image error) Size: 358 B |
66
contrib/installer/freecraft-with-fcmp.nsi
Normal file
66
contrib/installer/freecraft-with-fcmp.nsi
Normal file
|
@ -0,0 +1,66 @@
|
|||
; The name of the installer
|
||||
Name "FreeCraft"
|
||||
|
||||
OutFile "freecraft-030311-win32-with-fcmp.exe"
|
||||
Icon "freecraft.ico"
|
||||
|
||||
InstallDir $PROGRAMFILES\FreeCraft
|
||||
|
||||
DirText "FreeCraft will be installed to the specified location"
|
||||
|
||||
ComponentText "This will install FreeCraft. Select what you want installed."
|
||||
EnabledBitmap bitmap1.bmp
|
||||
DisabledBitmap bitmap2.bmp
|
||||
InstType "FcMP"
|
||||
InstType "WC2"
|
||||
InstType "Base Only"
|
||||
|
||||
; Base Files
|
||||
Section "Base (required)"
|
||||
SectionIn RO
|
||||
SetOutPath $INSTDIR
|
||||
File /r "C:\projects\freecraft-030311\*.*"
|
||||
WriteUninstaller $INSTDIR\uninst.exe
|
||||
SectionEnd
|
||||
|
||||
Section "Use FcMP Data"
|
||||
SectionIn 1
|
||||
StrCpy $1 "1"
|
||||
SetOutPath $INSTDIR
|
||||
File /r "C:\projects\freecraft\data"
|
||||
SectionEnd
|
||||
|
||||
Section "Use WC2 Data"
|
||||
SectionIn 2
|
||||
StrCpy $2 "2"
|
||||
SetOutPath $INSTDIR
|
||||
; Exec "command /c set cdrom=e:"
|
||||
; Exec $INSTDIR\build.bat
|
||||
MessageBox MB_OK "To use WC2 data:$\n\
|
||||
First edit build.bat, insert the WC2 CDRom, and then run build.bat."
|
||||
SectionEnd
|
||||
|
||||
Section "Start Menu Shortcuts"
|
||||
SectionIn 1
|
||||
SectionIn 2
|
||||
SectionIn 3
|
||||
CreateDirectory "$SMPROGRAMS\FreeCraft"
|
||||
StrCmp $1 "1" 0 NoFcMPShortcut
|
||||
CreateShortCut "$SMPROGRAMS\FreeCraft\FreeCraft (FcMP).lnk" "$INSTDIR\freecraft.exe" ""
|
||||
NoFcMPShortcut:
|
||||
StrCmp $2 "2" 0 NoWC2Shortcut
|
||||
CreateShortCut "$SMPROGRAMS\FreeCraft\FreeCraft (WC2).lnk" "$INSTDIR\freecraft.exe" "-d data.wc2"
|
||||
CreateShortCut "$SMPROGRAMS\FreeCraft\Edit build.bat.lnk" "notepad.exe" "$INSTDIR\build.bat"
|
||||
CreateShortCut "$SMPROGRAMS\FreeCraft\Run build.bat.lnk" "$INSTDIR\build.bat" ""
|
||||
NoWC2Shortcut:
|
||||
CreateShortCut "$SMPROGRAMS\FreeCraft\Uninstall FreeCraft.lnk" "$INSTDIR\uninst.exe" ""
|
||||
SectionEnd
|
||||
|
||||
Uninstalltext "This will uninstall FreeCraft."
|
||||
|
||||
Section "Uninstall"
|
||||
RMDir /r $SMPROGRAMS\FreeCraft
|
||||
RMDir /r $INSTDIR
|
||||
SectionEnd
|
||||
|
||||
|
BIN
contrib/installer/freecraft.ico
Normal file
BIN
contrib/installer/freecraft.ico
Normal file
Binary file not shown.
After (image error) Size: 766 B |
54
contrib/installer/freecraft.nsi
Normal file
54
contrib/installer/freecraft.nsi
Normal file
|
@ -0,0 +1,54 @@
|
|||
; The name of the installer
|
||||
Name "FreeCraft"
|
||||
|
||||
OutFile "freecraft-030311-win32.exe"
|
||||
Icon "freecraft.ico"
|
||||
|
||||
InstallDir $PROGRAMFILES\FreeCraft
|
||||
|
||||
DirText "FreeCraft will be installed to the specified location"
|
||||
|
||||
ComponentText "This will install FreeCraft. Select what you want installed."
|
||||
EnabledBitmap bitmap1.bmp
|
||||
DisabledBitmap bitmap2.bmp
|
||||
InstType "WC2"
|
||||
InstType "Base Only"
|
||||
|
||||
; Base Files
|
||||
Section "Base (required)"
|
||||
SectionIn RO
|
||||
SetOutPath $INSTDIR
|
||||
File /r "C:\projects\freecraft-030311\*.*"
|
||||
WriteUninstaller $INSTDIR\uninst.exe
|
||||
SectionEnd
|
||||
|
||||
Section "Use WC2 Data"
|
||||
SectionIn 1
|
||||
StrCpy $1 "1"
|
||||
SetOutPath $INSTDIR
|
||||
; Exec "command /c set cdrom=e:"
|
||||
; Exec $INSTDIR\build.bat
|
||||
MessageBox MB_OK "To use WC2 data:$\n\
|
||||
First edit build.bat, insert the WC2 CDRom, and then run build.bat."
|
||||
SectionEnd
|
||||
|
||||
Section "Start Menu Shortcuts"
|
||||
SectionIn 1
|
||||
SectionIn 2
|
||||
CreateDirectory "$SMPROGRAMS\FreeCraft"
|
||||
StrCmp $1 "1" 0 NoWC2Shortcut
|
||||
CreateShortCut "$SMPROGRAMS\FreeCraft\FreeCraft (WC2).lnk" "$INSTDIR\freecraft.exe" ""
|
||||
CreateShortCut "$SMPROGRAMS\FreeCraft\Edit build.bat.lnk" "notepad.exe" "$INSTDIR\build.bat" ""
|
||||
CreateShortCut "$SMPROGRAMS\FreeCraft\Run build.bat.lnk" "$INSTDIR\build.bat" ""
|
||||
NoWC2Shortcut:
|
||||
CreateShortCut "$SMPROGRAMS\FreeCraft\Uninstall FreeCraft.lnk" "$INSTDIR\uninst.exe" ""
|
||||
SectionEnd
|
||||
|
||||
Uninstalltext "This will uninstall FreeCraft."
|
||||
|
||||
Section "Uninstall"
|
||||
RMDir /r $SMPROGRAMS\FreeCraft
|
||||
RMDir /r $INSTDIR
|
||||
SectionEnd
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue