File tree 2 files changed +12
-1
lines changed
tooling/bundler/src/bundle/windows/templates
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}"
48
48
BrandingText " ${COPYRIGHT}"
49
49
OutFile " ${OUTFILE}"
50
50
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
+
51
57
VIProductVersion " ${VERSIONWITHBUILD}"
52
58
VIAddVersionKey " ProductName" " ${PRODUCTNAME}"
53
59
VIAddVersionKey " FileDescription" " ${SHORTDESCRIPTION}"
@@ -388,7 +394,7 @@ Function .onInit
388
394
389
395
!insertmacro SetContext
390
396
391
- ${If} $INSTDIR == " "
397
+ ${If} $INSTDIR == " ${PLACEHOLDER_INSTALL_DIR} "
392
398
; Set default install location
393
399
!if " ${INSTALLMODE}" == " perMachine"
394
400
${If} ${RunningX64}
You can’t perform that action at this time.
0 commit comments