service1<-executable<-service2
The executable will populate the database which the second service needs. The first service is to start the db.
I have this:
Code: Select all
[other code to create folders,install files, extract files etc....]
Control Service Database: start on install [wait for completion]
Apply Install (get result into variable SUCCESS)
Run Program populateDatabase.exe (WAIT)
Control Service Service2 start on install [wait for completion]
Apply Install (get result into variable SUCCESS)
I notice that after the last apply install it forces the Finish dialog to prompt the user to reboot as opposed to the finish checkbox.
I *think* the second call to Apply Install triggers the creating/installing of files again, which might make the windows installer think to reboot since it's overwriting files, but I'm not sure.