View Full Version : Writing to HKLM
NewsArchive
01-22-2010, 02:34 AM
I'm trying to figure out why one of my installs will not write to
HKLM\Software\Intelligent Silicon\MyApp.
I'm running the installation from the windows Administrator account and its
Execution Level has been compiled as requireAdministrator yet I cant see the
registry entries in Regedit or Regedt32.
What circumstances could prevent SB from writing them?
I've knocked together this example app and I keep getting Failed on both Win
7 and XP.
Any ideas what I'm doing wrong?
Cheers
Richard
NewsArchive
01-22-2010, 02:35 AM
If you're installing on a 64-bit Win7 or Vista machine, you'll need to look
in HKLM\Software\Wow6432Node\Intelligent Silicon\
That doesn't explain XP, though...
Are you checking %_SB_ERRORCODE% after your writes?
jane
NewsArchive
01-22-2010, 02:35 AM
Hi Jane
I didnt know about the Wow6432Node that was what was throwing me. I was
creating reg entries and couldnt understand why they werent working.
What also threw me was my logic was the opposite to what it should have
been, was testing %_SB_ERRORCODE% = 0 when it should have been not = .<g>
Cheers
Richard
NewsArchive
01-22-2010, 02:35 AM
The Wow6432Node is essentially transparent to your apps if you're
reading/writing in a 32-bit world.
Clarion's getreg and putreg are directed there by the Windows OS... as is a
32-bit SB installer's reads and writes.
jf
NewsArchive
01-22-2010, 02:36 AM
> The Wow6432Node is essentially transparent to your apps if you're
> reading/writing in a 32-bit world.
> Clarion's getreg and putreg are directed there by the Windows OS... as is a
> 32-bit SB installer's reads and writes.
Jane,
Thanks for clarifying that - so many have brought up the issue recently -
thinking they need to write Wow6432Node in their Clarion code when Windows
handles it.
David
--
From David Troxell - Product Scope 7.9 - Encourager Software
Product Scope 7 Viewer - NO Registration Fee! Free to Use!
http://www.encouragersoftware.com/
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
http://www.profileexchanges.com/blog/
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.