vb_programmer
Apr 30th, 2006, 07:31 AM
Hello!
I'm installing a Windows Service Application using Inno Setup. The windows service is an external IP address check service and that obviously needs to be registered as Service by installer itself. As Inno Setup does not provide direct support for installing Windows Service (if so, then at least I don't know how; please let me know!); I have programmed a command line switch for my Application EXE itself which registers Windows Service. I have created a Task as "Register Windows Service" and if selected I want Inno Setup to register the Service. I also have set "Restart" flag for this Task which will make the Installer to Restart User's PC.
Now, the problem is ...
[1] Installation of Service with command line is NOT set as PostInstall as I installer immediately restarts the PC without registering the Service properly. On some PCs, the program registers Service properly; but on some PCs, "Active-X component can not create object" error is shown. This means that Service installation param is passed to my EXE by Installer even before all needed ActiveX components are installed and registered on User's PC. How can I solve this issue?
[2] This second problem is regarding appearance of Inno Setup Installer. I have created a Page in InitializeWizard procedure. That page appears before my EULA :: Agree/Disagree page. Any suggestion to get my custom wizard page after EULA?
I'm waiting for your valuable reply.
Regards,
Ruturaj.
I'm installing a Windows Service Application using Inno Setup. The windows service is an external IP address check service and that obviously needs to be registered as Service by installer itself. As Inno Setup does not provide direct support for installing Windows Service (if so, then at least I don't know how; please let me know!); I have programmed a command line switch for my Application EXE itself which registers Windows Service. I have created a Task as "Register Windows Service" and if selected I want Inno Setup to register the Service. I also have set "Restart" flag for this Task which will make the Installer to Restart User's PC.
Now, the problem is ...
[1] Installation of Service with command line is NOT set as PostInstall as I installer immediately restarts the PC without registering the Service properly. On some PCs, the program registers Service properly; but on some PCs, "Active-X component can not create object" error is shown. This means that Service installation param is passed to my EXE by Installer even before all needed ActiveX components are installed and registered on User's PC. How can I solve this issue?
[2] This second problem is regarding appearance of Inno Setup Installer. I have created a Page in InitializeWizard procedure. That page appears before my EULA :: Agree/Disagree page. Any suggestion to get my custom wizard page after EULA?
I'm waiting for your valuable reply.
Regards,
Ruturaj.