B4J Question Inno Packager - Build Standalone Package

Marcos Alves

Well-Known Member
Licensed User
Longtime User
Hello,

I'm trying to generate a setup package using Inno Setup Compiler with the menu "Build Standalone Package" but without success. The resulting package created the app directory and runs fine in windows but doesn't copy the .exe file to "program files" directory .
I added the lines :
B4X:
#CustomBuildAction: After Packager, C:\Program Files (x86)\Inno Setup 6\Compil32.exe, /cc ../InstallerScript.iss
#PackagerProperty: IconFile = J:\B4J\goLunchStore\B4J\Files\golunch.ico
#PackagerProperty: ExeName = gestorDePedidos

And this is my iss script file:
B4X:
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "GestordePedidos"
#define MyAppVersion "1.5"
#define MyAppPublisher "Comten Cloud Technologies"
#define MyAppExeName "gestorDePedidos"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{02CC3C58-B9A8-8886-C656-D8523D12B696}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName={pf}\{#MyAppPublisher}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputDir=J:\B4J\goLunchStore\B4J\
Compression=lzma
SolidCompression=yes
SetupIconFile=J:\B4J\goLunchStore\B4J\Files\golunch.ico
ArchitecturesAllowed=x64
ArchitecturesInstallIn64BitMode=x64
OutputBaseFilename=Setup {#MyAppName}
UninstallDisplayIcon={app}\{#MyAppExeName}
VersionInfoVersion=1.0.0.0

[Languages]
Name: english; MessagesFile: compiler:Default.isl

[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked

[Files]
Source: J:\B4J\goLunchStore\B4J\Objects\temp\build; DestDir: {app}; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: {group}\{#MyAppName}; Filename: {app}\{#MyAppExeName}
Name: {commondesktop}\{#MyAppName}; Filename: {app}\{#MyAppExeName}; Tasks: desktopicon

[Run]
Filename: {app}\{#MyAppExeName}; Description: {cm:LaunchProgram,{#MyAppName}}; Flags: nowait postinstall skipifsilent

... but the exe file isn't copied into "program files" directory, despite there is no error message. What am I doing wrong?

Does anybody know? I'm really sttucked

Thanks!
 

Marcos Alves

Well-Known Member
Licensed User
Longtime User
UPDATE.

After some hours I found here:
J:\B4J\goLunchStore\B4J\Objects\temp\build

shoud be:
J:\B4J\goLunchStore\B4J\Objects\temp\build\* (missing * ) !!!! . thanks for all. I hope that this information could be valuable to somebody else to save some time.

Regards for the community!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…