Commit Graph

7 Commits

Author SHA1 Message Date
H. Peter Anvin
92ae33b1b3 nsis: use /solid compression for smaller size
Use /solid compression for smaller size.  By default nsis compresses
one file at a time (like .zip default), as opposed to the whole data
block (.tar.gz).  The latter gives significantly better compression,
so use it.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2017-04-07 11:05:09 -07:00
H. Peter Anvin
69c10c9692 nsis: show a warning message if we are not privileged
Apparently with newer versions of Windows, a program cannot
be forced-run as administrator without being signed.  Instead,
if we aren't administrator, show a message box rather than confusing
the user.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2017-04-06 22:33:04 -07:00
H. Peter Anvin
3d823faeea nsis: finally figure out how to get the proper install directory stuff...
I had fixed MultiUser.nsh, but it turns out that the builtin version
has higher priority, so we kept picking that one up...

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2017-04-06 21:17:13 -07:00
H. Peter Anvin
79570527b3 nsis: newer versions of NSIS uses \ for paths even on Unix
It seems that we have to use \ for paths on native Windows, and it
works on Unix as well, so just change all the paths accordingly.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2017-04-06 16:28:59 -07:00
Cyrill Gorcunov
a1461a5a89 nsis: Use Program Files (x86) directory for nasm installation on x86-64
https://bugzilla.nasm.us/show_bug.cgi?id=3392365

Reported-by: Mat <mberchtold@gmail.com>
Based-on-patch-by: Mat <mberchtold@gmail.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2016-10-23 16:27:48 +03:00
H. Peter Anvin
407166001c Fix building in a separate directory from the source code
The code to handle building in a separate directory had seriously
bitrotted.  This contains a number of fixes to make it possible,
including bits like the documentation which never worked in the past.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2016-05-16 20:30:09 -07:00
H. Peter Anvin
d4c67b1597 nsis: make nsis output automatically select architecture
Make the NSIS output automatically select the output architecture to
generate the proper filename and, much more importantly, set up the
proper default install directory.

This requires Perl as well as makensis to be present in order to make
an installer, but that doesn't really seem like a too onerous of a
requirement (NSIS being the big external dependency here.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2016-03-03 21:37:37 -08:00