From 69c595fdb8086ed5c66366a8c6c7c7e3f84fbf0f Mon Sep 17 00:00:00 2001 From: ispyisail Date: Sun, 26 Jul 2026 22:41:44 +1200 Subject: [PATCH] Windows installer: pass the data directories to the .qet file association The MSI registers both shortcuts with the arguments QET needs to find its data ("Point directly to qelectrotech.exe with all required arguments"), but the QElectroTech.Document\shell\open\command registry value was written without them: "[INSTALLDIR]bin\qelectrotech.exe" "%1" Launching from the Start Menu therefore works, while double-clicking a .qet file does not: Explorer sets the working directory to the document's folder, and the compiled-in data paths are relative, so nothing is found there. The most visible symptom is the interface always coming up in French, because no translation loads and the source strings are French. Give the file association the same arguments as the shortcuts. Reported by mr-rfh in #554, who diagnosed it and arrived at exactly this registry value by hand. --- build-aux/windows/QElectroTech.wxs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build-aux/windows/QElectroTech.wxs b/build-aux/windows/QElectroTech.wxs index 7b0d97a18..00614b98f 100644 --- a/build-aux/windows/QElectroTech.wxs +++ b/build-aux/windows/QElectroTech.wxs @@ -97,8 +97,13 @@ + + Value=""[INSTALLDIR]bin\qelectrotech.exe" --common-elements-dir="[INSTALLDIR]elements/" --common-tbt-dir="[INSTALLDIR]titleblocks/" --lang-dir="[INSTALLDIR]lang/" $(var.QtPlatformArgs) "%1"" />