8235915: jpackage associations fail when there are spaces in file name or path

Reviewed-by: prr, asemenyuk, almatvee
This commit is contained in:
Andy Herrick 2019-12-17 09:02:13 -05:00
parent 3f865f4bf2
commit ee5777c700

View File

@ -477,7 +477,7 @@ class WixSourcesBuilder {
xml.writeStartElement("Verb");
xml.writeAttribute("Id", "open");
xml.writeAttribute("Command", "Open");
xml.writeAttribute("Argument", "%1");
xml.writeAttribute("Argument", "\"%1\"");
xml.writeAttribute("TargetFile", Id.File.of(fa.launcherPath));
xml.writeEndElement(); // <Verb>