[英]How can I use Ant & InnoSetup to place a directory at installation for JavaFX
I am working on bundling an application as an EXE using INNO SETUP. 我正在使用INNO SETUP将应用程序捆绑为EXE。 I have it working, except for one thing. 除了一件事,我有工作。
My project structure looks like this: 我的项目结构如下:
src
->package
->java classes
properties
->properties file
The properties file (from external vendor), needs to be placed in a specific location - and I am not sure how to generate this with ANT and INNO. 属性文件(来自外部供应商)需要放置在特定位置-我不确定如何使用ANT和INNO生成此文件。
The resulting file structure needs to look like this 生成的文件结构需要如下所示
app folder
->exe
runtime
app
->libs
properties
->server.properties
app.cfg
app.jar
I am not really sure how to accomplish this. 我不太确定如何做到这一点。
Thanks! 谢谢!
I think using the [Files]
section with Source
and DestDir
might work out here. 我认为将[Files]
部分与Source
和DestDir
可能会在这里解决。
There are two (or even more) ways to do this: 有两种(甚至更多种)方法可以做到这一点:
You may prepare the directory structure beforehand with ant
. 您可以使用ant
预先准备目录结构。 That means you create the folder structure present after installation utilizing ant
on your machine and tell Innosetup to include all files and folders and just extract them. 这意味着您可以在安装后利用计算机上的ant
创建存在的文件夹结构,并告诉Innosetup包括所有文件和文件夹,然后将它们解压缩。
[Files]
Source: "x:\app folder\*"; DestDir: "{app}";
Or you work with your project folder structure and tell Innosetup to include your files from their specific locations in the project and copy them to specific destination directories. 或者您使用项目文件夹结构,并告诉Innosetup将文件从其特定位置包含在项目中,然后将其复制到特定的目标目录。
[Files]
Source: "x:\project\properties\properties.xml"; DestDir: "{app}\app\properties\";
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.