Change deployment directory in Visual Studio 2005 Setup Project - Compact Framework

Hi All,

I'm trying to get a deployment project for my VB.NET 2005 CF app to install to a disk\folder called...

\Flash Disk\RFCheck

In the Solution Explorer, I choose the Primary Output item, then in the "Folder" property, I can choose from several predefined locations (Application Folder, Program Files Folder, Start Menu Folder, Startup Folder, Windows Folder, etc.)

None of them, of course, refer to the flash drive on the device.

I'm guessing I have to redefine what one of those locations means, but I don't know how to do it.

Thoughts?

Thanks,
Bret
FOS-BretAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jmcmunnCommented:
You will not be able to "redefine" these folders for your users.  They are windows installer properties that always pull from the settings on a users machine.  Thus, unless the user happens to have one of these settings (like their documents or something) pointed there, it will always contain the normal default value.

What you should be able to do (I have not tested it with a path such as yours) is to add this path to the "File System on Target Machine" choices in the right hand window when you are viewing the Setup Project.  You can right click and hit "Add Special Folder" and then at the very bottom there is an option for "Custom Folder".  You can try typing your path in there.

I did this in VS2008 so hopefully the directions are close enough to being the same to help...let me know if not.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
FOS-BretAuthor Commented:
Sorry for the delay. This is a work thing and I wasn't here over the weekend.

I tried to add a Special Folder, then choose Custom. It lets me create one, but only lets me give it a name. There's no property for location (see attached a screen shot). I tried naming the custom folder "\Flash Disk\", but it won't let me use those characters.

Thoughts?

Thanks,
Bret
vs2010-Special-Custom-Folder.jpg
0
jmcmunnCommented:
In 2008 it did let me created the folder with the slashes in the name...

Have you considered using a different free program to author the install for this?  If it is a simple project, it would be easy to find enough information to get going on something free like NSIS.  (Nullsoft Installer)
0
FOS-BretAuthor Commented:
Hey,

OK. I thought I had to use the "path" of the folder for the name, but it turns out that it likes "Flash Disk" just fine in the name (no slashes). Once I added "Flash Disk" and dragged everything into that folder, it worked as desired.

Thanks for the help. I appreciate it.

Bret
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Installation

From novice to tech pro — start learning today.