PDA

View Full Version : Setup Factory 6 / MySQL



stOrMOnE
12-15-2003, 01:06 PM
Hi there...

Hello I need to asked for mysql help because of Setup Factory...

I mean (kinda hard to explain for me) My Application connects to a MySql database so I want to make sure if I install my Apllication on the target pc, that it will run without any problems...

So I need to know what kind of Setup I need to build (what do I need to include?)

I also don't know if I need to install runtime packages on the target also i couldn't find any for MySQL...

On the other hand if I find any how to define the Setup then and will Setup Factory support MySQL then?

sorry for my chaostic question due to my bad english knowledge...

best regards
s!

stOrMOnE
12-17-2003, 09:12 AM
Well not really sure about it but I saw that some dll's for Mysql need to be exist on the target machine so I just copy them to the system folder via Setup Factory, hopefully thatsall what I needed to do...

regards
s!

bab
12-29-2003, 12:41 PM
I don't know if this will help you or not but I'll tell you what I am doing. I am building an installer that has to create and connect to a MySQL database. In this case they are both on the same server. We have decided to make MySQL a prerequisite to our install rather than trying to run the MySQL install from within our install.

What I have done is to place some checks in the Startup Actions section. First I look for the existence of the MySQL reg key (HKLM\SOFTWARE\MySQL AB). This gives you a clue that it might be installed. Then I search for mysql.exe. Based on this I set a variable to use on an abort screen to stop the install if MySQL is not found.

There are additional checks you could make but it depends on what you are trying accomplish. I would not recommend just copying dlls as there may also be other things that need to be set up that this approach would miss.

I hope this at least gives you a starting point.

Barb