GitHub: https://github.com/pyhoon/automate-build-installer
Tested with B4J v10.5, Resource Hacker v5.1.8, InnoSetup 6.2.0
Clone from GitHub repo link above or download all attachments then rename the files without .txt extensions.
Put them inside \Objects folder (or your prefer path) of a B4J Windows desktop project.
Files:
Call the automate-build.bat script using Command Prompt or B4J Macro
Tested with B4J v10.5, Resource Hacker v5.1.8, InnoSetup 6.2.0
Clone from GitHub repo link above or download all attachments then rename the files without .txt extensions.
Put them inside \Objects folder (or your prefer path) of a B4J Windows desktop project.
Files:
- automate-build.bat (main script)
- Extract properties from B4J project (e.g #PackagerProperty: AssemblyVersion)
- Compile B4J project to JAR
- Inject B4J properties into packager.json
- Run B4JPackager11 to create standalone build directory
- Inject Custom Icon into Standalone EXE (Resource Hacker)
- Inject Custom Manifest (Resource Hacker)
- Inject Synced Version Info (Resource Hacker)
- Compile Inno Setup Installer
- app.manifest (for Resource Hacker)
- Similar to content in Manifest tab
- You can change the name, version and description
XML:<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"> <assemblyIdentity name="MyApp.exe" version="1.00.0.0" processorArchitecture="X86" type="win32"></assemblyIdentity> <description>Create using B4J</description> </assembly>
- version_template.rc (for Resource Hacker)
- Similar to content in Version Info tab
- packager.json (for B4JPackager11)
- Use for building standalone package
- installer.iss (for Inno Setup)
- Use for building Windows installer
Call the automate-build.bat script using Command Prompt or B4J Macro
B4X:
#Macro: Title, Build, ide://run?file=%PROJECT%\Objects\automate-build.bat
Attachments
Last edited: