Using Data Files in Install4j












3















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 AppDataProgramsmyprogram 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 AppDataPrograms)










share|improve this question





























    3















    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 AppDataProgramsmyprogram 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 AppDataPrograms)










    share|improve this question



























      3












      3








      3








      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 AppDataProgramsmyprogram 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 AppDataPrograms)










      share|improve this question
















      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 AppDataProgramsmyprogram 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 AppDataPrograms)







      install4j






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 23 '18 at 15:32







      TornadoFX Fan

















      asked Nov 19 '18 at 16:51









      TornadoFX FanTornadoFX Fan

      20615




      20615
























          1 Answer
          1






          active

          oldest

          votes


















          1














          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.






          share|improve this answer
























          • I forgot to mention that in after I added a File, I created an Installation Component with the download option.

            – TornadoFX Fan
            Nov 19 '18 at 22:11











          • Still, you don't host the file itself, but the produced data filed in the media output directory. The installer will download those files.

            – Ingo Kegel
            Nov 20 '18 at 9:27











          • Do I need to specify a file as the basis of the Installation Component or does the download URL use a directory index to grab everything?

            – TornadoFX Fan
            Nov 20 '18 at 16:23











          • On the "Data files" step of the media wizard you specify a URL to a directory. The download of the data files is done by the "Install files" action as required.

            – Ingo Kegel
            Nov 20 '18 at 21:58











          • I updated the test case. I don't understand where you specify what gets downloaded or if it's everything under the URL entered in "Data files". See my updated test procedure in the main question.

            – TornadoFX Fan
            Nov 23 '18 at 15:36











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53379293%2fusing-data-files-in-install4j%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          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.






          share|improve this answer
























          • I forgot to mention that in after I added a File, I created an Installation Component with the download option.

            – TornadoFX Fan
            Nov 19 '18 at 22:11











          • Still, you don't host the file itself, but the produced data filed in the media output directory. The installer will download those files.

            – Ingo Kegel
            Nov 20 '18 at 9:27











          • Do I need to specify a file as the basis of the Installation Component or does the download URL use a directory index to grab everything?

            – TornadoFX Fan
            Nov 20 '18 at 16:23











          • On the "Data files" step of the media wizard you specify a URL to a directory. The download of the data files is done by the "Install files" action as required.

            – Ingo Kegel
            Nov 20 '18 at 21:58











          • I updated the test case. I don't understand where you specify what gets downloaded or if it's everything under the URL entered in "Data files". See my updated test procedure in the main question.

            – TornadoFX Fan
            Nov 23 '18 at 15:36
















          1














          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.






          share|improve this answer
























          • I forgot to mention that in after I added a File, I created an Installation Component with the download option.

            – TornadoFX Fan
            Nov 19 '18 at 22:11











          • Still, you don't host the file itself, but the produced data filed in the media output directory. The installer will download those files.

            – Ingo Kegel
            Nov 20 '18 at 9:27











          • Do I need to specify a file as the basis of the Installation Component or does the download URL use a directory index to grab everything?

            – TornadoFX Fan
            Nov 20 '18 at 16:23











          • On the "Data files" step of the media wizard you specify a URL to a directory. The download of the data files is done by the "Install files" action as required.

            – Ingo Kegel
            Nov 20 '18 at 21:58











          • I updated the test case. I don't understand where you specify what gets downloaded or if it's everything under the URL entered in "Data files". See my updated test procedure in the main question.

            – TornadoFX Fan
            Nov 23 '18 at 15:36














          1












          1








          1







          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 19 '18 at 21:28









          Ingo KegelIngo Kegel

          34.4k75183




          34.4k75183













          • I forgot to mention that in after I added a File, I created an Installation Component with the download option.

            – TornadoFX Fan
            Nov 19 '18 at 22:11











          • Still, you don't host the file itself, but the produced data filed in the media output directory. The installer will download those files.

            – Ingo Kegel
            Nov 20 '18 at 9:27











          • Do I need to specify a file as the basis of the Installation Component or does the download URL use a directory index to grab everything?

            – TornadoFX Fan
            Nov 20 '18 at 16:23











          • On the "Data files" step of the media wizard you specify a URL to a directory. The download of the data files is done by the "Install files" action as required.

            – Ingo Kegel
            Nov 20 '18 at 21:58











          • I updated the test case. I don't understand where you specify what gets downloaded or if it's everything under the URL entered in "Data files". See my updated test procedure in the main question.

            – TornadoFX Fan
            Nov 23 '18 at 15:36



















          • I forgot to mention that in after I added a File, I created an Installation Component with the download option.

            – TornadoFX Fan
            Nov 19 '18 at 22:11











          • Still, you don't host the file itself, but the produced data filed in the media output directory. The installer will download those files.

            – Ingo Kegel
            Nov 20 '18 at 9:27











          • Do I need to specify a file as the basis of the Installation Component or does the download URL use a directory index to grab everything?

            – TornadoFX Fan
            Nov 20 '18 at 16:23











          • On the "Data files" step of the media wizard you specify a URL to a directory. The download of the data files is done by the "Install files" action as required.

            – Ingo Kegel
            Nov 20 '18 at 21:58











          • I updated the test case. I don't understand where you specify what gets downloaded or if it's everything under the URL entered in "Data files". See my updated test procedure in the main question.

            – TornadoFX Fan
            Nov 23 '18 at 15:36

















          I forgot to mention that in after I added a File, I created an Installation Component with the download option.

          – TornadoFX Fan
          Nov 19 '18 at 22:11





          I forgot to mention that in after I added a File, I created an Installation Component with the download option.

          – TornadoFX Fan
          Nov 19 '18 at 22:11













          Still, you don't host the file itself, but the produced data filed in the media output directory. The installer will download those files.

          – Ingo Kegel
          Nov 20 '18 at 9:27





          Still, you don't host the file itself, but the produced data filed in the media output directory. The installer will download those files.

          – Ingo Kegel
          Nov 20 '18 at 9:27













          Do I need to specify a file as the basis of the Installation Component or does the download URL use a directory index to grab everything?

          – TornadoFX Fan
          Nov 20 '18 at 16:23





          Do I need to specify a file as the basis of the Installation Component or does the download URL use a directory index to grab everything?

          – TornadoFX Fan
          Nov 20 '18 at 16:23













          On the "Data files" step of the media wizard you specify a URL to a directory. The download of the data files is done by the "Install files" action as required.

          – Ingo Kegel
          Nov 20 '18 at 21:58





          On the "Data files" step of the media wizard you specify a URL to a directory. The download of the data files is done by the "Install files" action as required.

          – Ingo Kegel
          Nov 20 '18 at 21:58













          I updated the test case. I don't understand where you specify what gets downloaded or if it's everything under the URL entered in "Data files". See my updated test procedure in the main question.

          – TornadoFX Fan
          Nov 23 '18 at 15:36





          I updated the test case. I don't understand where you specify what gets downloaded or if it's everything under the URL entered in "Data files". See my updated test procedure in the main question.

          – TornadoFX Fan
          Nov 23 '18 at 15:36


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53379293%2fusing-data-files-in-install4j%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents