Hello there,
Im just looking into NSIS as i am trying to make a simple installer that installs PHP/MySQL and a website... got the website to install fine, can get the PHP files to install fine and can get the MySQL files to install fine.
The problem im facing now is that im going to want to edit IIS so that it knows PHP is there, and also start the MySQL service. As im fairly new to this anything passed making sections and adding files to install im a bit lost, so anyone have any info on what im trying to do, or even a link to where i may find out about this?
Oh! and also while im here i cant seem to find the information out anywhere on the site or in the documentation. How do i go about adding version/company details to the actual EXE so when i go to properties it comes up with the data there?
Services and NSIS
2 posts
I'm doing something similar with Apache web server and PHP. I'm not too familiar with IIS, but if it has a configuration file you can do a search->replace using the ReplaceInFile function:
I have the string "__PHP__" in my httpd.conf file, and whatever the string is for the PHP path, let's say "C:\PHP", I just do this:
!insertmacro ReplaceInFile "httpd.conf" "__PHP__" "C:\PHP"
That worked for me. As far as starting the MySql service, find out what the service is called. I'll assume it's called "mysql". Then use the following command:
Exec '"net" start mysql'
In theory this should work.
Joe
I have the string "__PHP__" in my httpd.conf file, and whatever the string is for the PHP path, let's say "C:\PHP", I just do this:
!insertmacro ReplaceInFile "httpd.conf" "__PHP__" "C:\PHP"
That worked for me. As far as starting the MySql service, find out what the service is called. I'll assume it's called "mysql". Then use the following command:
Exec '"net" start mysql'
In theory this should work.
Joe