ARMGDDN Browser v4.1Final NSI script:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | !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:
Update.bat:
This just grabs the current config from the rclone remote BrowserUpdate which is also on the browser:
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