File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
tooling/bundler/src/bundle/windows/templates Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' tauri-bundler ' : ' patch:enhance'
3+ ---
4+
5+ Append product name automatically when choosing a new install path using browse for nsis installer
Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ Name "${PRODUCTNAME}"
4848BrandingText " ${COPYRIGHT}"
4949OutFile " ${OUTFILE}"
5050
51+ ; We don't actually use this value as default install path,
52+ ; it's just for nsis to append the product name folder in the directory selector
53+ ; https://nsis.sourceforge.io/Reference/InstallDir
54+ !define PLACEHOLDER_INSTALL_DIR " placeholder\${PRODUCTNAME}"
55+ InstallDir " ${PLACEHOLDER_INSTALL_DIR}"
56+
5157VIProductVersion " ${VERSIONWITHBUILD}"
5258VIAddVersionKey " ProductName" " ${PRODUCTNAME}"
5359VIAddVersionKey " FileDescription" " ${SHORTDESCRIPTION}"
@@ -388,7 +394,7 @@ Function .onInit
388394
389395 !insertmacro SetContext
390396
391- ${If} $INSTDIR == " "
397+ ${If} $INSTDIR == " ${PLACEHOLDER_INSTALL_DIR} "
392398 ; Set default install location
393399 !if " ${INSTALLMODE}" == " perMachine"
394400 ${If} ${RunningX64}
You can’t perform that action at this time.
0 commit comments