This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Restart an application- Installshield 2009
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Jun 12, 2009
03:19 PM
Restart an application- Installshield 2009
Hey,
I'm building a installer where I have the Apache exe file. I wrote a couple of script to control few aspects of my installer.
Now I have one issue, I need to delete the httpd.conf( hope so the extension is .conf) which is in the apache and copy my http.conf to apache\\apache2\\conf and RESTART my apache monitor.
Hope I can do the delete part with the below script:
if(DeleteFile(DEL_DIR ^ DEL_FILE) < 0) then
MessageBox("Delete failed.", SEVERE);
else
MessageBox("File Deleted.", INFORMATION);
endif;
Is there a script that helps me to RESTART apache monitor once the httpd.conf is copied to apache?
Thanks
Rachel
I'm building a installer where I have the Apache exe file. I wrote a couple of script to control few aspects of my installer.
Now I have one issue, I need to delete the httpd.conf( hope so the extension is .conf) which is in the apache and copy my http.conf to apache\\apache2\\conf and RESTART my apache monitor.
Hope I can do the delete part with the below script:
if(DeleteFile(DEL_DIR ^ DEL_FILE) < 0) then
MessageBox("Delete failed.", SEVERE);
else
MessageBox("File Deleted.", INFORMATION);
endif;
Is there a script that helps me to RESTART apache monitor once the httpd.conf is copied to apache?
Thanks
Rachel
(22) Replies
‎Jun 22, 2009
10:44 AM
Based on:
http://helpnet.acresso.com/robo/projects/installshield11langref/SERVICE_PARAMS.htm
SERVICE_IS_PARAMS only works with OpenSCManager, CreateService, or ChangeServiceConfig calls.
ServiceStartService should stop the service and restart it. Using ServiceStopService then ServiceStartService, just allows you to verify it stopped. You were wanting to see if stop from the orginal posting, correct?
I'm going to need a recap of where your are. I'm starting to think back and look at the postings up to this point and I'm not sure where the problem is anymore. If your saying that the Service isn't stopping at all when ServiceStopService is being called, then there is a problem with your install. I would try reinstalling InstallShield. Originally you said that if you have a messagebox between ServiceStopService and ServiceStartService everything works, but your also saying that you don't see it stop without the MessageBox. Does that mean it's not stopping or you just dont see it stopping? So I'm unclear where the problem is.
http://helpnet.acresso.com/robo/projects/installshield11langref/SERVICE_PARAMS.htm
SERVICE_IS_PARAMS only works with OpenSCManager, CreateService, or ChangeServiceConfig calls.
ServiceStartService should stop the service and restart it. Using ServiceStopService then ServiceStartService, just allows you to verify it stopped. You were wanting to see if stop from the orginal posting, correct?
I'm going to need a recap of where your are. I'm starting to think back and look at the postings up to this point and I'm not sure where the problem is anymore. If your saying that the Service isn't stopping at all when ServiceStopService is being called, then there is a problem with your install. I would try reinstalling InstallShield. Originally you said that if you have a messagebox between ServiceStopService and ServiceStartService everything works, but your also saying that you don't see it stop without the MessageBox. Does that mean it's not stopping or you just dont see it stopping? So I'm unclear where the problem is.
‎Jun 22, 2009
04:36 PM
Hey Gavin,
Thanks for your reply. No worries, I figured out the problem. Actually in my PID(httpd) file the document root was Apache\Apache2\Example_TEST. But inside my apache I had renamed the file Example_TEST to Example_TEST1. So I had to change the TEST to TEST1 in httpd and then the restarting worked.
Thanks again
Rachel
Thanks for your reply. No worries, I figured out the problem. Actually in my PID(httpd) file the document root was Apache\Apache2\Example_TEST. But inside my apache I had renamed the file Example_TEST to Example_TEST1. So I had to change the TEST to TEST1 in httpd and then the restarting worked.
Thanks again
Rachel