-
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!
-
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.
-
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).
-
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...