Adding additional files to an Inno based setup for a Netbeans application

泪湿孤枕 提交于 2019-12-02 01:21:47

问题


I am using Inno 5 Setup Installer in Netbeans to build my Java Swing application into an executable set up file. It creates an app.exe setup file with all the lib(all jar file) and app.jar.

So once user executes app.exe file, it create a folder at C:\users\username\local\appname which has the app.jar file and the libraries.

Is it possible to add additional text files in app.exe setup? so these text files will also be avaliable in "appname" folder when executed. These are required for the app to run.

Thanks for your time :)


回答1:


In Inno Setup there is a ScriptWizard which i recommend to use. After a few steps there comes this window:

NOTE: I use the application from Inno Setup. I got the Screenshot from there.

If you click on "Add files" you now can select your text file and it will be setup within your path.

If you don't want to use the wizard, you can add your additional files as entries in the [Files] section, like for instance:

[Files]
Source: "C:\path\to\your\text\file\you\want\to\add\to"; DestDir: "{app}"

Except listing one entry per file, you can add e.g. all files of a certain extension from a given directory.



来源:https://stackoverflow.com/questions/24937213/adding-additional-files-to-an-inno-based-setup-for-a-netbeans-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!