From 33e99efee90a82d2f320aa43fb0705073d89d6d8 Mon Sep 17 00:00:00 2001 From: jsalmon3 <> Date: Sat, 5 Apr 2003 22:03:36 +0000 Subject: [PATCH] Initial checkin of windows installer --- contrib/installer/Bitmap1.bmp | Bin 0 -> 358 bytes contrib/installer/Bitmap2.bmp | Bin 0 -> 358 bytes contrib/installer/freecraft-with-fcmp.nsi | 66 ++++++++++++++++++++++ contrib/installer/freecraft.ico | Bin 0 -> 766 bytes contrib/installer/freecraft.nsi | 54 ++++++++++++++++++ 5 files changed, 120 insertions(+) create mode 100644 contrib/installer/Bitmap1.bmp create mode 100644 contrib/installer/Bitmap2.bmp create mode 100644 contrib/installer/freecraft-with-fcmp.nsi create mode 100644 contrib/installer/freecraft.ico create mode 100644 contrib/installer/freecraft.nsi diff --git a/contrib/installer/Bitmap1.bmp b/contrib/installer/Bitmap1.bmp new file mode 100644 index 0000000000000000000000000000000000000000..b4228314f33522926347a8fd475e03c5d1160b29 GIT binary patch literal 358 zcmZ?rO=DyLgEAng0mLFu%*en37XJVwUvojQ0FVvBKYsjR;ONj`;D}IQ;P8-O;3xpn z3xNCz1qJ~F2?hZRpjZM>EJJ~TVS@n!#|)s!2Mib(P5|)@3!n)&0pp~J8=#Vm&6;k4 zP|oz`DTy-CU<sBAqh&JDyFY+9>=l-dNB7>l0AjmWXeCD9`~M!qE^pQnjDG+BKZLD< z#6}WFQtu8i=RQb1JH&jj#Vq9@dqctIGpK{yBMnl*z`#~vG|LUF1ju1jRtW%$;vxVF C6GZL+ literal 0 HcmV?d00001 diff --git a/contrib/installer/Bitmap2.bmp b/contrib/installer/Bitmap2.bmp new file mode 100644 index 0000000000000000000000000000000000000000..6b86e72ce1b382a8d96e24bffa7d5cdb175e6efb GIT binary patch literal 358 zcmZ?rO=DyLgEAng0mLFu%*en37XJVwUvojQ0FVvBKYsjR;NWNg;s^!-0Sh2q02EyS zq$_}Y10d}I#0fy00TkZ=q&tB00U$mB#5aH#C*YYhaRXG6(L&Qr2FjV<G)3l2G+2VA zxM|s$=-m%M9QF!LpQC&4T>!D&E3|T=@BM!dVwYQJ$wa^Z{~y9uk=YGrgT?=W#Ubk7 yf!OX4bMArI>=5(87PFLt><tB*&!7%+&uNen1_rj`rde)Kw=pm(n*>0FagYEl#zp@C literal 0 HcmV?d00001 diff --git a/contrib/installer/freecraft-with-fcmp.nsi b/contrib/installer/freecraft-with-fcmp.nsi new file mode 100644 index 000000000..6679bb6b6 --- /dev/null +++ b/contrib/installer/freecraft-with-fcmp.nsi @@ -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 + + diff --git a/contrib/installer/freecraft.ico b/contrib/installer/freecraft.ico new file mode 100644 index 0000000000000000000000000000000000000000..30f642b187d59d0701959a289a6be43c20fd90c1 GIT binary patch literal 766 zcmd6jFHgfz6vfZFCaa?DLPi}G69kK?Suzq7ssf8Dd4!~CI!G7{K^3WFsuqPn@eQzu ziK>195`sXGG?|4{_WExE&24UbfA_q1?&||Od~Dm`Tg8V03;^sfZRVI+^oxk7m0^?x zzi}MHvMeM?0@rl`%|M>#2*VJDVL%80&-0*Z8nP^dzBfXerf?jm;nFHs0|(Poc6T3G zJk~=GuYlfJy=B&?9JV>A5!5%lHGch@muq^#)d32>Q=pni?gkO=OUvRsBE&_5^~=T5 zk7R@T`!^%Pr+8y;*6&J1@$Fxh2=F%)>ebzoU&z|mYDI^9i|cbm&eq72Cv$6VNeA-2 z$+)RmolZ>ix#A&koJs<GkdGQXAGP%0P7E9Cb^l;{v*w-<3vtriPh)l5@UI5_i{c06 CMp3f> literal 0 HcmV?d00001 diff --git a/contrib/installer/freecraft.nsi b/contrib/installer/freecraft.nsi new file mode 100644 index 000000000..dea4a310c --- /dev/null +++ b/contrib/installer/freecraft.nsi @@ -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 + +