|
|
#1 |
|
Junior Member
Join Date: Dec 2006
Posts: 10
|
Creating Multiple Installers At Compile Time
Hi guys..
Can NSIS create multiple installers at compile time, i want it to create:
The 2000 XP one will have 2 sections missing, one section checks if the windows installer is up to date and the second installs the .NET framework v2.. My installer is 35mb and about 24mb is for the framework and windows installer v3.. I know i could make the installer download the files only if required but where my application is deployed customers often download on 1 machine and install on another... D. |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
It's not really clear to me what it is you want. Do you want to make two installers? Just use two .nsi files, then.
|
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Feb 2007
Posts: 672
|
I suppose you want to create two installers with one script.
As far as I know this is not possible. What you can do is to put all shared code in a nsh header, and include this header into two seperate scripts with the OS specific code. |
|
|
|
|
|
#4 |
|
Junior Member
|
I've asked the same question once (here), and as far as I know, it is not possible.
I still needed to create two installers with one script this is what I did: I've put the sections I needed to be on one installer but not in the other inside "!if" clauses, like this: PHP Code:
PHP Code:
code: actually you can call the second time without the /D option, but I've put there for clarity. |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Mar 2010
Posts: 4
|
rsvargas
It's a good solution, but there's one mistake (misprint). Must be: code: |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
In fact it really should be:
code: Notice the quotes around ${INSTALL_TYPE}. Without them, and if INSTALL_TYPE is undefined or empty, your script will not compile. (FYI I use `` as primary quotes followed by ' and "). Stu |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|