Deployment Installation (.Net) - Search for target machine & # 8594; Search in the registry (64 bits)

I have a windows installer project that installs some kind of software (winform, service, mce addin). During installation, I need to find a machine for the registry key. This is done using "Launch Conditions" โ†’ "Add Registry Search" (deployment project).

I correctly filled in all the properties and checked on the registry that it is really possible to find the value.

The problem is that the โ€œSearch in the registryโ€ search is performed on the x86 registry part (HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ ...), although my system is x64 and the deployment installation is also installed on x64.

Does anyone know how to make the "Registry Search" look for the x64 registry? Or do you know about a workaround?

The strange thing is that the registry setting in the deployment setup writes to the correct registry (x64). My idea is that the "Search in the registry" program is designed only for the x86 architecture and therefore cannot read the correct registry.

I found this article from Microsoft, so she knows what they know about this problem. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=110105&wa=wsignin1.0#details

My system:
Windows 7 64bit
Visual studio 2008

+4
source share
1 answer

I found a solution for this. I changed the script made from Microsoft and the script should run after each build. See how here

+3
source

Source: https://habr.com/ru/post/1300518/


All Articles