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
145 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

705 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now