It's not finished but I started it ages ago and never finished it, I just wondered if someone would benefit from it and/or further its development.
Anyone can have a go and keep it as theirs.
I've attached files so that you can open an AInstall setup file (*.ais) and compile an installer immediately to see how it works.
In the Example.zip file is a folder called 'Notabilis', it contains a notepad-like program I created recently, it will be the program that we create an installer file for. Extract the zip file to the C:\ drive so that you have C:\Notabilis\ (AInstall uses hard paths for creating an installer)
Now extract the AInstall.zip file to anywhere on your computer and run AInstall\AInstall.au3 (runs on both AutoIt v188.8.131.52 and v184.108.40.206). Choose File>Open and browse to C:\Notabilis\Notabilis.ais then click Open.
Now choose Tools>Compile & Run and the installer will be compiled, once it starts you can do a test install, (this installer doesn't write any registry entries so can be deleted easily), and you can see that the result is pretty streamlined. The resulting (standalone I might add, all files are embedded) file will be at 'C:\Notabilis\Setup\Notabilis_Setup.exe' if you feel like running the installer manually.
Example.zip (498.9K) Number of downloads:
AInstall.zip (254.1K) Number of downloads:
Detailed Notes: - You don't need to understand this to try out AInstall.
In AInstall\ you'll notice three related files: GUI.au3, MakeGen.au3 and GenScript.au3
- You use this to edit the way the compiled installer will look.
- You can run this file directly to 'try out' the installer without installing anything.
- You'll notice a bunch of "#=" and "##=" lines, see MakeGen.au3 below
- This processes GUI.au3 to create GenScript.au3, which is used by AInstall to create the resulting compiled installer.
- #= lines in GUI.au3 are inserted into GenScript.au3 but do not execute when GUI.au3 is running.
- ##= lines in GUI.au3 are inserted into GenScript.au3 exactly as they appear, for things like deciding whether the resulting Installer requires a EULA.
Edited by RazerM, 31 May 2009 - 11:41 PM.