Commit 23c49331 authored by Romain Bioteau's avatar Romain Bioteau Committed by GitHub
Browse files

fix(installer) install dir must be empty (#1843)

Closes BST-276
parent eeb22af6
......@@ -8,4 +8,5 @@ install.license.desc=License file
request.key.explanation=Copy the license key below, log into Bonitasoft Customer Portal (https://customer.bonitasoft.com/license/request) and paste it in the License Request Key field.\nYou will receive your license file by email. Save it locally and come back to this installer.\n
install.license.title=Product license
workspace.setup=Workspace setup
not.enough.diskspace=You don't have enough disk space to install the application,\nplease select another installation directory.
\ No newline at end of file
not.enough.diskspace=You don't have enough disk space to install the application,\nplease select another installation directory.
installdir.must.be.empty.folder=Installation directory must be empty.
\ No newline at end of file
......@@ -493,20 +493,26 @@ ${installdir}/@mac.shortcut.name@/Contents/Eclipse/jre/Contents/Home/bin/java
<cliOptionName>prefix</cliOptionName>
<mustBeWritable>yes</mustBeWritable>
<mustExist>0</mustExist>
<validationActionList>
<throwError>
<text>${msg(not.enough.diskspace)}</text>
<ruleList>
<checkFreeDiskSpace>
<logic>less</logic>
<path>${installdir}</path>
<!-- ${required_diskspace} is automatically calculated by
InstallBuilder with all the files packed -->
<size>${required_diskspace}</size>
</checkFreeDiskSpace>
</ruleList>
</throwError>
</validationActionList>
<validationActionList>
<throwError>
<text>${msg(installdir.must.be.empty.folder)}</text>
<ruleList>
<fileTest path="${installdir}" condition="is_not_empty"/>
</ruleList>
</throwError>
<throwError>
<text>${msg(not.enough.diskspace)}</text>
<ruleList>
<checkFreeDiskSpace>
<logic>less</logic>
<path>${installdir}</path>
<!-- ${required_diskspace} is automatically calculated by
InstallBuilder with all the files packed -->
<size>${required_diskspace}</size>
</checkFreeDiskSpace>
</ruleList>
</throwError>
</validationActionList>
</directoryParameter>
</parameterList>
<preUninstallationActionList>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment