/build/static/layout/Breadcrumb_cap_w.png

1406 error on silent install

Hi,
I am packaging an application named Pharos 7.2
Problem is I am getting insufficent registry access errors 1406: cannot write value various to key SYSTEM\Various Keys.

This is only happening when I use the /qb switch. Working fine as a standard install.

Any help greatly appreciated.

Thanks
Jimmy

0 Comments   [ + ] Show comments

Answers (9)

Posted by: spartacus 16 years ago
Black Belt
0
ORIGINAL: jimmyx
This is only happening when I use the /qb switch. Working fine as a standard install.


Then that suggests that there are actions in the InstallUISequence that are not present in the InstallExecute sequence or that certain actions have conditions on them based on UILevel.

Regards,

Spartacus
Posted by: AngelD 16 years ago
Red Belt
0
Could you give us some examples of such registry entries?
Posted by: jimmyx 16 years ago
Purple Belt
0
Thanks for the replies guys

Spartacus: Can't spot anything missing in the Install Execute sequence or any conditons that might be upsetting things

AngelID: Here are the values I am have difficulties with

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_MCHINJDRV]
"NextInstance"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_MCHINJDRV\0000]
"Class"="LegacyDriver"
"ClassGUID"="{8ECC055D-047F-11D1-A537-0000F8753ED1}"
"ConfigFlags"=dword:00000000
"DeviceDesc"="mchInjDrv"
"Legacy"=dword:00000001
"Service"="mchInjDrv"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_MCHINJDRV\0000\Control]
"*NewlyCreated*"=dword:00000000
"ActiveService"="mchInjDrv"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_PHAROS_SYSTEMS_COMTASKMASTER]
"NextInstance"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_PHAROS_SYSTEMS_COMTASKMASTER\0000]
"Class"="LegacyDriver"
"ClassGUID"="{8ECC055D-047F-11D1-A537-0000F8753ED1}"
"ConfigFlags"=dword:00000000
"DeviceDesc"="Pharos Systems ComTaskMaster"
"Legacy"=dword:00000001
"Service"="Pharos Systems ComTaskMaster"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_PHAROS_SYSTEMS_COMTASKMASTER\0000\Control]
"*NewlyCreated*"=dword:00000000
"ActiveService"="Pharos Systems ComTaskMaster"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_MCHINJDRV]
"NextInstance"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_MCHINJDRV\0000]
"Class"="LegacyDriver"
"ClassGUID"="{8ECC055D-047F-11D1-A537-0000F8753ED1}"
"ConfigFlags"=dword:00000000
"DeviceDesc"="mchInjDrv"
"Legacy"=dword:00000001
"Service"="mchInjDrv"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_MCHINJDRV\0000\Control]
"*NewlyCreated*"=dword:00000000
"ActiveService"="mchInjDrv"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_PHAROS_SYSTEMS_COMTASKMASTER]
"NextInstance"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_PHAROS_SYSTEMS_COMTASKMASTER\0000]
"Class"="LegacyDriver"
"ClassGUID"="{8ECC055D-047F-11D1-A537-0000F8753ED1}"
"ConfigFlags"=dword:00000000
"DeviceDesc"="Pharos Systems ComTaskMaster"
"Legacy"=dword:00000001
"Service"="Pharos Systems ComTaskMaster"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_PHAROS_SYSTEMS_COMTASKMASTER\0000\Control]
"*NewlyCreated*"=dword:00000000
"ActiveService"="Pharos Systems ComTaskMaster"

Posted by: anonymous_9363 16 years ago
Red Belt
0
As Kim probably suspected, you're trying to write to registry entries which you really ought not to.

There's a good article here http://blogs.msdn.com/astebner/archive/2004/10/13/242122.aspx about what the CurrentControlSet etc. registry keys are about.

Anyway, as this is a driver install, you will save yourself HOURS of grief by using one of the driver installation methods, probably DifX.http://www.microsoft.com/whdc/driver/install/difxtools.mspx
Posted by: AngelD 16 years ago
Red Belt
0
Include entries related to your application under HKLM\SYSTEM\CurrentControlSet and not under ControlSet001 or ControlSet002.
Posted by: jimmyx 16 years ago
Purple Belt
0
VBScab: Thanks for that info, the applictaion is not a pure driver install. A bit of background: the printing server creates it own set of .exe's, which do not support a silent uninstall switch so hence the need for an MSI for AD!

Strange thing is the same keys are used on our re-packaged previous version and that works fine on a silent install.

Looking a bit deeper at the /System/CurrentControlSet/Enum keys it looks as though only the SYSTEM account has full control.
Excuse my ignorance (I'm on a bit of a learninng curve here!) but i'm guessing that when you use the /qb switch it will use the admin account, and the SYSTEM account is used with no swtiches?
If that is the case is there somewhere I can change to make sure the SYSTEM account is always used when installed

AnegelD: Thaks for that, and yes I am now only using CurrentControlSet entries.
Thanks again for any help
Posted by: anonymous_9363 16 years ago
Red Belt
0
ORIGINAL: jimmyx
Excuse my ignorance (I'm on a bit of a learninng curve here!) but i'm guessing that when you use the /qb switch it will use the admin account, and the SYSTEM account is used with no swtiches?
No, the /Q argument controls the UI presentation i.e. whether you get one or not and, if so, what level that UI is.

To ensure that the System account is used depends on how the package is deployed and/or under which context any Custom Actions in the package are set to run. CA context is something that can only be set in the Execute Deferred sequence.
Posted by: jimmyx 16 years ago
Purple Belt
0
Thanks as always for your prompt response Ian.

Does a machine install via GP use the system account per chance?
Posted by: anonymous_9363 16 years ago
Red Belt
0
Yup, it sure does...
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