Wall0p
Wall0p

Reputation: 233

Using Data Files in Install4j

I'm having trouble getting the downloadable data files to work in Install4j. Here's what I'm doing. I expected to see the "phony_license_web.txt" in the AppData\Programs\myprogram folder.

  1. Create a file "phony_license_web.txt" in Define Distribution Tree. It is added to the Default file set > Installation directory.
  2. Go to Media > Windows > Data files
  3. Specify a download URL "http://localhost/testsite". There is a file at http://localhost/testsite/phony_license_web.txt.
  4. Check "Save downloaded files on Install files.
  5. Build the project
  6. Test the installer

I tried a Download Installation Components action but removed it since the documentation said Install Files would do this automatically.

Thanks, Carl

Updated Test Case

  1. Create a data file "license_web.txt" under an IIS folder with directory browsing turned on. Going to http://localhost/components displays the file item. Clicking on the link brings up the text file.
  2. In the Installation Components, add an Installation Component "Data Files". Set the downloadable option. There are no files checked for this component.
  3. In Media > Windows > Wizard, select Data files and check the downloadable radio button. Enter http://localhost/components.
  4. Test the installer
  5. Verify that the data file license_web.txt does not appear anywhere in the installation directory (subfolder of AppData\Programs)

Upvotes: 2

Views: 271

Answers (1)

Ingo Kegel
Ingo Kegel

Reputation: 48005

Downloadable data files works with installation components, not with single files. You have to create an installation component on the

Files->Installation Components

step and mark it as downloadable. Then the compiler will create data files that you have to host on your web server under the specified URL.

Upvotes: 0

Related Questions