Skip to content
⌘ NSIS Forum Archive

EmbebedList and obtained words

5 posts

UranusOne#

EmbebedList and obtained words

EmbebedList and obtained words:

As do I draw the symbol "|" from the variable $RO?

What I want is to obtain names separately, and in this way for example to erase regitry's keys or a directory's files.

I right now have a script that gets keys from registry, and it shows them by means of MessageBox.

I was trying to do it writing $RO in a file ini, but no himself like separating words. In order to be able to obtain everything that this contents between the symbol "|", including spaces ... For example this result of EmbebedList:

Result: |It Was Adjacent day|Today it is a morning beautiful| That you have face today|

And obtaining :

$3 Was Adjacent day
$4 Today is a morning beautiful
$5 That you have face today

Sorry for my so bad English
___________

Uranus One

.
Afrow UK#
So you want to put each item seperated by a "|" in the list on your EmbeddedLists dialog?


StrCpy $R0 "hello|my name|is|Afrow UK"

Loop:
Push |
Push $R0
Call SplitFirstStrPart
Pop $R1
Pop $R0

MessageBox MB_OK $R1
StrCmp $R0 "" 0 Loop
The MessageBox will display each separate string from start to finish.
The function that you need to include in your script is here:


-Stu
UranusOne#
Thank you very much Stu, this is a very good plugin to create dynamic sections on real time!!!
UranusOne#
Hello Afrow! I translate the all indications (on google translate, sorry for all spelling errors) in script attached, but this is the use that I gave your plugin, I hope that you like. I believe that it would be good for documenting, the possibility of update of the options and items of plugin in its execution, like for example using it to see values of the registry, since these are changers, if we use them in different computers. Here this script¦

Only tested in XP. I do not know if it works in other versions of Windows

They are needed following plugins for its script operations:
  • EmbeddedLists
  • Registry; Taken care of which plugin with he himself name exists another one, to use this.

The following file must exist in the directory of script.nsi in the compilation of he himself:
  • test.ini ; this file must be empty.