My Blog List

Monday, November 7, 2011

Installation default path - 64 vs. 32 bit

To support installation under the Miner and Miner\ArcFM Solution folder so that it works for both 32 and 64 bit machines, you need to create two registry searches in the Setup project. The first registry search to support 64 bit machines would look for H_KEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Miner and Miner and get the value of the LastInstallDir.  A second registry search for 32 bit machines would look at the same location minus the Wow6432Node.  Importantly both searches should set the same property (MMPATH in the example below).  You then use that MMPATH variable as the value for the Application Folder's DefaultLocation property as shown below. When you run the installer, the correct registry search is magically performed and it seems to just work.

IMPORTANT NOTE: Visual Studio will soon no longer support Setup projects:

http://blogs.msdn.com/b/buckh/archive/2011/03/17/visual-studio-setup-projects-vdproj-will-not-ship-with-future-versions-of-vs.aspx



No comments:

Post a Comment