Trying to install Arc files with setup project

Discussion created by Holywhippet on Sep 12, 2011
Latest reply on Sep 13, 2011 by Neil
I've got an a set of tools that I've developed for Arc. When my software installs, it needs to deploy a bunch of different files (mostly help files). These need to be installed in a very specific directory on the target PC. The problem is, we've started moving to Windows 7 64-bit at work. On the old PCs, the files need to be installed at C:\Program Files\ArcGIS\Desktop10.0\help\gp

But on the new OS they need to be installed at C:\Program Files (x86)\ArcGIS\Desktop10.0\help\gp

The location is based on where ArcGIS is installed rather than where I am installing my software. I've also got a toolbox file that I need to install in the toolbox directory with a similar problem.

Arc does create an enviroment variable called ARCHOME which points at the install location for Arc on a the current PC.

I'm using the standard setup project that comes with Visual Studio 2010 and I'm trying to set up a target folder in the installer so that the files will install correctly on either OS. I figure I need to reference the environment variable in the default location property to get the correct path. But I can't figure exactly how to do this.

Any suggestion please?