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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Runtime error 76: path not found error VB6 program on Windows 7 3 332
Problem to skip loop 6 55
to transfer string from C lanaguage to VBA 4 57
TT Auto Dashboard 13 85
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…

896 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