|
|
|
|
#1 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,811
|
How could i do this(@ Compile time)?
code: |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,338
|
If you can get to http://nsis.sf.net/ then you can find the answer in the FAQ on that page. If it's lagging for you too see StrCmp, StrCpy and IntCmp in the manual. Some examples in the Examples directory use those, so you can look at them for usage example.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,811
|
Isnt StrCmp, StrCpy and IntCmp RunTime only?
What I want is to !include a file only if a define is defined to a certain(sp?) value... |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,338
|
Oh sorry, didn't read that right... I have no ideas for that at the moment, but something with !system would probably do the trick.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
NSIS Dev
Join Date: Sep 2001
Location: Leicester, UK
Posts: 193
|
Here's a trick I've used:
code: |
|
|
|
|
|
#6 | |||
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,811
|
From Help File:
Quote:
Quote:
what I need is a C preprocessor like command... from a normal StdAfx.h file: Quote:
|
|||
|
|
|
|
|
#7 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
It's currently not possible, but if you give more details we might be able to help you with other solutions.
|
|
|
|
|
|
#8 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,811
|
i guess i have to hack nsis myself then, script.cpp would be the right place to do it right?
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#9 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,338
|
Yes, but why not use eccle's method?
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#10 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,811
|
because i want to use stuff like !if ${somedefine} > 4...
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#11 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,338
|
OK, good luck. Submit a patch if you get it working. If you don't you can use !system to call anotehr program that will do this, like perl for example. You can get the program to write a NSH file which you would !include and use.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#12 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,811
|
what im trying do is create a script file that makes it real easy to create a setup...
this is all i need to create the setup for one of my apps: code: This script will: -Install ${APPFILE_MAIN_SRCTREEPATH} in $PROGRAMFILES\${APP_NAME} -Create a uninstaller and register this in the registry. -Show The License page -Copy the license file to $InstDir -AutoCreate Shortcut for the main program file in: (Can be disabled on the componentpage (Classic & Modern GUI)) --The Desktop --The QuickLaunch area |
|
|
|
|
|
#13 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,338
|
A worthy goal indeed
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#14 |
|
Junior Member
Join Date: Nov 2003
Posts: 16
|
Joost or kichik,
Has this feature ever been added to nsis? It was posted over a year ago and I am trying to do the same thing. http://forums.winamp.com/showthread....61#post1477361 Its seems straight forward to add just a binary compare equals to the compile time !ifdef APP_COMP == "sdfsd" to nsis. Can this be done? Was it done? Thanks, art |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|