[CMake] CPack, optional files and windows service
Bo Thorsen
bo at askmonty.org
Tue May 11 04:45:23 EDT 2010
Hi everyone,
I'm currently working on creating a windows installer for MariaDB (MySQL
replacement, see http://www.mariadb.org). It's going quite well, and the
installer seems to be working. I'm quite amazed at how simple it has
been so far :)
I have two things I'm working on that are not so easy to do, and I
haven't found any links online to documentation on how to do this. I
hope some of you can help me with this or send me the links I couldn't find.
1) I have to make some of the files optional. When uninstalling the
MariaDB server, it should ask if the user wants to delete the database
files are keep them. Same on installing, since there might already be
database files there. I can't figure out how to make CPack ask if it
should write/delete these files. Putting the files in a separate
component is not enough - the user has to make the decision conciously.
Any ideas?
2) The database server should be installed as a Windows service. Again,
the user should probably be asked about this, but this might be a
component. Are there any examples on how to register a service using
cpack, and how to create start menu links for starting and stopping the
service?
I hope you have some good ideas on how to do this. If you only have some
of the answer, just give me that and I'll work with it.
Cheers,
Bo Thorsen,
Monty Program AB.
More information about the CMake
mailing list