152
edits
Changes
Solving Error 1406
There is a list of locale IDs at http://www.microsoft.com/globaldev/reference/lcid-all.mspx.
== Solving "Error 1406" when upgrading from 7.0.9 to 8.0.0 ==
Upgrading 7.0.9 to 8.0.0 (either by wpkg script or by hand) could trigger "Error 1406" condition, because of wrong permissions and ownership set on a couple of registry keys, probably left there by the 7.0.x to 7.0.9 updater.
In order to update successfully we had to first correct ownership and permissions with the following script, executed as install cmd immediately before the "msiexec /i" install cmd in the "Adobe Reader8" stanza.
The script, %SOFTWARE%\ResKit\ResetPDFregkey.cmd, contains the following lines:
<pre>
subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pdf\PersistentHandler /setowner=Administrators
subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pdf\PersistentHandler /grant=administrators=f
subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.pdf\PersistentHandler /grant=system=f
subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B801CA65-A1FC-11D0-85AD-444553540000}\PersistentHandler /setowner=Administrators
subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B801CA65-A1FC-11D0-85AD-444553540000}\PersistentHandler /grant=administrators=f
subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B801CA65-A1FC-11D0-85AD-444553540000}\PersistentHandler /grant=system=f
</pre>
The executable subinacl.exe is part of the Windows Resource Kit, it is used to query and modify security informations on files, registry keys, services.
Please do not deploy it without testing.