Scripting Question

how to use secedit.exe to implement permission on HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Torto

01/28/2016 2006 views
Hi ,

For the registry which is pointing to 32 bit location how to set permission via secedit.exe

I am getting Error 1722 while installing MSi because of custom action in which i am using secedit command. please advise
When i checked the logs under %windir%\security\logs it is showing that
error in enumerating 64-bit location and fails
32-bit location successfully configured

Is there a separate methods to give permission for the 64-bit and 32-bit.Kindly suggest
0 Comments   [ + ] Show comments


Community Chosen Answer

could you post your security inf?
I must agree with VBScab, if you have a 32bit msi, then the custom action will be called in the 32bit context and therefore there is no requirement to explicitly "target" HKLM\SW\Wow... just use the "normal" registry in the inf file and this will be used by secedit...

Answered 01/28/2016 by: Pressanykey
Red Belt

  • I agree with the above.

    There should be no need to reference the 32-bit hive through the full registry path, when secedit it will be redirected via registry reflection to the correct place.


All Answers

just for the record,
you are calling secedit.exe (with parameters) from a custom action inside a 32bit msi or 64bit msi? From what you are saying, the 32bit registry hive is successful (i.e. under HKLM\SW\Wow6432Node\Torto) but the standard location HKLM\SW\Torto fails?

Answered 01/28/2016 by: Pressanykey
Red Belt

  • Yes I am using 32 bit MSI and calling secedit with parameters like passing inf and db file.
  • When i see logs it says
    error in enumerating 64-bit location and fails
    32-bit location successfully configured.
    Please can u advise
Why would you expect to be able to interact with the 64-bit registry from a 32-bit MSI?  Create a 64-bit MSI for that.
Answered 01/28/2016 by: VBScab
Red Belt

  • I have to give permisson to hive HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Torto...but why secedit is looking for 64-bit location is my question?

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


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