]> sigrok.org Git - pulseview.git/blobdiff - contrib/pulseview_cross.nsi.in
Fix NSIS warning 7998
[pulseview.git] / contrib / pulseview_cross.nsi.in
index d8b9442fe020d038ed95df6b649236a588d9515f..e6b3c6db53fef07974c91896864baf951c0d4a69 100644 (file)
@@ -27,6 +27,9 @@
 # http://nsis.sourceforge.net/Docs/Modern%20UI%202/Readme.html
 #
 
+# Fix warning 7998: ANSI targets are deprecated
+Unicode True
+
 # Include the "Modern UI" header, which gives us the usual Windows look-n-feel.
 !include "MUI2.nsh"
 
@@ -43,7 +46,11 @@ Name "PulseView"
 OutFile "pulseview-@PV_VERSION_STRING@-installer.exe"
 
 # Where to install the application.
-InstallDir "$PROGRAMFILES\sigrok\PulseView"
+!ifdef PE64
+       InstallDir "$PROGRAMFILES64\sigrok\PulseView"
+!else
+       InstallDir "$PROGRAMFILES\sigrok\PulseView"
+!endif
 
 # Request admin privileges for Windows Vista and Windows 7.
 # http://nsis.sourceforge.net/Docs/Chapter4.html