-
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
Showing
4 changed files
with
84 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -495,3 +495,6 @@ windows-build/ | |
|
||
# Vim session files | ||
Session.vim | ||
|
||
# nonoInstaller | ||
nonoInstaller.exe |
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,81 @@ | ||
# nonoInstaller: The nonoSharp Windows installer | ||
|
||
!include "x64.nsh" | ||
!include "MUI2.nsh" | ||
|
||
Name "nonoSharp" | ||
Caption "nonoInstaller" | ||
Icon "InstallerIcon.ico" | ||
OutFile "nonoInstaller.exe" | ||
|
||
VIProductVersion "0.13.0.0" | ||
VIFileVersion "0.13.0.0" | ||
VIAddVersionKey "FileVersion" "0.13.0.0" | ||
VIAddVersionKey "LegalCopyright" "(c) moltony" | ||
VIAddVersionKey "FileDescription" "nonoSharp" | ||
|
||
InstallDir "$PROGRAMFILES64\nonoSharp" | ||
RequestExecutionLevel admin | ||
|
||
!define MUI_ABORTWARNING # Enable the abort warning | ||
!define MUI_ABORTWARNING_CANCEL_DEFAULT # Make "cancel" the default button in the abort warning dialog | ||
!define MUI_FINISHPAGE_NOAUTOCLOSE # Don't automatically skip to finish page after completing installation | ||
!define MUI_FINISHPAGE_RUN "$INSTDIR\nonoSharp.exe" # The executable to run if the "Run nonoSharp" checkbox is enabled | ||
!define MUI_FINISHPAGE_RUN_NOTCHECKED # Don't check the "Run nonoSharp" checkbox by default | ||
!define MUI_FINISHPAGE_NOREBOOTSUPPORT # Disable support for the page where you can reboot the system | ||
!define MUI_ICON "InstallerIcon.ico" | ||
|
||
!define MUI_WELCOMEPAGE_TITLE "Welcome to nonoInstaller!" | ||
!define MUI_WELCOMEPAGE_TEXT "This program will now install nonoSharp on your computer. Click the 'Next' button to continue." | ||
!define MUI_LICENSEPAGE_TEXT_TOP "Please review the license agreement." | ||
!define MUI_LICENSEPAGE_TEXT_BOTTOM "If you accept these terms, click the 'I Agree' button to continue. You have to accept the agreement to install nonoSharp." | ||
!define MUI_DIRECTORYPAGE_TEXT_TOP "nonoInstaller will install nonoSharp in this folder. If you want to install in a different folder, click the 'Browse' button and select a folder. When you're ready, click 'Install'." | ||
!define MUI_FINISHPAGE_TITLE "nonoSharp is now installed!" | ||
!define MUI_FINISHPAGE_TEXT "nonoSharp has been installed on your computer. Click on the 'Finish' button to exit nonoInstaller." | ||
!define MUI_ABORTWARNING_TEXT "Are you sure you want to cancel nonoSharp installation?" | ||
|
||
!insertmacro MUI_PAGE_WELCOME | ||
!insertmacro MUI_PAGE_LICENSE "LICENSE" | ||
!insertmacro MUI_PAGE_COMPONENTS | ||
!insertmacro MUI_PAGE_DIRECTORY | ||
!insertmacro MUI_PAGE_INSTFILES | ||
!insertmacro MUI_PAGE_FINISH | ||
|
||
!insertmacro MUI_UNPAGE_CONFIRM | ||
!insertmacro MUI_UNPAGE_INSTFILES | ||
!insertmacro MUI_UNPAGE_FINISH | ||
|
||
ShowInstDetails show | ||
|
||
Section "" | ||
# Write the display name and the uninstaller to the registry | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\nonoSharp" "DisplayName" "nonoSharp" | ||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\nonoSharp" "UninstallString" "$INSTDIR\nonoUninstall.exe" | ||
|
||
SetOutPath "$INSTDIR" | ||
WriteUninstaller "$INSTDIR\nonoUninstall.exe" | ||
SectionEnd | ||
|
||
Section "nonoSharp" InstallGame | ||
SectionIn RO # Make it so that this section is mandatory: cannot be disabled in the components page | ||
File /r "bin\Release\net8.0\win-x64\publish" | ||
SectionEnd | ||
|
||
Section "Desktop shortcut" DesktopShortcut | ||
CreateShortCut "$DESKTOP\nonoSharp.lnk" "$INSTDIR\nonoSharp.exe" "" "$INSTDIR/Icon.ico" | ||
SectionEnd | ||
|
||
UninstallText "Click 'Next' to uninstall nonoSharp." | ||
UninstallIcon "UninstallerIcon.ico" | ||
|
||
Section "Uninstall" | ||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\nonoSharp" | ||
RMDir "$INSTDIR" | ||
SectionEnd | ||
|
||
!insertmacro MUI_LANGUAGE "English" | ||
|
||
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN | ||
!insertmacro MUI_DESCRIPTION_TEXT ${InstallGame} "Installs nonoSharp (cannot be disabled!)" | ||
!insertmacro MUI_DESCRIPTION_TEXT ${DesktopShortcut} "Adds a shortcut to start nonoSharp on the desktop" | ||
!insertmacro MUI_FUNCTION_DESCRIPTION_END |