Visual Studio 2010 64 bit setup registry issue
I've Visual Studio 2010 on a Vista 64bit. I've created a setup project, with x64 target. I've added two Launch Condition :
- Search on Registry Key
"SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1F1C2DFC-2D24-3E06-BCB8-725134ADF989}"
Try to find Microsoft Visual C++ 2008 Service Pack 1 Redistributable x86. - Search on Registry Key
"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8220EEFE-38CD-377E-8595-13398D740ACE}"
Try to finMicrosoft Visual C++ 2008 Service Pack 1 Redistributable x64.
The installer find the first key, but not the second! I suppose th开发者_如何学运维at the OS redirects the installer under the Wow6432Node! Why if the target is x64 ? How can an installer looks in the "64bit registry zone" ?
Thank you. Salvo
This isn't supported by Visual Studio setup projects. However, you can try this:
- after building the project open the MSI with Orca
- go to RegLocator table and find the 64-bit search
- in "Type" column change the value to 18
- save the changes
This way the registry search should use the 64-bit hive.
There's a Connect issue with a workaround to automate the answer given by Cosmin Pirvu. It uses JScript in a post-build step to make the edit to the MSI file.
精彩评论