Bug 21813 - update nsis package to 3.x to support cross compiling Windows installer compatible with Windows 10
Summary: update nsis package to 3.x to support cross compiling Windows installer compa...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA6-32-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2017-10-07 07:05 CEST by Gilles Caulier
Modified: 2017-10-30 20:24 CET (History)
4 users (show)

See Also:
Source RPM: mingw-nsis-2.50-2.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Gilles Caulier 2017-10-07 07:05:34 CEST
Description of problem:

Current NSIS Windows installer is 2.5 under Mageia6

This Windows installer can be use with MinGW cross compiler to build Windows installer under Linux. for example digiKam is fully cross compiled under Linux with MXE and at end an installer is build with NSIS from the host system.  

The current NSIS version provided by Mageia is an older one (2.5.x) which crash violently Windows 10 when installer is executer on target computer. This do not happen with Windows 7 or 8.

https://bugs.kde.org/show_bug.cgi?id=385368

Since NSIS 3.0, Windows 10 is fully supported as explained in release notes : 

http://nsis.sourceforge.net/News

Please update Mageia6 NSIS package to last 3.x release.
Comment 1 Marja Van Waes 2017-10-07 16:09:46 CEST
Assigning to the registered maintainer of mingw-nsis, CC'ing daviddavid

Assignee: bugsquad => mageia
Source RPM: (none) => mingw-nsis
CC: (none) => geiger.david68210, marja11

Comment 2 David GEIGER 2017-10-07 23:19:03 CEST
Done! mingw-nsis updated to 3.01 release on Cauldron and also on mga6/Core/Updates_testing repo.

Please test it, thanks in advance.
Comment 3 Gilles Caulier 2017-10-07 23:43:30 CEST
Excelent. I will test this tomorrow morning. Thanks

Gilles Caulier
Comment 4 Gilles Caulier 2017-10-08 07:18:45 CEST
Your new NSIS 3.01 package work as expected :


---------- Strip symbols in binary files


---------- Build NSIS installer

Command line defined: "VERSION=5.8.0"
Command line defined: "BUNDLEPATH=/home/gilles/Documents/GIT/5.x/project/bundles/mxe/temp"
Command line defined: "TARGETARCH=32"
Command line defined: "OUTPUT=/home/gilles/Documents/GIT/5.x/project/bundles/mxe/bundle/digiKam-5.8.0-01-Win32.exe"
Processing config: /etc/nsisconf.nsh
Processing script file: "./digikam.nsi" (UTF8)

Processed 1 file, writing output (x86-ansi):

Output: "/home/gilles/Documents/GIT/5.x/project/bundles/mxe/bundle/digiKam-5.8.0-01-Win32.exe"
Install: 7 pages (448 bytes), 1 section (32792 bytes), 5887 instructions (164836 bytes), 6078 strings (200622 bytes), 56 language tables (18928 bytes).
Uninstall: 4 pages (320 bytes), 1 section (32792 bytes), 228 instructions (6384 bytes), 2622 strings (77087 bytes), 56 language tables (14896 bytes).
Datablock optimizer saved 18362 KiB (~1.5%).

Using lzma (compress whole) compression.

EXE header size:              197632 / 76288 bytes
Install code:                          (393514 bytes)
Install data:                          (1222732454 bytes)
Uninstall code+data:                   (522493 bytes)
Compressed data:           275742873 / 1223648461 bytes
CRC (0x34DE2D41):                  4 / 4 bytes

Total size:                275940509 / 1223724753 bytes (22.5%)

Gilles Caulier
Comment 5 David GEIGER 2017-10-10 23:30:01 CEST
Assigning to QA,


Advisory:
========================

Current NSIS Windows installer is 2.50 under Mageia6.

This Windows installer can be use with MinGW cross compiler to build Windows installer under Linux. for example digiKam is fully cross compiled under Linux with MXE and at end an installer is build with NSIS from the host system.  

The current NSIS version provided by Mageia is an older one (2.5.x) which crash violently Windows 10 when installer is executer on target computer. This do not happen with Windows 7 or 8.

https://bugs.kde.org/show_bug.cgi?id=385368

Since NSIS 3.xx, Windows 10 is fully supported as explained in release notes : 

http://nsis.sourceforge.net/News

========================

Packages in 6/core/updates_testing:
========================
mingw32-nsis-3.01-1.mga6.i586.rpm
mingw32-nsis-3.01-1.mga6.x86_64.rpm

Source RPM: 
========================
mingw-nsis-3.01-1.mga6.src.rpm

Source RPM: mingw-nsis => mingw-nsis-2.50-2.mga6.src.rpm
Assignee: mageia => qa-bugs

Comment 6 Herman Viaene 2017-10-23 10:49:47 CEST
MGA6-32 on Asus A6000VM MATE
No installation issues.
Copied example1.nsi from /usr/share/doc/Examples to own home and at CLI:
$ makensis example1.nsi 
Processing config: /etc/nsisconf.nsh
Processing script file: "example1.nsi" (UTF8)

Processed 1 file, writing output (x86-ansi):

Output: "example1.exe"
Install: 2 pages (128 bytes), 1 section (32792 bytes), 3 instructions (84 bytes), 44 strings (865 bytes), 1 language table (230 bytes).

Using zlib compression.

EXE header size:               75264 / 76288 bytes
Install code:                    864 / 9915 bytes
Install data:                    428 / 872 bytes
CRC (0x66CD8748):                  4 / 4 bytes

Total size:                    76560 / 87079 bytes (87.9%)
I don't have Windows on this tiny laptop, but output looks OK.

CC: (none) => herman.viaene
Whiteboard: (none) => MGA6-32-OK

Comment 7 Gilles Caulier 2017-10-23 13:10:55 CEST
I package digiKam windows installer with this NSIS version now 1.4M lines of code cross compiled for windows 32/64 bits with MXE. Installer work perfectly under Windows 7 and Windows 10.

Gilles Caulier
Comment 8 Lewis Smith 2017-10-27 10:34:39 CEST
Advisoried.
Validating thanks to Herman's & Gilles' tests.

Keywords: (none) => advisory, validated_update
CC: (none) => sysadmin-bugs

Comment 9 Mageia Robot 2017-10-30 20:24:06 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2017-0099.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.