RO Installer Script (Inno Setup)

Tokeiburu

New member
Messages
202
Points
0
Location
Canada
cb06e314ce52a9c14ac0d25a61bcfd5e-5.png


File Name: RO Installer Script (Inno Setup)
File Submitter: Tokeiburu
File Submitted: 17 Aug 2015
File Category: Client Resources

Heya!

This 'release' is a very simple Inno Setup script to create Full or Lite client installers.

It requires Inno Setup, which can be downloaded here : http://www.jrsoftware.org/isdl.php#stable. While installing Inno Setup, make sure the "Install Inno Setup Preprocessor" option is checked; otherwise you will get an "unknown option" error.

How to make this work?
Put your client files in either RO_Lite or RO_Full and then run the "_Make New Installer.bat" files. This will output a new installer called "YourRO Installer.exe".

wTkQhwD.png


Customization

  • Server name : open RO.iss and change the first line : #define ServerName "YourRO"
  • The left image can be customized by editing background.bmp (or background.psd). The file format must remain a 24bit bmp.
  • The wizard small image uses wizardSmallImage.bmp; the file format must remain 24bit as well.
  • To add files to your installer, add them to the RO_Lite or RO_Full subfolders. Once you run the script, all the files in these folders will be packed in your installer. It can go over 2 GB, although if that's the case you might want to consider using the LZMA compression for your GRFs...!
  • Install the VC++ Redistributable files (required by Harmony) silently. Open RO.iss and remove the semi-colon in front of "#define Harmony" to enable this option.
  • By default, the necessary registry keys to start the game will be set if they aren't already. This is to avoid the "small window" issue people will have with older clients.
  • The installer icon can be changed via installer.ico
  • Uninstallating removes the entire RO folder, watch out (you can disable that).
The default installer icon used comes from Lykos's icon pack, which can be found here : https://rathena.org/board/files/file/3190-s1-lykos-icon-pack/. It has been modified through hexing to allow the icon to be resizable by Windows Vista or more recent.

Click here to download this file

 
Last edited by a moderator:
Wow, thanks, I was searching on how to make IS silently install VC redists.

 
You can set an executable will run as an administrator and compatibility mode (In the case that the Thor does not work the start button in Windows 8.1+ without it)

 
having problem with this error

Error in C:UsersAdministratorDesktopRO Installer ScriptRO.iss: Disk spanning must be enabled in order to create an installation larger than 2100000000 bytes in size.
how to fix this?

 
Cut down on the size of your files so the installer size doesn't go above that.

 
Open RO.iss and add following lines:
 

DiskSpanning = yesDiskSliceSize = 1600000000
After

WizardSmallImageFile=installer_square2.bmp
You should change DiskSliceSize to number you see more fitting. I set it to ~1.5GB. Just a warning: this will spawn several part installer:

- main installer file (.exe)

- parts of installer ( They are named the same as main installer file and have 1,2,3...n at the end of name, .bin)

Your players will need all parts and main installer file in one folder for it to work. Usually just pack them up in one zip and you're good to go.

 
Hi! I had the same error

 

Error in C:UsersAdministratorDesktopRO Installer ScriptRO.iss: Disk spanning must be enabled in order to create an installation larger than 2100000000 bytes in size.



Open RO.iss and add following lines:
 

DiskSpanning = yesDiskSliceSize = 1600000000


After

WizardSmallImageFile=installer_square2.bmp


You should change DiskSliceSize to number you see more fitting. I set it to ~1.5GB. Just a warning: this will spawn several part installer:

- main installer file (.exe)

- parts of installer ( They are named the same as main installer file and have 1,2,3...n at the end of name, .bin)

Your players will need all parts and main installer file in one folder for it to work. Usually just pack them up in one zip and you're good to go.
I tried doing the procedure as stipulated but the following lines were shown:

Error on line 25 in C:\Users\Andrew Palma\Desktop\One RO Patcher\RO INSTALLER\RO.iss: Value of [Setup] section directive "DiskSpanning" is invalid.
Compile aborted.

I typed in this

WizardSmallImageFile=wizardSmallImage.bmp
DiskSpanning=yesDiskSliceSize=1600000000

Please Help

 
Q: В конфиге инны задаю значок для выходного файла. Так вот, при достижении, как я понял, определённого размера упаковываемых файлов около 350 мб значок остаётся стандартный виндовый.

A: Если ваш setup.exe составлено более чем несколько сотен мегабайт, Windows Explorer может показать стандартный значек файла вместо установленного вами. Кроме того, при просмотре свойств файла вкладка "Версия" может отсутствовать.
Это не ошибка Inno Setup. На самом деле проблема заключается в API Explorer используемых для извлечения иконок и сведений о версии.
Проблему возможно решить, включив разбиение пакета установки на несколько файлов с помощью директивы DiskSpanning=yes. При этом данные будут вынесены в один или несколько файлов .bin в зависимоти от настройки DiskSliceSize и размера исходных файлов, а сама программа установки будет занимать малый объём, который Windows Explorerу под силу корректно обработать.
Код, демонстрирующий использование DiskSpanning:DiskSpanning=yes

 
Back
Top