# HG changeset patch
# User herrick
# Date 1572534702 14400
# Node ID 920f6770d71c7865c77c57abc16bf2ae1d127ccf
# Parent 45bb0bebd36ff9e091555e3f86ac52bedc17fbc4
8233138 : Error 2343 when using --win-dir-chooser
Submitted-by: asemenyuk
Reviewed-by: aherrick, almatvee
diff -r 45bb0bebd36f -r 920f6770d71c src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WixSourcesBuilder.java
--- a/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WixSourcesBuilder.java Thu Oct 31 11:07:01 2019 -0400
+++ b/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WixSourcesBuilder.java Thu Oct 31 11:11:42 2019 -0400
@@ -409,10 +409,6 @@
for (var folder : defineShortcutFolders) {
Path path = folder.getPath(this);
componentIds.addAll(addRootBranch(xml, path));
-
- if (!KNOWN_DIRS.contains(path)) {
- componentIds.add(addDirectoryCleaner(xml, path));
- }
}
addComponentGroup(xml, "Shortcuts", componentIds);
diff -r 45bb0bebd36f -r 920f6770d71c src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/MsiInstallerStrings_en.wxl
--- a/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/MsiInstallerStrings_en.wxl Thu Oct 31 11:07:01 2019 -0400
+++ b/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/MsiInstallerStrings_en.wxl Thu Oct 31 11:11:42 2019 -0400
@@ -1,4 +1,4 @@
- The folder [APPLICATIONFOLDER] already exist. Would you like to install to that folder anyway?
+ The folder [INSTALLDIR] already exist. Would you like to install to that folder anyway?
diff -r 45bb0bebd36f -r 920f6770d71c src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/MsiInstallerStrings_ja.wxl
--- a/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/MsiInstallerStrings_ja.wxl Thu Oct 31 11:07:01 2019 -0400
+++ b/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/MsiInstallerStrings_ja.wxl Thu Oct 31 11:11:42 2019 -0400
@@ -1,4 +1,4 @@
- The folder [APPLICATIONFOLDER] already exist. Would you like to install to that folder anyway?
+ The folder [INSTALLDIR] already exist. Would you like to install to that folder anyway?
diff -r 45bb0bebd36f -r 920f6770d71c src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/MsiInstallerStrings_zh_CN.wxl
--- a/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/MsiInstallerStrings_zh_CN.wxl Thu Oct 31 11:07:01 2019 -0400
+++ b/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/MsiInstallerStrings_zh_CN.wxl Thu Oct 31 11:11:42 2019 -0400
@@ -1,4 +1,4 @@
- The folder [APPLICATIONFOLDER] already exist. Would you like to install to that folder anyway?
+ The folder [INSTALLDIR] already exist. Would you like to install to that folder anyway?
diff -r 45bb0bebd36f -r 920f6770d71c src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/main.wxs
--- a/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/main.wxs Thu Oct 31 11:07:01 2019 -0400
+++ b/src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/main.wxs Thu Oct 31 11:11:42 2019 -0400
@@ -53,7 +53,7 @@
-
+
1
diff -r 45bb0bebd36f -r 920f6770d71c src/jdk.jpackage/windows/native/libwixhelper/libwixhelper.cpp
--- a/src/jdk.jpackage/windows/native/libwixhelper/libwixhelper.cpp Thu Oct 31 11:07:01 2019 -0400
+++ b/src/jdk.jpackage/windows/native/libwixhelper/libwixhelper.cpp Thu Oct 31 11:11:42 2019 -0400
@@ -58,13 +58,13 @@
TCHAR *szValue = NULL;
DWORD cchSize = 0;
- UINT result = MsiGetProperty(hInstall, TEXT("APPLICATIONFOLDER"),
+ UINT result = MsiGetProperty(hInstall, TEXT("INSTALLDIR"),
TEXT(""), &cchSize);
if (result == ERROR_MORE_DATA) {
cchSize = cchSize + 1; // NULL termination
szValue = new TCHAR[cchSize];
if (szValue) {
- result = MsiGetProperty(hInstall, TEXT("APPLICATIONFOLDER"),
+ result = MsiGetProperty(hInstall, TEXT("INSTALLDIR"),
szValue, &cchSize);
} else {
return ERROR_INSTALL_FAILURE;