I know that it is rather easy to search for a registry key with the Registry plugin but doesn anyone know a methode to search for a registry value?
My problem is this:
PopMan can be set to autostart with Windows and it does that by writing a registry value called
HKCU\Software\Microsoft\Windows\CurrentVersion\Run: PopMan: "J:\PortableApps\PopManPortable\App\PopMan\PopMan.exe -minimize"
Now I want to check if the value is there, back it up if it is, run the program and delete it afterwards and, if necessary, restore the old one. This way I could ensure that even if the user sets this option, the host registry remains clean.
So now I want to check if the "PopMan"-entry is there but the Registry-Plugin's "${registry::KeyExists}"-Function only checkes for a key and not for the value.
I think I have to use the "${registry::Find}"-Function but I dont know how.
Anyone know more or can help me?
Not sure though, but would it not be easier to read the registry entry for run and then let the NSIS script check if PopMan is included?
but I dont know how to do that either.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
IMO, you should check if the Popman KEY exists and assume it was set to start if it does.
Or you could do it the hard way and try to copy it and see if it fails. Then if it fails you could assume that it was never there in the first place and not move it back ;).
Insert original signature here with Greasemonkey Script.
but there is no PopMan Key.
There is the "Run" key as described above (HKCU\Software\Microsoft\Windows\CurrentVersion\Run)
and then normally there are several values inside that key. Normally ther's an empty one and one called "CTFMON.EXE". The way I understand it is that all exes inside the run key are run on windows start. I know how to check for the key but not for a specific value inside a key.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
I was thinking that the menu could check the built in autostart keys, delete them, and automagically add it to the autorun list or something.
As for the value...
Oh and I found the stuff under find in registry.nsh:
Insert original signature here with Greasemonkey Script.
but if you are working on your own home machine, can't you just open regedit.exe and do a Find?
It will look for Keys, Data and Values.
Also, once you are there, you can highlight the Key and do a File>Export Registry File.
Of course, if you don't have admin rights, you may have probs.
I made this half-pony, half-monkey monster to please you.
even without Admin rights.
But I want to do it with NSIS so I can put it into the PopMan launcher.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
$var2 = TYPE
According to readme:
So check if $var2 is blank. If it is, then your value doesn't exist.
for once more helping me with NSIS!
EDIT
It works now
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
Where?
Insert original signature here with Greasemonkey Script.
if you download the plugin, there is a readme included.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate