Windows installer: added CG, shortcut creation and download warnings.
This commit is contained in:
@@ -58,6 +58,13 @@ Section "Client" Client
|
|||||||
|
|
||||||
File /r "..\..\thirdparty\Tao\*.dll"
|
File /r "..\..\thirdparty\Tao\*.dll"
|
||||||
|
|
||||||
|
File "cg.dll"
|
||||||
|
File "cgGL.dll"
|
||||||
|
|
||||||
|
CreateDirectory "$SMPROGRAMS\OpenRA"
|
||||||
|
CreateShortCut "$SMPROGRAMS\OpenRA\OpenRA.lnk" $OUTDIR\OpenRA.Game.exe "" \
|
||||||
|
"$OUTDIR\OpenRA.ico" "" "" "" "OpenRA Client"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR\shaders"
|
SetOutPath "$INSTDIR\shaders"
|
||||||
File /r "..\..\shaders\*.fx"
|
File /r "..\..\shaders\*.fx"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
@@ -66,20 +73,33 @@ SectionGroup /e "Mods"
|
|||||||
Section "Red Alert" RA
|
Section "Red Alert" RA
|
||||||
SetOutPath "$INSTDIR\mods\ra"
|
SetOutPath "$INSTDIR\mods\ra"
|
||||||
File /r "..\..\mods\ra\*.*"
|
File /r "..\..\mods\ra\*.*"
|
||||||
|
MessageBox MB_YESNO "Setup will now download and install the Red Alert packages.$\n\
|
||||||
SetOutPath "$OUTDIR\packages"
|
The size of the download will be approximately 7MB in size.$\n\
|
||||||
NSISdl::download http://open-ra.org/packages/ra-packages.zip ra-packages.zip
|
If you do not wish to download them at this time, you can find instructions on how to\
|
||||||
ZipDLL::extractall "ra-packages.zip" "$OUTDIR"
|
download the packages in the INSTALL file found in the OpenRA program directory$\n$\n\
|
||||||
Delete ra-packages.zip
|
Continue?" IDYES download IDNO done
|
||||||
|
download:
|
||||||
|
SetOutPath "$OUTDIR\packages"
|
||||||
|
NSISdl::download http://open-ra.org/packages/ra-packages.zip ra-packages.zip
|
||||||
|
ZipDLL::extractall "ra-packages.zip" "$OUTDIR"
|
||||||
|
Delete ra-packages.zip
|
||||||
|
done:
|
||||||
SectionEnd
|
SectionEnd
|
||||||
Section "Command & Conquer" CNC
|
Section "Command & Conquer" CNC
|
||||||
SetOutPath "$INSTDIR\mods\cnc"
|
SetOutPath "$INSTDIR\mods\cnc"
|
||||||
File /r "..\..\mods\cnc\*.*"
|
File /r "..\..\mods\cnc\*.*"
|
||||||
|
|
||||||
SetOutPath "$OUTDIR\packages"
|
MessageBox MB_YESNO "Setup will now download and install the Command and Conquer packages.$\n\
|
||||||
NSISdl::download http://open-ra.org/packages/cnc-packages.zip cnc-packages.zip
|
The size of the download will be approximately 6MB in size.$\n\
|
||||||
ZipDLL::extractall "cnc-packages.zip" "$OUTDIR"
|
If you do not wish to download them at this time, you can find instructions on how to\
|
||||||
Delete cnc-packages.zip
|
download the packages in the INSTALL file found in the OpenRA program directory$\n$\n\
|
||||||
|
Continue?" IDYES download IDNO done
|
||||||
|
download:
|
||||||
|
SetOutPath "$OUTDIR\packages"
|
||||||
|
NSISdl::download http://open-ra.org/packages/cnc-packages.zip cnc-packages.zip
|
||||||
|
ZipDLL::extractall "cnc-packages.zip" "$OUTDIR"
|
||||||
|
Delete cnc-packages.zip
|
||||||
|
done:
|
||||||
SectionEnd
|
SectionEnd
|
||||||
Section "Red Alert: Aftermath" Aftermath
|
Section "Red Alert: Aftermath" Aftermath
|
||||||
SetOutPath "$INSTDIR\mods\aftermath"
|
SetOutPath "$INSTDIR\mods\aftermath"
|
||||||
@@ -94,6 +114,8 @@ SectionGroupEnd
|
|||||||
Section "Server" Server
|
Section "Server" Server
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
File "..\..\OpenRA.Server\bin\Debug\OpenRA.Server.exe"
|
File "..\..\OpenRA.Server\bin\Debug\OpenRA.Server.exe"
|
||||||
|
CreateShortCut "$SMPROGRAMS\OpenRA\OpenRA Server.lnk" "$OUTDIR\OpenRA.Server.exe" "" \
|
||||||
|
"" "" "" "" "OpenRA Server"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
;***************************
|
;***************************
|
||||||
@@ -120,6 +142,9 @@ Section "-Freetype" Freetype
|
|||||||
NSISdl::download http://downloads.sourceforge.net/project/gnuwin32/freetype/2.3.5-1/freetype-2.3.5-1-bin.zip freetype.zip
|
NSISdl::download http://downloads.sourceforge.net/project/gnuwin32/freetype/2.3.5-1/freetype-2.3.5-1-bin.zip freetype.zip
|
||||||
!insertmacro ZIPDLL_EXTRACT freetype.zip $OUTDIR bin\freetype6.dll
|
!insertmacro ZIPDLL_EXTRACT freetype.zip $OUTDIR bin\freetype6.dll
|
||||||
CopyFiles "$OUTDIR\bin\freetype6.dll" $INSTDIR
|
CopyFiles "$OUTDIR\bin\freetype6.dll" $INSTDIR
|
||||||
|
NSISdl::download http://www.zlib.net/zlib123-dll.zip zlib.zip
|
||||||
|
!insertmacro ZIPDLL_EXTRACT zlib.zip $OUTDIR zlib1.dll
|
||||||
|
CopyFiles "$OUTDIR\zlib1.dll" $INSTDIR
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
;***************************
|
;***************************
|
||||||
@@ -135,6 +160,8 @@ Section "-Uninstaller"
|
|||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "URLInfoAbout" "http://open-ra.org"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "URLInfoAbout" "http://open-ra.org"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "NoModify" "1"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "NoModify" "1"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "NoRepair" "1"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA" "NoRepair" "1"
|
||||||
|
CreateShortCut "$SMPROGRAMS\OpenRA\Uninstall.lnk" "$INSTDIR\uninstaller.exe" "" \
|
||||||
|
"" "" "" "" "Uninstall OpenRA"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Uninstall"
|
Section "Uninstall"
|
||||||
@@ -154,9 +181,9 @@ Section "Uninstall"
|
|||||||
Delete $INSTDIR\freetype6.dll
|
Delete $INSTDIR\freetype6.dll
|
||||||
Delete $INSTDIR\SDL.dll
|
Delete $INSTDIR\SDL.dll
|
||||||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA"
|
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA"
|
||||||
|
RMDir /r $SMPROGRAMS\OpenRA
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
|
||||||
;***************************
|
;***************************
|
||||||
;Section Descriptions
|
;Section Descriptions
|
||||||
;***************************
|
;***************************
|
||||||
@@ -199,8 +226,8 @@ Function .onSelChange
|
|||||||
SectionSetFlags ${RA_NG} ${SF_RO}
|
SectionSetFlags ${RA_NG} ${SF_RO}
|
||||||
Goto done
|
Goto done
|
||||||
selected:
|
selected:
|
||||||
SectionSetFlags ${Aftermath} ${SF_SELECTED}
|
SectionSetFlags ${Aftermath} 0
|
||||||
SectionSetFlags ${RA_NG} ${SF_SELECTED}
|
SectionSetFlags ${RA_NG} 0
|
||||||
Goto done
|
Goto done
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|||||||
Reference in New Issue
Block a user