Forum: NSIS Discussion
9th April 2006, 21:59
|
|
Replies: 6
Views: 2,728
|
Forum: NSIS Discussion
9th April 2006, 18:31
|
|
Replies: 6
Views: 2,728
Thanks alot Afrow.
IfFileExists...
Thanks alot Afrow.
IfFileExists $WINDIR\notepad.exe 0 +2
MessageBox MB_OK "notepad is installed"
else do_something??
Where do I place the else statement?
Thanks!!
|
Forum: NSIS Discussion
9th April 2006, 01:11
|
|
Replies: 6
Views: 2,728
|
Forum: NSIS Discussion
8th April 2006, 20:29
|
|
Replies: 6
Views: 2,728
if readINIStr then else?
Hi all,
I was wondering if someone could show me how to build this construction?
As in:
ReadINIStr $0 $INSTDIR\winamp.ini winamp outname == nothing?
Basically I want to use this method to...
|
Forum: NSIS Discussion
2nd March 2006, 21:49
|
|
Replies: 25
Views: 5,084
Hey Afrow,
Thanks. Yeah I use 8192 build...
Hey Afrow,
Thanks. Yeah I use 8192 build now.
I will let you know if I see the problem again, as I try to initialize the value in my software using the INI key. If I can do it, I will focus on...
|
Forum: NSIS Discussion
1st March 2006, 20:03
|
|
Replies: 25
Views: 5,084
Afrow,
Thanks so much. It works so perfect...
Afrow,
Thanks so much. It works so perfect now. But there always comes problems, but this time not from your code.
I use
WriteINIStr $INSTDIR\options.ini XSI OImage ""
first to clear the...
|
Forum: NSIS Discussion
1st March 2006, 19:14
|
|
Replies: 25
Views: 5,084
|
Forum: NSIS Discussion
1st March 2006, 18:31
|
|
Replies: 25
Views: 5,084
Hey,
It really works! Now I see a problem...
Hey,
It really works! Now I see a problem which I dont know the reason of. When I want to write into keys like "OFImage" or "Oimage", etc it doesnt work.
But it works with new.
Any idea?
...
|
Forum: NSIS Discussion
1st March 2006, 17:25
|
|
Replies: 25
Views: 5,084
|
Forum: NSIS Discussion
1st March 2006, 17:24
|
|
Replies: 25
Views: 5,084
I use this:
!define INIFile...
I use this:
!define INIFile "$INSTDIR\options.ini"
GetTempFileName $R1
FileOpen $R0 $R1 w
FileOpen $R2 "${INIFile}" r
StrCpy $R4 0
Loop:
|
Forum: NSIS Discussion
1st March 2006, 16:24
|
|
Replies: 25
Views: 5,084
Afrow,
Thanks so much again. This seems to...
Afrow,
Thanks so much again. This seems to do what I need.
So first I will create a key called "New", as empty and then use your code to fill it. Now there is only 1 problem.
When I use your...
|
Forum: NSIS Discussion
1st March 2006, 02:34
|
|
Replies: 25
Views: 5,084
Hey Afrow,
Thank you so much! I cant thank...
Hey Afrow,
Thank you so much! I cant thank you enough man. It will really help me so much but it didnt work and I dont know why.
You create a temp file copy everything from the first file and...
|
Forum: NSIS Discussion
28th February 2006, 20:30
|
|
Replies: 25
Views: 5,084
|
Forum: NSIS Discussion
28th February 2006, 14:29
|
|
Replies: 25
Views: 5,084
|
Forum: NSIS Discussion
27th February 2006, 18:53
|
|
Replies: 25
Views: 5,084
|
Forum: NSIS Discussion
27th February 2006, 16:21
|
|
Replies: 25
Views: 5,084
Comperio,
With your information, I get to...
Comperio,
With your information, I get to write much longer strings! Thank you very much. But this still didnt let me to write a very long 1 line string.
In case you want to see the code, I...
|
Forum: NSIS Discussion
26th February 2006, 20:33
|
|
Replies: 25
Views: 5,084
|
Forum: NSIS Discussion
26th February 2006, 20:08
|
|
Replies: 25
Views: 5,084
|
Forum: NSIS Discussion
26th February 2006, 18:47
|
|
Replies: 25
Views: 5,084
Writing to a specific part of an ini file
Anyone knows how to write a specific part of an ini file, like
first finding a string named "New=" and then starting to write from there, possibly using fileWrite?
THANKS!
|
Forum: NSIS Discussion
26th February 2006, 15:00
|
|
Replies: 27
Views: 4,790
I found a new way.
I will have to create a...
I found a new way.
I will have to create a few ini entries in the same file, of which only this one is very long. So instead of writing alot of routines to see if there is an ini key created, etc....
|
Forum: NSIS Discussion
25th February 2006, 19:55
|
|
Replies: 27
Views: 4,790
|
Forum: NSIS Discussion
25th February 2006, 19:07
|
|
Replies: 27
Views: 4,790
Hey dienjd,
Now it works man! Thanks so...
Hey dienjd,
Now it works man! Thanks so much! Now I have one question:
How I can find out if there is a section called [NEW] in the ini, and if not create one. But if it exists, then find an...
|
Forum: NSIS Discussion
25th February 2006, 18:45
|
|
Replies: 27
Views: 4,790
|
Forum: NSIS Discussion
25th February 2006, 17:58
|
|
Replies: 27
Views: 4,790
Hi dienjd,
I have found out the limit of...
Hi dienjd,
I have found out the limit of StrCpy and splitted the code before the limit.
But unfortunately I couldnt write the full code with writeINIStr, with this:
StrCpy $0...
|
Forum: NSIS Discussion
25th February 2006, 17:12
|
|
Replies: 27
Views: 4,790
dienjd,
You rock! This is something I was...
dienjd,
You rock! This is something I was expecting. These "$0$1$2" is so different from my language, thats why I couldnt think about it. Now I will really try on this and will let you know about...
|