Archive: EnvStr or Harddisk Capacity


EnvStr or Harddisk Capacity
Question:

I want to know all available harddisks and capacities at the machine on which the installer runs. Can I find this in the registry? Or using ReadEnvStr?

Actually, I think this might be a way to identify a computer uniquely... (at least to a certain amount) because that's what I'm actually trying to do...

So if anyone has another idea on uniquely identifying computers, please feel free to respond to this thread.


Thx all, greetz, Hendri.


For unique identification, I would go for MAC address as most computers have a network card or modem.
Or hard drive serial number.


the mac adress is not so good because u can change the card.
its bette to check the motherboard
and some more devices
like ms does in xp

such numbers are stored in the registry

look at hklm - system - currentcontrolset

i think this is a little bit difficult bec. the keys a very different on different hardware ...


thx,

I indeed allready took a look at currentcontrolset. But my problem is: the only items I can recognize for what they do are Reg_Binary and we can't read them using NSIS (see http://forums.winamp.com/showthread.php?threadid=71690)

So please please please send me an exact registry adress with some Reg_Sz that we can read.

The best would indeed be something like motherboard...

Thx all in advance, greetz, Hn3.


Let's put it differently:

I'm not such an experienced Matlab and Delphi programmer and I want to protect my application from being copied to another computer.

Can anyone give me a hint how to do this? My idea was saving computer identification info to a coded file and check this at runtime. But maybe you experienced guys have a better idea.

BTW, my application has a plugin for Matlab that does not use dll's or exe's. Just coded text-files. So for this plugin, I think the only way is using some registry setting like I described above.

But please let me know what you think,
thx, greetz, Hendri.