Error 1406 on writing a registry value

Got a problem you cannot solve? Try here.
hdwivedi23
Posts: 17
Joined: Mon Oct 14, 2013 6:41 pm

Error 1406 on writing a registry value

Postby hdwivedi23 » Thu Mar 19, 2015 8:59 pm

I am got following error while installation
"Error 1406. Could not write value BrandList to key \SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{ProductCode}. System error . Verify that you have sufficient access to that key, or contact your support personnel."

I am trying to write BrandList Value under \SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{ProductCode} using

Code: Select all

Write Registry Key HKLM\$MC_REGISTRYKEY$\BrandList, $MC_BRANDLIST$


If I ignore the error the rest of the installation is performed successfully. When registry key Uninstall\{ProductCode} is created without any issues then why there is an error related to permission on writing a value to an existing registry key. After all, both values are written by Windows installer.

Can someone please help me resolve this issue.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Error 1406 on writing a registry value

Postby FrancescoT » Fri Mar 20, 2015 1:22 pm

Dear hdwivedi23,

even if such registry location should never be used to store custom application data, I am not able to replicate your issue.

I just used the following code to store a dummy value under the "Microsoft Visual C++ 2008 Redistributable" uninstall registry path and worked fine.
(HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1F1C2DFC-2D24-3E06-BCB8-725134ADF989})

Code: Select all

Set Variable NATIVE_ENGINE to TRUE
 
Comment: Write and entry to "Microsoft Visual C++ 2008 Redistributable" UnInstal REG-KEY
Write Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1F1C2DFC-2D24-3E06-BCB8-725134ADF989}\MyValue, Value

Code: Select all

~InstallAware Clipboard Data~
~Write Registry~
~{361E68FD-B68A-4972-B70E-38E24E18BE98}~
~0~
~2|~
~SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1F1C2DFC-2D24-3E06-BCB8-725134ADF989}~
~MyValue~
~Value~
~TRUE~
~FALSE~
~Comment~
~{1DE1C427-8A49-4783-BECA-E7A6E789D1CF}~
~Write and entry to "Microsoft Visual C++ 2008 Redistributable" UnInstal REG-KEY~
~Comment~
~{424E7239-80C8-4862-B8AC-CA463E4D03ED}~
~~
~Set Variable~
~{A3B2D90D-7317-4158-BD5F-4F2DD91133CC}~
~NATIVE_ENGINE$MYAH$MYAH$FALSE~
~TRUE~


Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 92 guests