From a0849f94165605b3b6a15ca74e07195f2fef7797 Mon Sep 17 00:00:00 2001 From: Kono Tyran Date: Sat, 14 Aug 2021 16:56:54 -0700 Subject: [PATCH] fixed error if destination folder did not exist already. --- inno_setup_38.iss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inno_setup_38.iss b/inno_setup_38.iss index 6b059033..87626166 100644 --- a/inno_setup_38.iss +++ b/inno_setup_38.iss @@ -243,7 +243,8 @@ begin end; finally if( isJavaNeeded() ) then - UnZip(ExpandConstant('{tmp}')+'\java.zip',ExpandConstant('{app}')); + if(ForceDirectories(ExpandConstant('{app}'))) then + UnZip(ExpandConstant('{tmp}')+'\java.zip',ExpandConstant('{app}')); MinecraftDownloadPage.Hide; end; Result := True;