-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create combined x86 and x64 Windows installer
- Loading branch information
1 parent
ee6ca14
commit ba30ed1
Showing
9 changed files
with
117 additions
and
84 deletions.
There are no files selected for viewing
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
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
Empty file.
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,12 @@ | ||
@ECHO OFF | ||
|
||
set SAUER_BIN=bin | ||
|
||
IF /I "%PROCESSOR_ARCHITECTURE%" == "amd64" ( | ||
set SAUER_BIN=bin64 | ||
) | ||
IF /I "%PROCESSOR_ARCHITEW6432%" == "amd64" ( | ||
set SAUER_BIN=bin64 | ||
) | ||
|
||
start %SAUER_BIN%\p1xbraten.exe "-q$HOME\My Games\Sauerbraten" -glog.txt %* |
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,67 @@ | ||
Name "p1xbraten" | ||
|
||
OutFile "..\..\p1xbraten_<git-dev>_setup.exe" | ||
|
||
InstallDir $PROGRAMFILES\Sauerbraten | ||
|
||
InstallDirRegKey HKLM "Software\p1xbraten" "Install_Dir" | ||
|
||
SetCompressor /SOLID lzma | ||
|
||
Page components | ||
DirText "Choose your Sauerbraten installation directory. p1xbraten will be installed in it alongside the original files." | ||
Page directory | ||
Page instfiles | ||
|
||
UninstPage uninstConfirm | ||
UninstPage instfiles | ||
|
||
Section "p1xbraten (required)" | ||
|
||
SectionIn RO | ||
|
||
SetOutPath $INSTDIR | ||
|
||
IfFileExists "$INSTDIR\sauerbraten.bat" VanillaFound VanillaNotFound | ||
VanillaNotFound: | ||
Abort "Vanilla Sauerbraten files not found in installation directory!" | ||
VanillaFound: | ||
|
||
File "/oname=bin\p1xbraten.exe" "..\..\bin\p1xbraten_x86.exe" | ||
File "/oname=bin64\p1xbraten.exe" "..\..\bin\p1xbraten_x64.exe" | ||
File "..\..\p1xbraten.bat" | ||
|
||
WriteRegStr HKLM SOFTWARE\p1xbraten "Install_Dir" "$INSTDIR" | ||
|
||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\p1xbraten" "DisplayName" "p1xbraten" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\p1xbraten" "UninstallString" '"$INSTDIR\uninstall_p1xbraten.exe"' | ||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\p1xbraten" "NoModify" 1 | ||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\p1xbraten" "NoRepair" 1 | ||
WriteUninstaller "uninstall_p1xbraten.exe" | ||
|
||
SectionEnd | ||
|
||
Section "Start Menu Shortcuts" | ||
|
||
CreateDirectory "$SMPROGRAMS\p1xbraten" | ||
|
||
SetOutPath "$INSTDIR" | ||
|
||
CreateShortCut "$INSTDIR\p1xbraten.lnk" "$INSTDIR\p1xbraten.bat" "" "$INSTDIR\bin\p1xbraten.exe" 0 SW_SHOWMINIMIZED | ||
CreateShortCut "$SMPROGRAMS\p1xbraten\p1xbraten.lnk" "$INSTDIR\p1xbraten.bat" "" "$INSTDIR\bin\p1xbraten.exe" 0 SW_SHOWMINIMIZED | ||
CreateShortCut "$SMPROGRAMS\p1xbraten\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 | ||
|
||
SectionEnd | ||
|
||
Section "Uninstall" | ||
|
||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\p1xbraten" | ||
DeleteRegKey HKLM SOFTWARE\p1xbraten | ||
|
||
RMDir /r "$SMPROGRAMS\p1xbraten" | ||
Delete "$INSTDIR\p1xbraten.lnk" | ||
Delete "$INSTDIR\p1xbraten.bat" | ||
Delete "$INSTDIR\bin\p1xbraten.exe" | ||
Delete "$INSTDIR\bin64\p1xbraten.exe" | ||
|
||
SectionEnd |
File renamed without changes.
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
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,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="BuildAll"> | ||
<Target Name="BuildAll"> | ||
<ItemGroup> | ||
<Configurations Include="Release"/> | ||
<Platforms Include="Win32;x64"/> | ||
<ConfigAndPlatform Include="@(Configurations)"> | ||
<Platform>%(Platforms.Identity)</Platform> | ||
</ConfigAndPlatform> | ||
</ItemGroup> | ||
<MSBuild Projects="p1xbraten.vcxproj" Targets="Build" | ||
Properties="Configuration=%(ConfigAndPlatform.Identity);Platform=%(ConfigAndPlatform.Platform)"/> | ||
</Target> | ||
</Project> |
This file was deleted.
Oops, something went wrong.