Go Back   Winamp & Shoutcast Forums > Search Forums

Showing results 1 to 25 of 80
Search took 0.02 seconds.
Search: Posts Made By: JohnChen
Forum: NSIS Discussion 29th June 2011, 18:03
Replies: 2
Views: 1,347
Posted By JohnChen
I will try what you suggested to see if I still...

I will try what you suggested to see if I still have the same issue. Actually the issue that the folder is not removed doesn't happen every time. I am not sure whether it is caused by trying to...
Forum: NSIS Discussion 29th June 2011, 16:41
Replies: 2
Views: 1,347
Posted By JohnChen
A problem when deleting a folder

After I call rmdir /r to delete a folder, the folder is not removed. Then if I manaully delete this folder, it is gone. That means the folder is not held by anyone. So why isn't it removed initially?
Forum: NSIS Discussion 28th June 2011, 15:55
Replies: 1
Views: 1,361
Posted By JohnChen
How'd I know who is holding the folder?

I call rmdir /r to remove a folder but it turns out that this folder is not removed. So I assume the folder is being held. My question is that how 'd I find out who is holding the folder at this...
Forum: NSIS Discussion 28th June 2011, 15:29
Replies: 4
Views: 1,403
Posted By JohnChen
It depends on the requirement. If you want to...

It depends on the requirement. If you want to keep some users' files, then the folder abc might not be removed. But if the folder abc must be removed anyhow, then I must remove it.
Forum: NSIS Discussion 27th June 2011, 22:32
Replies: 4
Views: 1,403
Posted By JohnChen
A question regarding double quote

If I have a folder called abc under $PROGRAMFILES, now I want to remove the folder abc. Should I call rmdir /r $PROGRAMFILES\abc or
rmdir /r "$PROGRAMFILES\abc" ?
What is the...
Forum: NSIS Discussion 16th June 2011, 19:31
Replies: 1
Views: 1,257
Posted By JohnChen
how to concatenate a variable with a macro?

For example, I have a variable $str1="hi" and a macro ${str2} which is defined as #define str2 "there". Now I want to concatenate them together into one string. So I use "$str1 ${str2}". But it turns...
Forum: NSIS Discussion 9th June 2011, 22:46
Replies: 2
Views: 1,345
Posted By JohnChen
A question regarding !if

It looks like outside section, we can only use !if instead of ${If}. But if I use !if outside of section like,

!if $promise == "true"
; win a million dollars
!else
; lose a million dollars
...
Forum: NSIS Discussion 9th June 2011, 19:09
Replies: 2
Views: 1,167
Posted By JohnChen
Thanks a lot!

Thanks a lot!
Forum: NSIS Discussion 9th June 2011, 17:58
Replies: 2
Views: 1,167
Posted By JohnChen
Is it possible to call a function outside a section?

When I call a function outside a section, I got an error. I wonder if there is any way to get around this? Thanks.
Forum: NSIS Discussion 8th June 2011, 23:22
Replies: 4
Views: 1,338
Posted By JohnChen
It is not that install page won't work for me. It...

It is not that install page won't work for me. It is because for some circumstance, I want to quit the installation, so the layout, text, etc from the original install page are not appropriate any...
Forum: NSIS Discussion 8th June 2011, 22:53
Replies: 4
Views: 1,338
Posted By JohnChen
Basically my question is that how can I replace...

Basically my question is that how can I replace the exsiting instfiles page with my custom page? Thanks.
Forum: NSIS Discussion 7th June 2011, 23:45
Replies: 4
Views: 1,338
Posted By JohnChen
How to use instfiles?

I couldn't find any resources regarding how to use instfiles in user's manual. Could any guru here explain it a little bit? I meant the syntax to use it and the meanings of each parameter. Also if I...
Forum: NSIS Discussion 7th June 2011, 20:12
Replies: 2
Views: 1,271
Posted By JohnChen
You are right! I forgot to enable unicode in dll...

