Solved

Can I include a file folder that will hold master spreadsheet and instuction manuals using the Package and Deployment wizard of VB6

Posted on 2007-11-30
3
150 Views
Last Modified: 2010-04-30
When I run the Package and Deployment wizard in VB6.0 I am trying to add a file folder that will hold a master spreadsheet and two differant formats of an instruction manual. Can this be done through the wizard or do files folders need to be copied into specific directories. If it can be done by the wizard, I will need some instructions.
0
Comment
Question by:GeneSchneider
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
3_S earned 250 total points
ID: 20385734
Add this in the startup of you program (form load of your startup form)

if dir("c:\test",vbdirectory) = vbnullstring then
   MKDir ("c:\test")
end if

you can change the directory with app.path so you do not have to specify the drive in the installation package.  
This is a better solution than just add the folder creation in the installation. Now when the directory gets deleted, it wil be automatically recreated when the user restarts the program.

Maybe i did not get the question correctely and you mean that the master file and manuals needs to be included in you installation package.  This can be done by
run the package and deplopy wizard and on the following steps
included files
       select the files you want to include with the add button
install location
       change the path of the files to whatever path you want the files into after the installation
0
 

Author Comment

by:GeneSchneider
ID: 20386883
I have a spreadsheet that if constructed in such a way to collect information gathered by my VB program. It is too complicated to open Excel and recreate it so I made a master spreadsheet and I open it everytime I run my VB project. When VB project is done collecting data it saves the spreadsheet a differant name. This is why I need it in a file folder and need to include it in my distribution package. I would like to put the saved file in a differant file folder that the program itself.

Are you saying I can add the files to folders when I run my setup wizard? Can I have more than one folder?
Thanks for your help. It's greatly appreciated...
0
 

Author Closing Comment

by:GeneSchneider
ID: 31412032
Thanks for the help. It worked great once I understood what I was doing.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question