ARMGDDN Browser v4.1Final NSI script:

!include "MUI.nsh"
!define MUI_ABORTWARNING
Unicode true
!include "MUI2.nsh"
!define PRODUCT_NAME "ARMGDDN Browser"
!define PRODUCT_VERSION "v4.1Final"
!define PRODUCT_PUBLISHER "ARMGDDN Games"
!define PRODUCT_WEB_SITE "https://t.me/ARMGDDNGames"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
!define MUI_ICON "D:\ARMGDDN Repacks\setup.ico"
!define MUI_UNICON "D:\ARMGDDN Repacks\setup.ico"
BrandingText "ARMGDDN Games"
  !insertmacro MUI_PAGE_WELCOME
var ICONS_GROUP
!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "${PRODUCT_NAME}"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_TEXT "Launch ARMGDDN Browser"
!define MUI_FINISHPAGE_RUN_FUNCTION Start1
Function Start1
  ExecShell "" "$INSTDIR\ARMGDDNBrowser.cmd"
FunctionEnd
  !insertmacro MUI_PAGE_FINISH
  !insertmacro MUI_UNPAGE_INSTFILES
  !insertmacro MUI_LANGUAGE "English"
  !insertmacro MUI_LANGUAGE "French"
  !insertmacro MUI_LANGUAGE "German"
  !insertmacro MUI_LANGUAGE "Portuguese"
  !insertmacro MUI_LANGUAGE "Russian"
  !insertmacro MUI_LANGUAGE "Spanish"
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "C:\Users\KaladinDMP\Desktop\ARMGDDN Browser.exe"
InstallDir "C:\ARMGDDN Browser"
ShowInstDetails show
ShowUnInstDetails show
Function .onInstFailed
        ExecWait "$INSTDIR\uninst.exe /S /SD"
        Abort
FunctionEnd
Section "MainSection" SEC01
SetShellVarContext all
SetOverwrite on
SetOutPath "$INSTDIR"
${IfNot} ${FileExists} `$INSTDIR\*.*`
    Abort "Failed to create Installation Directory. Aborting"
${EndIf}
WriteUninstaller "$INSTDIR\uninst.exe"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\msvcp140.dll"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\opengl32sw.dll"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\Qt5Core.dll"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\setup.ico"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\Qt5Gui.dll"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\Qt5Network.dll"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\Qt5Widgets.dll"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\Qt5WinExtras.dll"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\rclone.conf"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\rclone.exe"
  SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\update.bat"
  SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\update.conf"
  SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\ARMGDDNBrowser.cmd"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\RcloneBrowser.exe"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\RcloneBrowser.ini"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\vcruntime140.dll"
 SetOverwrite on
 SetOutPath "$INSTDIR"
  File "E:\SHTUFF\ARMGDDN Browser\vcruntime140_1.dll"
 SetOverwrite on
 SetOutPath "$INSTDIR\platforms"
  File "E:\SHTUFF\ARMGDDN Browser\platforms\qwindows.dll"
 SetOutPath "$INSTDIR"
  File "D:\ARMGDDN Repacks\setup.ico"
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
  CreateShortCut "$DESKTOP\ARMGDDN Browser.lnk" "$INSTDIR\ARMGDDNBrowser.cmd" "" "$INSTDIR\setup.ico"
SetOutPath "$INSTDIR"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\ARMGDDN Browser.lnk" "$INSTDIR\ARMGDDNBrowser.cmd" "" "$INSTDIR\setup.ico"
  !insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section -AdditionalIcons
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
   WriteIniStr "$INSTDIR\ARMGDDN Telegram.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\ARMGDDN Telegram.lnk" "$INSTDIR\ARMGDDN Telegram.url" "" "$INSTDIR\setup.ico"
  CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" "$INSTDIR\uninst.exe"
SetOutPath "$INSTDIR"
  !insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section -Post
  WriteUninstaller "$INSTDIR\uninst.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\setup.ico"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
SectionEnd
Function un.onUninstSuccess
  HideWindow
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer." /SD IDOK
FunctionEnd
Function un.onInit
 !insertmacro MUI_UNGETLANGUAGE
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components ? " /SD IDYES IDYES +2
  Abort
FunctionEnd
Section Uninstall
SetShellVarContext all
!insertmacro MUI_STARTMENU_GETFOLDER "Application" $ICONS_GROUP
  Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
  Delete "$SMPROGRAMS\$ICONS_GROUP\ARMGDDN Telegram.lnk"
  Delete "$SMPROGRAMS\$ICONS_GROUP\ARMGDDN Browser.lnk"  
  Delete "$INSTDIR\ARMGDDN Telegram.url"
  Delete "$INSTDIR\update.bat"
  Delete "$INSTDIR\setup.ico"
  Delete "$INSTDIR\update.conf"
  Delete "$INSTDIR\ARMGDDNBrowser.cmd"
  Delete "$INSTDIR\uninst.exe"
  Delete "$INSTDIR\setup.ico"
  Delete "$INSTDIR\msvcp140.dll"
  Delete "$INSTDIR\opengl32sw.dll"
  Delete "$INSTDIR\Qt5Core.dll"
  Delete "$INSTDIR\Qt5Gui.dll"
  Delete "$INSTDIR\Qt5Network.dll"
  Delete "$INSTDIR\Qt5Widgets.dll"
  Delete "$INSTDIR\Qt5WinExtras.dll"
  Delete "$INSTDIR\rclone.conf"
  Delete "$INSTDIR\rclone.exe"
  Delete "$INSTDIR\RcloneBrowser.exe"
  Delete "$INSTDIR\RcloneBrowser.ini"
  Delete "$INSTDIR\vcruntime140.dll"
  Delete "$INSTDIR\vcruntime140_1.dll"
  Delete "$INSTDIR\platforms\qwindows.dll"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR"
  RMDir "$INSTDIR\platforms"
