Miguel
Miguel

Reputation: 73

Inno Setup not recognizing external file

In the process of deploying an app with Inno Setup I have to copy an external Access database (.accdb extension) from the same folder where the setup is located. If I try this in the [Files] section

Source: "{src}\FileName.accdb"; DestDir: "{app}"; Flags: external skipifsourcedoesntexist

the file never gets copied. However if I try for example

Source: "{src}\FileName.acc"; DestDir: "{app}"; Flags: external skipifsourcedoesntexist

after changing also the file extension, it gets copied correctly. This happens only when trying to copy an external file. Could it be a bug in Inno Setup that doesn't read the full file extension? Or am I doing something wrong? Any help would be very appreciated.

Upvotes: 0

Views: 1042

Answers (1)

Andrew Seaford
Andrew Seaford

Reputation: 644

You could try renaming the destination file using the DestName.

Source: "{src}\FileName.acc"; DestDir: "{app}"; DestName: "FileName.accdb"; Flags: external skipifsourcedoesntexist

Upvotes: 1

Related Questions