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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

840 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