Hello,
I have an main installer with a prerequisite that is giving me Warning 4154 during install. The prerequisite installer writes a registry key.
Target: HKLM\Software\TestManufacturer\TestProduct
Name: Version
Type: REG_SZ
Data: "[ProductVersion]"
(in this case [ProductVersion] is 1.1.1)
Then the main installer, in the pre-requisites checks for the following key.
Criteria: Registry value containing a version
Registry Value: HKLM\Software\TestManufacturer\TestProduct\Version
Required Versions Minimum: 1.1.1
(Required Versions Maximum is empty)
I have checked after the install, and the prerequisite (a Windows Service) is correctly installed and running, so I'm not sure why the installer reports this warning.
The only strange thing I can think of, is that if I try to manually check that registry key (using regedit), I can't see the key values, as I have no permissions. I have to go to Permissions->Advanced->Owner and give myself ownership of the registry key HKLM\Software\TestManufacturer\TestProduct (not sure why I can do that but not see the value). Both installers have the following options checked:
In Install Parameters->Installation Type: Per-machine only (fails if user is not administrator)
In Media->Bootstrapper->Security->Execution Level: Require Administrator
The idea is that this application will only be installed once per machine, not sure if that's the right way of doing it, or Execution Level could be left As Invoker.
Any ideas on why the prerequisite gives the warning? Regards,
Vicente
Edit: this happens in Windows 7 x64 with an account that is a member of the Administrators group. Maybe it's because the key goes to the Wow6432Node?