I’m looking for a script or a way to write following registry on X64 bit machine, but it’s going to 32bit application’s path L

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{xyz-abc-def-ghij-klmnopqrst}.sdb]

"SystemComponent"=dword:00000001

 

Basically i want to hide shim from Add/remove on X64bit machine

 

Thanks in advance for the all your help!

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

1

It depends how you are running the script. If you are running the script as a 32 bit process then it will automatically write in 32 bit hive.

Answered 05/21/2013 by: piyushnasa
Red Belt

Please log in to comment

Answers

0

Just use the command line tool REG.

Or are you trying to do this in a MSI?
When you say 32bit path do you mean the WOW6432Node? As that is the 32bit node for 32bit apps.

Answered 05/16/2013 by: rileyz
Red Belt

  • Yes you are right it goes to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall. can you provide the command line options which can be executed through msi or wse ?
    • But you need to write this in the..
      HKEY_LOCAL_MACHINE\\Microsoft\Windows\CurrentVersion\Uninstall
      instead?

      If so, just use a Custom Action to execute a command, use the REG tool to write to the key or value. Dont forget to condition the action.

      Is this a 64 or 32bit app? Its really strange you need to do this, as it really should be in the WOW6432Node.
Please log in to comment
0

try

HKLM64\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{xyz-abc-def-ghij-klmnopqrst}.sdb]

"SystemComponent"=dword:00000001

 

Answered 05/16/2013 by: SMal.tmcc
Red Belt

Please log in to comment
0

http://scriptingcenter.blogspot.com/2013/04/read-64-bit-registry-hive-by-using-32.html

 

You might have to edit it . Currently it reads  64 bit hive.

Answered 05/16/2013 by: rock_star
Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity