forked from medfreeman/RogueSquadron3DInstaller
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b9abc1
commit 10094cd
Showing
60 changed files
with
7,098 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
SOFTWARE LICENSE AND LIMITED WARRANTY | ||
|
||
PLEASE READ THIS LICENSE CAREFULLY BEFORE INSTALLING OR USING | ||
THE SOFTWARE. BY USING THE SOFTWARE, YOU ARE AGREEING TO BE | ||
BOUND BY THE TERMS OF THIS LICENSE. IF YOU DO NOT AGREE TO THE | ||
TERMS OF THIS LICENSE, DO NOT INSTALL OR USE THE SOFTWARE, | ||
DELETE THE SOFTWARE AND ALL RELATED FILES FROM YOUR COMPUTER, | ||
AND PROMPTLY RETURN THIS PACKAGE AND ITS CONTENTS TO THE PLACE | ||
OF PURCHASE FOR REFUND OF THE AMOUNT YOU PAID. | ||
|
||
The software, artwork, music, and other components included in | ||
this computer program (the "Software") are the copyrighted | ||
property of LucasArts Entertainment Company LLC and its | ||
licensors (collectively referred to as "LEC"). The Software is | ||
licensed (not sold) to you, and LEC owns all copyright, trade | ||
secret, patent and other proprietary rights in the Software. | ||
You may use the Software on a single computer. You may not: | ||
(1) copy (other than once for back-up purposes), distribute, | ||
rent, lease or sublicense all or any portion of the Software; | ||
(2) modify or prepare derivative works of the Software; | ||
(3) transmit the Software over a network, by telephone, or | ||
electronically using any means, except in the course of your | ||
network multi-player play of the Software; or | ||
(4) reverse engineer, decompile or disassemble the Software. You | ||
may transfer the Software, but only if the recipient agrees | ||
to accept the terms and conditions of this Agreement. | ||
|
||
If you transfer the Software, you must transfer all components | ||
and documentation and erase any copies residing on computer | ||
equipment. Your license is automatically terminated if you | ||
transfer the Software. | ||
|
||
LEC warrants to the original consumer purchaser that the media | ||
furnished in this product will be free from defects in mater- | ||
ials and workmanship under normal use for a period of ninety | ||
(90) days from the date of purchase (as evidenced by your | ||
receipt). If the media supplied as part of this product proves | ||
to be defective, and provided that the consumer purchaser | ||
returns the media to LEC in accordance with the instructions | ||
in this paragraph, LEC will replace the defective media: | ||
(a) free of charge to the consumer purchaser, if the media | ||
proves to be defective within the ninety (90) day period | ||
following the date of purchase, and | ||
(b) if the media proves to be defective after the expiration | ||
of the ninety (90) day warranty period, LEC will replace | ||
the defective media for a fee of $5.00 per Compact Disc. | ||
To obtain a replacement CD, please return the CD only, postage | ||
prepaid, to LEC, at the address below, accompanied by proof of | ||
date of purchase, a description of the defect, and your name | ||
and return address. | ||
|
||
To replace defective media after expiration of the warranty | ||
period, send the CD only, postage prepaid, to LEC at the add- | ||
ress below, enclosing proof of purchase, a description of the | ||
defect, your name and return address, and a check for $5.00 per | ||
Compact Disc. LEC will mail a replacement to you. | ||
|
||
You expressly acknowledge and agree that use of the Software | ||
is at your sole risk. Except for the limited ninety (90) day | ||
warranty on the media set forth above, the Software and any | ||
related documentation or materials are provided "AS IS" and | ||
without warranty of any kind. LEC EXPRESSLY DISCLAIMS ALL WAR- | ||
RANTIES, EXPRESS AND IMPLIED, INCLUDING, BUT NOT LIMITED TO, | ||
THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PAR- | ||
TICULAR PURPOSE AND NONINFRINGEMENT. LEC DOES NOT WARRANT THAT | ||
THE FUNCTIONS CONTAINED IN THE SOFTWARE WILL MEET YOUR REQUIRE- | ||
MENTS, OR THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTER- | ||
RUPTED OR ERROR-FREE, OR THAT DEFECTS IN THE SOFTWARE WILL BE | ||
CORRECTED. THE ENTIRE RISK AS TO THE RESULTS AND PERFORMANCE | ||
OF THE SOFTWARE IS ASSUMED BY YOU. SOME JURISDICTIONS DO NOT | ||
ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THE ABOVE EXCLU- | ||
SION MAY NOT APPLY TO YOU. | ||
|
||
UNDER NO CIRCUMSTANCES INCLUDING NEGLIGENCE SHALL LEC, OR ITS | ||
DIRECTORS, OFFICERS, EMPLOYEES OR AGENTS, BE LIABLE TO YOU FOR | ||
ANY INCIDENTAL, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS | ||
INTERRUPTION, LOSS OF BUSINESS INFORMATION, AND THE LIKE) | ||
ARISING OUT OF THE POSSESSION, USE, OR MALFUNCTION OF THIS | ||
PRODUCT, INCLUDING WITHOUT LIMITATION, DAMAGE TO PROPERTY AND, | ||
TO THE EXTENT PERMITTED BY LAW, DAMAGES FOR PERSONAL INJURY, | ||
EVEN IF LEC OR AN LEC AUTHORIZED REPRESENTATIVE HAS BEEN ADVISED | ||
OF THE POSSIBILITY OF SUCH DAMAGES OR LOSS. | ||
SOME JURISDICTIONS DO NOT ALLOW THE LIMITATION OR EXCLUSION OF | ||
LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE | ||
ABOVE LIMITATION OR EXCLUSION MAY NOT APPLY TO YOU. THIS | ||
WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS, AND YOU MAY HAVE | ||
OTHER RIGHTS DEPENDING ON THE LAWS IN YOUR STATE. | ||
|
||
YOU AGREE THAT THE LIABILITY OF LEC ARISING OUT OF ANY KIND OF | ||
LEGAL CLAIM (WHETHER IN CONTRACT, TORT, OR OTHERWISE) WILL NOT | ||
EXCEED THE AMOUNT YOU ORIGINALLY PAID FOR THE USE OF THIS | ||
PRODUCT. | ||
|
||
(c) Lucasfilm Ltd. & TM or (R) as indicated. | ||
(c) LucasArts Entertainment Company LLC. All rights reserved. | ||
Used under authorization. | ||
|
||
This is a work of fiction. All of the characters and events | ||
portrayed in this game are fictional. Any resemblance to real | ||
persons, living or dead, or actual events, is purely | ||
coincidental. | ||
|
||
LucasArts Entertainment Company | ||
P.O. Box 10307 | ||
San Rafael, CA 94912 | ||
|
||
Nothing already dead was harmed in the making of this game. |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
; Useful macros | ||
; UnselectSection GetParams FileCopy TrailingSlashHit | ||
!define UnselectSection `!insertmacro UnselectSection` | ||
|
||
; GetParams | ||
; input, none | ||
; output, top of stack (replaces, with e.g. whatever) | ||
; modifies no other variables. | ||
|
||
!macro GetParams | ||
Push $R0 | ||
Push $R1 | ||
Push $R2 | ||
Push $R3 | ||
|
||
StrCpy $R2 1 | ||
StrLen $R3 $CMDLINE | ||
|
||
;Check for quote or space | ||
StrCpy $R0 $CMDLINE $R2 | ||
StrCmp $R0 '"' 0 +3 | ||
StrCpy $R1 '"' | ||
Goto loop | ||
StrCpy $R1 " " | ||
|
||
loop: | ||
IntOp $R2 $R2 + 1 | ||
StrCpy $R0 $CMDLINE 1 $R2 | ||
StrCmp $R0 $R1 get | ||
StrCmp $R2 $R3 get | ||
Goto loop | ||
|
||
get: | ||
IntOp $R2 $R2 + 1 | ||
StrCpy $R0 $CMDLINE 1 $R2 | ||
StrCmp $R0 " " get | ||
StrCpy $R0 $CMDLINE "" $R2 | ||
|
||
Pop $R3 | ||
Pop $R2 | ||
Pop $R1 | ||
Exch $R0 | ||
!macroend | ||
!define GetParams `!insertmacro GetParams` | ||
|
||
;FileCopy (with renaming and directory creation) | ||
; input, sourcefile destfile norename | ||
; output, none | ||
; modifies no other variables. | ||
!macro FileCopy FilePath DestinationFilePath NoRename | ||
Push $R0 | ||
Push $R1 | ||
${GetParent} `${DestinationFilePath}` $R0 | ||
IfFileExists `$R0\*.*` +2 ;Directory exists already | ||
CreateDirectory `$R0` | ||
CopyFiles `${FilePath}` `$R0` | ||
IntCmp ${NoRename} 1 skiprename ; check if rename mode is enabled | ||
${GetFileName} `${FilePath}` $R1 | ||
rename `$R0\$R1` `${DestinationFilePath}` | ||
skiprename: | ||
Pop $R1 | ||
Pop $R0 | ||
!macroend | ||
!define FileCopy `!insertmacro FileCopy` | ||
|
||
;TrailingSlashHit | ||
; input, path | ||
; output, top of stack | ||
; modifies no other variables. | ||
!macro TrailingSlashHit Path | ||
Push $R0 | ||
Push $R1 | ||
StrCpy $R1 `${Path}` `` -1 ; this gets the last char | ||
StrCmp $R1 `\` 0 +2 ; check if last char is '\' | ||
StrCpy $R0 `${Path}` -1 ; last char was '\', remove it | ||
Pop $R1 | ||
Exch $R0 | ||
!macroend | ||
!define TrailingSlashHit `!insertmacro TrailingSlashHit` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
!include "LogicLib.nsh" | ||
|
||
Function RunningOnWine | ||
Push $R0 | ||
Push $R1 | ||
ClearErrors | ||
EnumRegKey $R1 HKCU "Software\Wine" 0 | ||
${If} ${Errors} ;key does not exist | ||
StrCpy $R0 0 | ||
${Else} | ||
StrCpy $R0 1 | ||
${EndIf} | ||
Pop $R1 | ||
Exch $R0 | ||
FunctionEnd | ||
|
||
Function GetnGlideVersion | ||
Push $R0 | ||
Push $R1 | ||
ClearErrors | ||
EnumRegKey $R1 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\nGlide" 0 | ||
${If} ${Errors} ;key does not exist | ||
StrCpy $R0 0 | ||
${Else} | ||
ReadRegStr $R1 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\nGlide" "DisplayVersion" | ||
${If} ${Errors} | ||
StrCpy $R0 0 | ||
${Else} | ||
StrCpy $R0 $R1 1 ; get the major version | ||
StrCpy $R1 $R1 2 2 ; get the minor version | ||
IntOp $R0 $R0 * 100 | ||
IntOp $R0 $R0 + $R1 | ||
${EndIf} | ||
${EndIf} | ||
Pop $R1 | ||
Exch $R0 | ||
FunctionEnd | ||
|
||
Function SetnGlideDefaults | ||
Push $R0 | ||
Call 64bitRegistrySet | ||
ClearErrors | ||
WriteRegStr HKCU "Software\Zeus Software\nGlide" "Aspect" "0" | ||
WriteRegStr HKCU "Software\Zeus Software\nGlide" "Gamma" "5" | ||
WriteRegStr HKCU "Software\Zeus Software\nGlide" "Refresh" "0" | ||
WriteRegStr HKCU "Software\Zeus Software\nGlide" "Resolution" "1" | ||
WriteRegStr HKCU "Software\Zeus Software\nGlide" "Splash" "0" | ||
WriteRegStr HKCU "Software\Zeus Software\nGlide" "Vsync" "1" | ||
Call 64bitRegistryUnset | ||
Pop $R0 | ||
FunctionEnd | ||
|
||
Function GetDXVersion | ||
Call 64bitRegistrySet | ||
|
||
Push $0 | ||
Push $1 | ||
|
||
ClearErrors | ||
ReadRegStr $0 HKLM "Software\Microsoft\DirectX" "Version" | ||
IfErrors noDirectX | ||
|
||
StrCpy $1 $0 2 5 ; get the minor version | ||
StrCpy $0 $0 2 2 ; get the major version | ||
IntOp $0 $0 * 100 ; $0 = major * 100 + minor | ||
IntOp $0 $0 + $1 | ||
Goto done | ||
|
||
noDirectX: | ||
StrCpy $0 0 | ||
|
||
done: | ||
Pop $1 | ||
Exch $0 | ||
|
||
Call 64bitRegistryUnset | ||
FunctionEnd | ||
|
||
; Create the shared function. | ||
!macro 64BITREGISTRY un | ||
Function ${un}64bitRegistrySet | ||
!include "x64.nsh" | ||
;64bit registry | ||
${If} ${RunningX64} | ||
SetRegView 64 | ||
${EndIf} | ||
FunctionEnd | ||
|
||
Function ${un}64bitRegistryUnset | ||
!include "x64.nsh" | ||
${If} ${RunningX64} | ||
SetRegView 32 | ||
${EndIf} | ||
FunctionEnd | ||
!macroend | ||
|
||
; Insert function as an installer and uninstaller function. | ||
!insertmacro 64BITREGISTRY "" | ||
!insertmacro 64BITREGISTRY "un." |
Oops, something went wrong.