InstallAware problem with Delphi 2010

1.3k views Asked by At

I am trying to create an installation disk with InstallAware Express for my Delphi 2010 application. I have selected (checked)

  • CodeGear Database Express12
  • CodeGear Visual Component Library 12

for Application Runtime.

When I try to build it, I will get an error message

Error during build: No files matching pattern "C:\Windows\system32\*120.bpl"

The message will go away if I un-check the above runtime but of coz the program will not run. Can someone please tell me what I am doing wrong?

Also... I have use their scan file button to scan the dependent files base on my application.exe and installaware put a list of files in the $TARGETDIR$, should I leave them there or I am suppose to move them to various folder (e.g. some of the files are from the windows\system32 directory...)

Thanks a lot.

3

There are 3 answers

0
Ken White On BEST ANSWER

You can manually add the files.

To find out which VCL packages your application uses, open the project in the IDE. Use the menu item Project->Build project to rebuild your entire application, and then use Project->Information to view the information dialog. The list of packages actually required by (and therefore needing to be distributed with) your application are listed there.

Where to install them on the destination system depends on why you're using packages in the first place. If you're using runtime packages simply to reduce the download size for your users, and the packages will only be used by this single application, put them in the same folder as your application ($TARGETDIR$). If you're using them because you've got several different applications, and they'll all be installed in different locations but use the same runtime packages, install them in the System32 folder ($SYSDIR$, if I remember correctly).

InnoSetup works fine with runtime packages manually added, btw, especially if you use the excellent (and also free) ISTool IDE. (Not affiliated in any way; just a happy customer.)

4
Lex Li On

Did you have Delphi 2010 installed on this machine? If so, you should see several bpl files under C:\Windows\system32 folder.

3
mj2008 On

FWIW, one of the great things about Delphi is that you can pretty much install on any system without worry if you turn off the "build with packages" option. This would eliminate the need for these files, and solve your problem, and also make the application more robust against updates and changes. IMO packages are only needed if you are building multi-module applications which are more advanced, and in that case you wouldn't want to be using any Express installer.