get rid of the "jpackaged" file from the NSIS installer, that's only created after a config migration inside the jpackage now

This commit is contained in:
idk
2022-09-20 12:35:59 -04:00
parent 20240c9e75
commit 58e1276072

View File

@ -67,9 +67,13 @@ public class CopyConfigDir extends WindowsServiceUtil {
return false;
if (1 == cnr) {
logger.info("using jpackaged configs in a jpackaged install, creating jpackaged file");
File jpackagedConfigsInUse = new File(AppImageHome(), "jpackaged");
File jpackagedConfigsInUse = new File(appImageHome(), "jpackaged");
if (!jpackagedConfigsInUse.exists()){
jpackagedConfigsInUse.createNewFile();
try{
jpackagedConfigsInUse.createNewFile();
}catch(IOException e){
logger.warning("Error creating jpackaged file, delete config files manually when uninstalling");
}
}
}
if (-1 == cnr) {