|
@@ -48,6 +48,12 @@ Name "${PRODUCTNAME}"
|
|
|
BrandingText "${COPYRIGHT}"
|
|
|
OutFile "${OUTFILE}"
|
|
|
|
|
|
+; We don't actually use this value as default install path,
|
|
|
+; it's just for nsis to append the product name folder in the directory selector
|
|
|
+; https://nsis.sourceforge.io/Reference/InstallDir
|
|
|
+!define PLACEHOLDER_INSTALL_DIR "placeholder\${PRODUCTNAME}"
|
|
|
+InstallDir "${PLACEHOLDER_INSTALL_DIR}"
|
|
|
+
|
|
|
VIProductVersion "${VERSIONWITHBUILD}"
|
|
|
VIAddVersionKey "ProductName" "${PRODUCTNAME}"
|
|
|
VIAddVersionKey "FileDescription" "${SHORTDESCRIPTION}"
|
|
@@ -388,7 +394,7 @@ Function .onInit
|
|
|
|
|
|
!insertmacro SetContext
|
|
|
|
|
|
- ${If} $INSTDIR == ""
|
|
|
+ ${If} $INSTDIR == "${PLACEHOLDER_INSTALL_DIR}"
|
|
|
; Set default install location
|
|
|
!if "${INSTALLMODE}" == "perMachine"
|
|
|
${If} ${RunningX64}
|