Changing the installation path in a Setup and Deployment project

I had created a Setup and Deployment project for a WPF application I had created. I noticed that when I installed the project, the path was being installed in the directory c:\Program Files\Awesome Place\FileTracker. As awesome as “Awesome Place” is, I didn’t want my application installed there – I wanted it installed at c:\Program Files\FileTracker.

What would Dr. Smith of Lost in Space fame do? He would say “the pain, the pain”, and then try to sabotage the Robinson family. That wasn’t going to help me, though, so I did some Google searching. And behold, I found the answer on Daniweb.

Here are the steps needed:

  1. Right click on the deployment project in the Solution window and select View, File System.
  2. Click on the Application Folder. Notice in the Properties window, the list of properties is refreshed, and one of the properties is DefaultLocation.
  3. Change the format to [ProgramFilesFolder]\[ProductName], removing the [Manufacturer] property from the mix.

(Click on the image to see a larger view.)

Change installation path of a Setup and Deployment project

Change installation path of a Setup and Deployment project

After you rebuild the deployment project, you can verify that the change has been made by right clicking on the deployment project and selecting Install. Stepping through the installation process, you’ll see that the target location is now the one that you want.

  1. #1 by Cristina on December 18, 2012 - 8:36 pm

    Thank you! this was exactly what I was looking for.

    • #2 by or Kun on January 14, 2014 - 6:22 am

      yest it work well

  2. #3 by NoZparker on July 24, 2014 - 6:52 pm

    I knew that but I couldn’t for the life of me remember. All searches was answered as though they had not read the question properly

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: