Installation Problem!

I want to create a setup program using the Package and Deployment Wizard. As a result, a setup.exe is generated. After running the setup, the program is installed. It actually copies the MyProgram.exe to the pre-defined folder. Normally, C:\Program Files\My Program\MyProgram.exe.

My program will access db which is expected to be located in C:\Program Files\My Program\DBfolder\.

However, the PDW do not create the folder \DBfolder for me. So what should I do?
chpchaiAsked:
Who is Participating?
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.

itzmeCommented:
You could get one of the installation wizards free on the net and add the setup files and the db to that installation with the only addition the db.
0
chpchaiAuthor Commented:
Any installation wizard recommended? And where to get it?
Does the Visual Studio installer work?
0
saurabhguptaCommented:
Hi itzme,
I would highly recommend Inno Setup (http://www.jrsoftware.org/isinfo.php). It has got quite a lot of advanced features like expensive installers and its Free! Inno setup also has many third party extensions(mostly free), enabling you to have additional functionality in your setups.
It has a very powerful and flexible scripting. You can easily create installation scripts for it with another free GUI tool ISTool (http://www.istool.org/).


Regards
Saurabh
0
Éric MoreauSenior .Net ConsultantCommented:
PDW will create the \DBFolder iff you place a file (even a dummy one) into it. When you specify the installation path, you can tell ($AppPath)\DBFolder

Another method is to have your applicationi create the folder at runtime if the folder is missing.
0
AlexFMCommented:
In one if the PDW steps (third from the end) it shows full list of the package files in list:
Name  Source   Install Location.

Edit Install Location for your database:
instead of  $(AppPath) type $(AppPath)\DBFolder
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
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
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.