|
|
#1 |
|
Junior Member
Join Date: Jun 2006
Posts: 2
|
Detecting build platform
Certain parts of my installer script do build time operations that can only be done on windows boxen, most notably gathering registration info from shared DLLs. However, I would like to be able to build installers on Linux anyway, without e.g. DLL registration. Therefore, I'd like to be able to do conditional compilation based on build platform. I can't find out how to access build platform. Can anyone give me a clue?
|
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Dec 2005
Location: Glow
Posts: 285
|
Since NSIS v2.16 there is NSIS_WIN32_MAKENSIS define for just that
!ifdef NSIS_WIN32_MAKENSIS ; Do your win32 thing !else ; Do your linux thing !endif |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2006
Posts: 2
|
Verily. Thanks.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|