Writing to registry fails

Got a problem you cannot solve? Try here.
Post Reply
tosch
Posts: 63
Joined: Thu May 27, 2010 8:44 am

Writing to registry fails

Post by tosch »

I'm trying to write the installation path to the registry under HKEY_LOCAL_MACHINE\Companyname\Applicationname and create a string value. This always fails saying the key could not be created.

I'm running this on Win7, the user is a local administrator on the machine.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Re: Writing to registry fails

Post by MichaelNesmith »

Did you try to do the same thing in regedit.exe? Even that will cause an error like this:
---------------------------
Error Creating Key
---------------------------
Cannot create key: Error writing to the registry.
---------------------------
OK
---------------------------
Write under the SOFTWARE subkey.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
tosch
Posts: 63
Joined: Thu May 27, 2010 8:44 am

Re: Writing to registry fails

Post by tosch »

ok, I tried to write to HKLM\Companyname\... instead of HKLM\Software\Companyname\...
Checked this several times but just didn't see it...
Thanks for your help anyway.

Thomas
Post Reply