!insertmacro MUI_STARTMENU_GETFOLDER "Application" $ICONS_GROUP
  Delete "$DESKTOP\ARMGDDN Browser.lnk"
  Delete "$SMPROGRAMS\$ICONS_GROUP\ARMGDDN Browser.lnk"
  Delete "$SMPROGRAMS\ARMGDDN Browser\Uninstall.lnk"
  Delete "$SMPROGRAMS\ARMGDDN Browser\Website.lnk"
  Delete "$DESKTOP\ARMGDDN Browser.lnk"
  Delete "$SMPROGRAMS\ARMGDDN Browser\ARMGDDN Browser.lnk"
  Delete "$INSTDIR\*.* "
  RMDir "$SMPROGRAMS\$ICONS_GROUP"
  RMDir "$INSTDIR\*.* "
  RMDir "$INSTDIR"
  RMDir "C:\ARMGDDN Browser"
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
  SetAutoClose true
SectionEnd
Function .onInit
  !insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd



ARMGDDNBrowser.cmd:

This launches the update bat which updates the config AND launches the browser. Using the desktop shortcut or the start menu shortcut points to the cmd:

@echo off
start "" /MIN /D "%~dp0" cmd /c "update.bat & start "" /WAIT "RcloneBrowser.exe""



Update.bat:

This just grabs the current config from the rclone remote BrowserUpdate which is also on the browser:

@echo off
echo                            _____ __________    _____    ________________  ________    _______   
echo                           /  _  \\______   \  /     \  /  _____/\______ \ \______ \MP \      \  
echo                          /  /_\  \^|       _/ /  \ /  \/   \  ___ ^|    ^|  \ ^|    ^|  \  /   ^|  echo                         /    ^|    \    ^|   \/    Y    \    \_\  \^|    `   \^|    `   \/    ^|   echo                         \____^|__  /____^|_  /\____^|__  /\______  /_______  /_______  /\____^|__  /
echo                                 \/       \/         \/        \/        \/        \/         \/ 
echo.

setlocal enabledelayedexpansion

rem Set the source file path in the remote storage
set source_path="BrowserUpdate:rclone.conf"

rem Set the destination path to the same directory as the batch file
set "destination_path=%~dp0"

rem Run the rclone command to copy the rclone.conf file
rclone copy %source_path% "%destination_path%\" --config update.conf

endlocal



NOTE:

For some reason when using the ARMGDDNBrowser.cmd to launch the browser and update at once the bat file freezes after updating, showing the ARMGDDN ascii art. Closing the update.bat has no ill effects or it will close automatically once you close the browser. Its doing nothing, just cant get it to close for whatever reason. Any change i made that had it close stopped the update.bat from working at all or failed to ALSO launch the browser. Its a little suspicious so i attempted to fix it to no avail. Its not harmful though and this in part (also some claims from some jackass that our installer is malicious) prompted me to post this.




Files that are different from the "stock" rclone browser:

  • removed (not sure what some of them do but no ill effects from removing so why have them):
    • bearer folder | ???
    • bearer/qgenericbearer.dll | ???
    • styles folder | ???
    • styles/qwindowsvistastyle.dll | ???
    • Licenses.txt | general info about allowed uses of rclone browser blah blah
    • Changelog.md | info about the changes from the github
    • qt.conf | ???
    • Readme.md | info about rclone browser from the github
    • unins000.dat | info about the install to help uninstall
    • unins000.exe | the uninstaller for the stock rclone browser
  • added:
    • ARMGDDN Telegram.url | link to our telgram
    • ARMGDDNBrowser.cmd | what our shortcuts point to, updates and launches the browser
    • rclone.conf | the encrypted config that connects you to our remotes, what makes it ARMGDDN Browser instead of Rclone Browser
    • RcloneBrowser.ini | what makes the browser "portable" and saves the settings that work best for our needs
    • setup.ico | the icon for our shortcuts and browser installer
    • uninst.exe | the uninstaller for our ARMGDDN Browser installer
    • update.bat | the bat that updates the config automatically, the .cmd points to this
    • update.conf | the remote that the update.bat uses to update the config
  • added + customized:
    • rclone.exe | compiled from the official source. Main changes, Removed "config" and several other commands to help keep our config and mirror info safe from most users. Hardcoded the password to the two configs, rclone.conf and update.conf , so that rclone browser will show the remotes without decrypting the config or asking for the password.



Potentially you could "make" the ARMGDDN browser very easily from a stock rclone browser as long as you had our custom rclone.exe and our config but i think the changes i made are positive and help update or otherwise facilitate the change from a personal program to view your own remotes to a program used to share pirated material. Some people haven't liked these changes or don't understand them, so the purpose of this pastebin is to be as translucent as possible about our changes and the reasons for them. We will not cater to anyone, if you don't trust our Browser installer why trust our repack installers? Just move on. No disrespect intended - just keep it movin'

<3 Always

The owners of ARMGDDN - DeliciousMeatPop, George Jefferson, and the rest of the AG Staff and Family




Any questions or concerns feel free to reach out to me on telegram, either in our channel or slide into my DMs

Edit
Pub: 08 Jun 2023 02:37 UTC
Edit: 07 Jul 2023 02:47 UTC
Views: 10739