Archive: serach for install path in reg


serach for install path in reg
I was used NSIS first! my question is following:
my work is install some file in another application directory! the directory info is in the reg ! how can i write my script for serach this info?


you need to know where in the registry is that information first.

If you have that program installed in your computer, you can open the registry and search for the path you know it is installed. That is, press ctrl+F and enter "c:\program files\whatever", if that string is in the registry, then you'll find the branch where is hold, copy the branch and in the nsis script read that branch (readregstr) and copy the string (strcpy). There's another nsis command specific for that, but I can't remember its name.