PDA

View Full Version : Adding key to registry seems not allways to work - UAC Question?



NewsArchive
02-13-2010, 03:22 AM
I have theese lines in my install:
::Registry Key "HKLM\Software" (Always Install)
::Registry Key "HKLM\Software\Easyplan" (Always Install)
::Registry Value (REG_SZ) "HKLM\Software\Easyplan\ImagePath" =
%_SB_INSTALLDIR% (Always Install)

On my PC, It works like a charm - Of Cause its SB7.1 :-).
At a customers site, I do not get the result of this adding in my program.
I have no possibility of checking about the key is added at the site
unfortunately, but I wonder about the reason could be, that a security
setting forbids me to add at this particular place in the registry.

Edvard Korsbęk

NewsArchive
02-13-2010, 03:23 AM
Edvard,

> On my PC, It works like a charm - Of Cause its SB7.1 :-).
> At a customers site, I do not get the result of this adding in my program.
> I have no possibility of checking about the key is added at the site
> unfortunately, but I wonder about the reason could be, that a security
> setting forbids me to add at this particular place in the registry.

Perhaps the other machine is running a Windows 64-bit operating system and
so the key is not written to HKLM\Software\Easyplan\ImagePath but to
HKLM\Software\Wow6432Node\Easyplan\ImagePath?

If they send you the uninstall .log then you can check whether the key has
been written. If it is not in the log then it was not written.

Does this help?

Friedrich

NewsArchive
02-13-2010, 03:23 AM
The corresponding lines in the uninstall is:
|017|C:\Program Files\BBSOFT\EASYPLAN
|015|ImagePath
|014|Software\Easyplan

So they are added.

Perhaps ot, but the corresponding Clarion line is:
GETREG(REG_LOCAL_MACHINE,'Software\EasyPlan','Imag ePath')
At another place (With the same props.) i find that the key is
SOFTWARE/Easyplan/ImagePath

Is this call case sensitive?
If so, why is 'SOFTWARE' not 'Software'

Edvard Korsbęk

NewsArchive
02-13-2010, 03:24 AM
Hi Edvard,

> The corresponding lines in the uninstall is:
> |017|C:\Program Files\BBSOFT\EASYPLAN
> |015|ImagePath
> |014|Software\Easyplan
>
> So they are added.
>
> Perhaps ot, but the corresponding Clarion line is:
> GETREG(REG_LOCAL_MACHINE,'Software\EasyPlan','Imag ePath')
> At another place (With the same props.) i find that the key is
> SOFTWARE/Easyplan/ImagePath
>
> Is this call case sensitive?
> If so, why is 'SOFTWARE' not 'Software'

Registry keys are not case sensitive. I see "C:\Program Files" in your .log
(and I assume your have not hard-coded the path nor do you have a 64-bit
mode installer), so it's a 32-bit Windows version.

Because the above entries are in the .log, the installer created the keys
and values. Otherwise, they would not be in the .log. They are only logged
if the Windows APIs to write registry entries succeeded.

Friedrich