paragrane
5th April 2007 12:37 UTC
To read the key value from registry
Hi!!!!!!!!!!
I want to read the value of the key from the registry.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework
In this path the Key name is InstalledRoot
the value is c:/Windows/Microsoft.Net/Framework
I want to read this value in a variable through NSIS script.
How to do this? Please Help me?
Afrow UK
5th April 2007 12:41 UTC
You should read the documentation.
ReadRegStr.
Stu
lite
5th April 2007 23:01 UTC
Hello,
Please go easy on me Stu. But I too have browsed your NSIS Wiki pages and would also like to know how to READ A REGISTRY value, from a HTML page, or embedded script therein.
Further references to voluminous knowledge bases are not helpful.
Currently, I've tracked it down to this Wscript.shell thingy and I've got a regread.vbs sample working. I just want to wrap that in a HTML page script tag. - but my browser does not seem to be aware of Windows Script Host, i.e. even Wscript.echo method doesn't work.
Does any1 know how or if possible?
The objective is to read a particular value (ID) in the visitors registry, then I give them a specific executable which has been prepared for that value / IDentity.
Thanks in advance
Red Wine
6th April 2007 00:16 UTC
...would also like to know how to READ A REGISTRY value, from a HTML page, or embedded script therein.
NSIS script executed through the compiled executable (exe).
lite
6th April 2007 00:50 UTC
Yes good Red Wine
i am aware of how to do it thru NSIS, in Function .ioInit
ReadRegStr $OperatorCode HKCU "$(Key)\User" OperatorCode
i use that after they have downloaded their exe
however before I even want to download their specific exe to the specific user,
i wish to read that same registry location and give them their file (exe) only, from the HTML page
Anders
6th April 2007 01:15 UTC
You cant read the registry from a webpage, only IE supports VB script, and I dont think it supports reading the registry from a non local page. But you could create a small "loader" exe that the user can download, it could read the regsitry value and then use execshell to open a specific URL with info from your reg key