Search code examples
filedirectorydirectory-structureinstall4j

How to install particular folder from file set in startup action?


I want to install single folder which contains static data required in installer in STARTUP action how can I achieve this required behavior.In startup that folder should get installed in installation directory but single folder only not all of files.


Solution

  • When "Startup" actions are running, no files from the distribution tree are available.

    If you need files at that point, you have to add them to

    Installer->Custom Code & Resources

    then they will be available in the ${installer:sys.resourceDir} folder.

    If that is inconvenient, you have to move your actions after the "Install files" action, then the files from the distribution tree will be installed.