|
-
Jun 1st, 2007, 03:40 PM
#1
Installation issues
Hey..
This is the first time I made an installation package for my program. I did it because I need it to include a few OCX files...
I used the Package and Deployment wizard that came with my VB6 installation.
I have a few questions:
1. I have two txt files (a readme file and some preset file) which the program needs to open sometimes. In the program, the location of these files is fixed to "App.Path & \readme.txt" (in the case of the readme file).
How can I include the readme.txt file to install itself into whatever directory the user chooses during installation?
2. I'm using a connection to an acces database (mdb) file in my program. I had to set up a ODBC connection for this to work.
Is this done automatically during installation? Or do I need to do something else for this to work?
Thanks!
-
Jun 1st, 2007, 05:12 PM
#2
Re: Installation issues
Do yourself a favor do not use a ODBC connection. Use a OLEDB DSN-Less connection to connect to the database. You won't need any extra steps in your installation for this to work. Actually you will need less than ODBC. You can find connection strings in my signature.
Hopefully you are using ADO code to connect and to operate on your database to help you avoid further woes. Look in the Database Forum in the FAQ's for a tutorial and read Database Problems also.
-
Jun 1st, 2007, 05:16 PM
#3
Re: Installation issues
1) Add the files (in the Add ... button), and set the path to $(AppPath) for those files in the list of files a few screens later.
2) How are you setting up that connection? If it's a connection string, just use "..." & App.Path & "\filename.mdb;..." in the connection string (where "filename" is the name of your mdb file).
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Jun 2nd, 2007, 03:31 AM
#4
Re: Installation issues
I don't think im using ADO code... never heard of it :P
I know only one way to communicate with the database and I know it's a very old way but yeah... It does what I need ^^
I'm using the Microsoft Remote Data Control (6.0) (MSRDC) to connect to the database...
Thanks Al42, I will see if I can do that...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|