user3107762
user3107762

Reputation: 11

Install resources in a folder (img, icons) in Inno Setup

Does anyone know how to reference a folder (img, icons, ...) as resources in Inno Setup? My problem is when I install my application in another computer, the application doesn't know the path of my images. For example, a button with icon is shown without its icon.

Upvotes: 1

Views: 650

Answers (1)

Martin Prikryl
Martin Prikryl

Reputation: 202534

Install the resources to the same relative paths as you have them, when developing the application.

I.e. if you have file img/ico_charger.ico, install it like:

[Files]
Source: "c:\myproject\img\ico_charger.ico"; DestDir: "{app}/img"

Or you can install all files in the img folder at once:

[Files]
Source: "c:\myproject\img\*"; DestDir: "{app}/img"

For details see a documentation for the [Files] section.


And of course make sure your application uses relative paths when accessing the resources.

Upvotes: 2

Related Questions