Okay, made this work but the ContactsMgt.iss, see below I replaced what
I had yesterday with a new one. The only issue is it installed into the
Program Files (x86) directory instead of the root directory C:\Contacts Mgt\
The variable {autopf} for the DefaultDirName means C:\Program Files (x86)\
I assume. Next, I'm going to remove the {autopf} from the line in [Setup]
DefaultDirName={autopf}\Contacts Mgt with just
DefaultDirName=\Contacts Mgt and see if that works...
Also, the Uninstall.iss created by this script uninstalled everything in the Program Files (x86) directory, cool!
I'm testing Inno Setup Compiler on a simple Contact Mgt. app. I programmed learning Lazarus awhile back. Just for a test I wanted to setup Inno to be able to install the ContactsMgt.exe in the root C: into a created directory called Contacts Management. Then install the data files, i.e. nine files Contacts.dbf, Categories.dbf, Countries.dbf, STProvCodes.dbf and their *.mdx and one memo file *.dbt into a created subdirectory under Contacts Management directory called Data. See the sample ContactsMgt.iss below I'm toying with.
; -- ContactsMgt.iss --
; Copy ContactsMgt.exe, DataBase Schema and also create the application icon.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING THE .ISS SCRIPT FILES!
; Install the ContacsMgt.exe, ContactsMgt.ico into the folder C:\Contacts
; Mgt\ and the data files into C:\Contacts Mgt\Data\
[Setup]
AppName=Contacts Management
AppVersion=2.0
WizardStyle=modern
DefaultDirName={autopf}\Contacts Mgt
DefaultGroupName=Contacts Mangement
UninstallDisplayIcon={app}\ContactsMgt.exe
Compression=lzma2
SolidCompression=yes
; Install into root\Contacts Mgt
;OutputDir=Install-Setup:Contacts Mgt Output
[Files]
Source: "ContactsMgt.exe"; DestDir: "{app}"
Source: "ContactsMgt.ico"; DestDir: "{app}"
; Source: "ContactsMgt.chm"; DestDir: "{app}"
; Source: {userappdata}; DestDir: "{app}\data\"
Source: "Data\Contacts.dbf"; DestDir: "{app}\Data\"
Source: "Data\Contacts.mdx"; DestDir: "{app}\Data\"
Source: "Data\Contacts.dbt"; DestDir: "{app}\data\"
Source: "Data\Categories.dbf"; DestDir: "{app}\data\"
Source: "Data\Categories.mdx"; DestDir: "{app}\data\"
Source: "Data\Countries.dbf"; DestDir: "{app}\data\"
Source: "Data\Countries.mdx"; DestDir: "{app}\data\"
Source: "Data\STProvCodes.dbf"; DestDir: "{app}\data\"
Source: "Data\STProvCodes.mdx"; DestDir: "{app}\data\"
[Icons]
Name: "{group}\Contacts"; Filename: "{app}\ContactsMgt.ico"