|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Junior Member
Join Date: May 2020
Posts: 2
|
Two installations in one installer: Main app and host environment
On the NSIS Sourceforge site, there is this sample script for installing two software packages in one installer. I am trying to adapt it for my purpose, which is to install additional, ancillary software in a separate folder from the main install if the target machine is a Windows 32 system.
I am a newbie on NSIS and I'm having trouble understanding how that script works. Could someone publish a simpler, cut-down version of it, that - - uses the older, simpler, non-MUI installer, and is without - - language selection - the pages for the user to select components of the package to install - the section below the comment "Please don't modify below here unless ..." I am hoping that such a cut-down, simpler version will make it easier to understand and adapt it. |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
...but you still want to display two different directory pages?
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: May 2020
Posts: 2
|
Yes, I do, because I am installing a 16-bit program that I wrote decades ago. In 32-bit Windows (nowadays a rarity), it runs seamlessly as a console app, so only my app needs to be installed, but if the target system is 64-bit Windows, the installation needs to include DosBox and some additions to its config file, hence the (conditional) need for two installations.
|
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
The example you linked to uses two InstFiles pages which is extra complicated and not really needed in your scenario.
The basics are really simple, just unselect the function in .onInit if you are on a x86 system. A bit more tweaking is required to get the directory pages to display the correct sizes. PHP Code:
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Tags |
multi-install |
Thread Tools | Search this Thread |
Display Modes | |
|
|