我没用过InstallShield,但是我用过其他的工具打包过MySQL,而且我觉得用什么工具打包都不重要,重要的是够安装后MySQL能够正常运行。这里有两个打包MySQL是需要注意的问题: 第一个是MySQL的配置文件my.ini里面的两个路径是和安装路径绑在一起的。 [code=INIFile] #Path to installation directory. All paths are usually resolved relative to this. basedir="install.dir/MySQL Server 5.0/"#Path to the database root datadir="install.dir/MySQL Server 5.0/Data/" [/code] 第二个是把MySQL注册成系统服务(如果使用Windows) [code=BatchFile] mysqld-nt -install mysqlservicename net start mysqlservicename [/code]
第一个是MySQL的配置文件my.ini里面的两个路径是和安装路径绑在一起的。
[code=INIFile]
#Path to installation directory. All paths are usually resolved relative to this.
basedir="install.dir/MySQL Server 5.0/"#Path to the database root
datadir="install.dir/MySQL Server 5.0/Data/"
[/code]
第二个是把MySQL注册成系统服务(如果使用Windows)
[code=BatchFile]
mysqld-nt -install mysqlservicename
net start mysqlservicename
[/code]