Thanks, Rafael.
But what I desire is the functionality to write to the 64-bit area of the
Registry from SCRIPTS, i.e. HTA, VBS, or WSF.
From what I gather on the MSDN pages, these functions are available under
C++++, maybe VB, but NOT scripts. There is no MS-approved method to
reference libraries from scripts.
Thinking about this problem last night, I imagined a new Registry hive key
like, HKEY_LOCAL_MACHINE64, which would be available to 32-bit apps that
points to the top of the 64-bit hive. This would solve all our problems.
Ok, it appears that MS has again dropped the ball because this is only one
of many issues we're having with discrepancies between 32-bit and 64-bit on
an x64 machine. These issues aren't related to hardware, as we're using HP
but in developing world-class software, especially a system build process
that works across 32 and 64-bit systems.
If you can think of anything that works under scripts, it would be well
appreciated.
Many thanks for all your help.
--
Mark-Allen Perry
ALPHA Systems
Marly, Switzerland
mark-allen_AT_mvps_DOT_org
"Rafael Rivera [Extended64.com]" <rafael*at*extended64*dot*com> wrote in
message news:...
> Have you looked into using RegDisableReflectionKey()?
>
> See:
>
http://msdn.microsoft.com/library/de...lectionkey.asp
>
> Rafael Rivera
> Extended64 | http://www.extended64.com
> Blog | http://www.extended64.com/blogs/Rafael
>
> Mark-Allen Perry wrote:
> > I've written a VBS script that determines what architecture (x86, AMD64,
> > etc.) and what platform (64 or 32-bit). It creates a key with these two
> > values and writes it to the Registry; HKLM\Software\{new key}.
> >
> > As expected, writing under a 32-bit context does NOT write to the same
place
> > as under a 64-bit context. Using a 64-bit RegEdit.exe, I can see the
64-bit
> > key as expected, and under \Wow6432Node, I see the 32-bit key.
> >
> > Since this difficulty is compounded by an .HTA running only the 32-bit
> > MSHTA.exe, what happens when the HTA executes a WSF or VBS script?
Which
> > bit version? And if we execute CMD.EXE via any of these methods, what
> > version runs?
> >
> > Very confusing, to say the least. Does you have some ideas about how to
> > stay in 64-bit under all conditions?
> >
> > many thanks for your help,
> >