You are right! I forgot to enable unicode in dll project. Thanks a lot.
Forum: NSIS Discussion 7th June 2011, 19:19
Replies: 2
Views: 1,271
Posted By JohnChen
A question regarding passing a string to a dll

Here is my NSIS code,

StrCpy $1 "test it"
System::call "MyDLL::test(t r1)"

The function test is defined in a dll MyDLL.dll written in C++ like,

void __stdcall test(LPCTSTR szTest);
...
Forum: NSIS Discussion 24th May 2011, 19:17
Replies: 0
Views: 1,298
Posted By JohnChen
A problem with deleting two folders in a row

I need to delete two folders and all of their contents by calling rmdir /REBOOTOK /r,

rmdir /REBOOTOK /r folderA
rmdir /REBOOTOK /r folderB

The problem is that sometimes it failed to delete...
Forum: NSIS Discussion 24th May 2011, 16:25
Replies: 4
Views: 1,886
Posted By JohnChen
How to use DetailPrint?

Where can I check the messages written by calling DetailPrint? Thanks.
Forum: NSIS Discussion 24th May 2011, 15:16
Replies: 3
Views: 1,433
Posted By JohnChen
I think Myfolder is blocked by an application but...

I think Myfolder is blocked by an application but couldn't figure out which one. Do you have any idea how to find out which application is blocking Myfolder? Thanks.
Forum: NSIS Discussion 23rd May 2011, 19:15
Replies: 2
Views: 1,397
Posted By JohnChen
Where is $INSTDIR defined?

It looks like $INSTDIR is defined by NSIS system but I just don't know how it is defined in NSIS. Thanks.
Forum: NSIS Discussion 23rd May 2011, 15:40
Replies: 3
Views: 1,433
Posted By JohnChen
A question regarding rmdir

I tried to call rmdir /rebootok /r myFolder. myFolder is a full path to a folder which is not empty. It did remove everything within myFolder but an empty folder "myFolder" is still left behind. How...
Forum: NSIS Discussion 20th May 2011, 22:56
Replies: 5
Views: 1,874
Posted By JohnChen
A question regarding $PROGRAMFILES

It looks like the const $PROGRAMFILES doesn't work on every OS. I wonder if there is any GENERIC const for C:\Program Files, which is good for every OS? Thanks.
Forum: NSIS Discussion 20th May 2011, 22:33
Replies: 4
Views: 1,625
Posted By JohnChen
Thanks for your explainations! I will also check...

Thanks for your explainations! I will also check the manual.
Forum: NSIS Discussion 20th May 2011, 20:55
Replies: 4
Views: 1,625
Posted By JohnChen
But we use $1 or $R0 as variables. So I guess ${}...

But we use $1 or $R0 as variables. So I guess ${} is for user defined variable and $ is system defined variable like $1 or $R0. Am I right? Thanks.
Forum: NSIS Discussion 20th May 2011, 16:34
Replies: 4
Views: 1,625
Posted By JohnChen
The usage of macro

If I define a macro, for example, !define MY_WALLET "empty". When I use MY_WALLET this way, MessageBox MB_OK $MY_WALLET, then "$MY_WALLET" will be displayed. In order to display "empty", I have to...
Forum: NSIS Discussion 16th May 2011, 17:26
Replies: 2
Views: 1,090
Posted By JohnChen
So GetFileName is just a macro. Then it makes...

So GetFileName is just a macro. Then it makes sense. Thanks for your explaination!
Forum: NSIS Discussion 16th May 2011, 15:10
Replies: 2
Views: 1,090
Posted By JohnChen
A question regarding the syntax how to call a function

For some functions, for example, GetFileName, I need to call it like ${GetFileName}. But for other functions, for example, CopyFiles, I can simply call it like CopyFiles. Why'd we have such a...
Showing results 1 to 25 of 80

 
Forum Jump