Archive: my.ini file (basedir & datadir)


my.ini file (basedir & datadir)
hallo everyone,

I want to make an installscript for MySQL.
There is one think that is not working. I want that in the my.ini file the basedir and the datadir will automatic change to the path
that the user select with the installation.

Can somebody help me??
Thanx Tulp


I've got a fairly elaborate script that you might be able to cut/paste from, which may address some of the issues you ask about.

It started with testnotify.nsi, and uses .onInit to read registry entries and environment variables. Based on that, it detects previous installations, and decides whether to display a custom page. It reads from and writes to the fields in the .ini file based on registry entries and what the end-user selects. It uses the MUI.

With some "trial and error" it is able to keep track of $INSTDIR even when the person doing the install goes back and forth between pages.

If you think that this would apply and might be helpful, I can try to clean it up and make available.


Thank you for your replay!

I am doing a project, and so I can't use any other tools or things... I only have to know is how the basedir & datadir automatically will register the path if a user select an installation directory.
example.

basedir="C:/MySQL/"
datadir="C:/MySQL/Data/"

If the end user install the mysql in "Newdir", it have to change in this:

basedir="C:/Newdir"
datadir="C:/Newdir/Data/"

Is it possible to do somethink that I can get this results?
Thank you
Tulp