-
Notifications
You must be signed in to change notification settings - Fork 17
Installer
The installer project files are located in the /Installer/ directory.
The primary file containing the project is StealthbotInstaller.wip, a binary file.
Supporting files including splash screen images, the banner, system components/dependencies, and merge modules are also located here. Some files, those included in the installation directory that are NOT exe's, are referenced directly out of trunk. This includes Warden.dll and associated files, BNCSutil, the EULA, and the default profile files.
To open the installer project, you need a very old piece of software, Microsoft Visual Studio Installer 1.1. Microsoft has removed all of the official downloads for this, so the only place I've found it is on Archive.org.
https://web.archive.org/web/20080513102621/http://msdn.microsoft.com/en-us/vstudio/aa718352.aspx
Install this, and you should be able to open the WIP file with it.
Most of the work to be done here involves the "File System" section, where you can control which files get installed where. There are 4 controllable locations:
- Application Folder - the install directory, usually C:\Program Files (x86)\StealthBot 2.7
- User's Desktop - the desktop directory of the user installing the program
- User's Start Menu - the start menu of the user installing the program
- Windows System Folder - system32 or SysWOW64, depending on the architecture
In order to not get any missing file errors, you need to have the following structure. If "trunk" is located at /dev/sb/repo/trunk then you must have a "Compile" folder at /dev/sb/Compile The StealthBot v2.7.exe and Launcher.exe that you want compiled into the installer must be in this location. You can control this location by manually modifying your Bot.vbp and Launcher.vbp files and setting the "Path32" option.
System files are stored in /Installer/Components. This is not automatic, so if you add or remove a file you have to also add or remove it from the installer project's "Windows System Folder" section.
Warden.dll requires the Microsoft Visual C Runtime to be installed. This is done through Merge Modules. The modules used in this project are stored in the /Installer/Modules directory.
To compile the project, first make sure the version numbers align with the release. To do this, go to Project -> StealthBotInstaller Properties. On the product information tab, make sure the "Version" field has the correct version and build number. Example: 2.7.1.489. You must also update the "product code" for each new release. DO NOT CHANGE THE UPGRADE CODE! More on the product and upgrade codes can be found here.
Once all of this is done, check each of the install locations for any wayward files, and make sure there are no files with paths unique to your system (they should all be relative to the repo, not absolute to Program Files, System32, or anywhere else). Also make sure there are no critically pending tasks (identified by an ! in the left-most column in the task list).
Finally, go to the Build Menu -> Rebuild to build the installer project. This may take some time. The compiled MSI will be placed in the compile directory under DISK_1.
Please test the installer on both your own machine (as an upgrade) and a clean machine (if possible - use a VM if you have to) before releasing it.