Reputation: 11
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
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