Service installation is not working - Advanced Installer Community
eshiva
Posts: 23
Joined: Tue Jul 09, 2013 12:35 pm

Service installation is not working

Hi,

I am using the advanced installer 10.3 (Purchased version). I want to run my executable (.exe) as service from this installer. I added the relative fields in the service section. (Resources -> Services, Services to install, Control operations). Here i provided service file from the APPDIR (APPDIR\myservice.exe). Build the project. But during the installation i am getting a error like do not have the privilages (Please see attachment for error report).

And one more thing is i want to customize the Spring theme like i need browse dialog for installation path selection (instead of "InstallTypeDlg") and add the desktop, start menu shortcuts in the exit screen. Also exit screen has a checkbox for pc reboot, while selecting this checkbox PC has to reboot without any other dialog. I need MSI file. I am unable to customize the dialog boxes.

Regards,
Shiva
Attachments
Service_error.jpg
Service_error.jpg (20.03 KiB) Viewed 12101 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Service installation is not working

Hello,
I am using the advanced installer 10.3 (Purchased version). I want to run my executable (.exe) as service from this installer. I added the relative fields in the service section. (Resources -> Services, Services to install, Control operations). Here i provided service file from the APPDIR (APPDIR\myservice.exe). Build the project. But during the installation i am getting a error like do not have the privilages (Please see attachment for error report).
Can you please set the installation type, from "Install Parameters" page, to “Per-machine only( fails if user is not administrator)” and see if the behavior still persist? If so, can you please try to manually install and start the related service on target machine and see if it successfully starts?
And one more thing is i want to customize the Spring theme like i need browse dialog for installation path selection (instead of "InstallTypeDlg")
You can delete the “InstallTypeDlg” and add the “ConfigureDlg” in the Install Sequence.
add the desktop, start menu shortcuts in the exit screen.
In order to achieve that you can add “ShortcutsDlg” predefined dialog in the Install Sequence.
You can take a look on “Create schortcut” article which may be helpful to you.
Also exit screen has a checkbox for pc reboot, while selecting this checkbox PC has to reboot without any other dialog.
You can follow our “Restart the machine after the installation” how-to steps.
Also you can enable “Perform the reboot if required without showing any prompts” if you want to reboot automatically without prompting the user.
I need MSI file. I am unable to customize the dialog boxes.
Please keep in mind that in order to build a MSI package you need to use the "Classic" theme. All others themes from our "Themes" page require our "Enhanced User Interface" feature to be enabled. Also, when the Enhanced UI feature is enabled, then the built package type it is mandatory be an EXE package.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eshiva
Posts: 23
Joined: Tue Jul 09, 2013 12:35 pm

Re: Service installation is not working

Hi Dan,
Can you please set the installation type, from "Install Parameters" page, to “Per-machine only( fails if user is not administrator)” and see if the behavior still persist? If so, can you please try to manually install and start the related service on target machine and see if it successfully starts?
Installation type is already set to "Per-machine only( fails if user is not administrator)" only. Still i am getting this error. I am able to run, start and stop the service manually. Presently i am running service using batch file. During uninstall restart dialog box is appearing. How to remove this. I am stopping/removing the service using batch file but this uninstallation asking PC restart. (See attachment)
In order to achieve that you can add “ShortcutsDlg” predefined dialog in the Install Sequence.
You can take a look on “Create schortcut” article which may be helpful to you.
From the Files&Folder menu i can set shortcuts but these shortcuts only be displayed based on my checkbox selection and i want to make my own checkboxes for the shortcuts instead of using shortcuts dialog box.
Attachments
Uninstall_Error.jpg
Uninstall_Error.jpg (22.71 KiB) Viewed 12070 times
eshiva
Posts: 23
Joined: Tue Jul 09, 2013 12:35 pm

Re: Service installation is not working

Hi Dan,
Please keep in mind that in order to build a MSI package you need to use the "Classic" theme. All others themes from our "Themes" page require our "Enhanced User Interface" feature to be enabled. Also, when the Enhanced UI feature is enabled, then the built package type it is mandatory be an EXE package.
Based on above response i have chosen MSI package which has to be customized dialog boxes. Even though from classic theme i am unable to work with "InstallDlg", still it requires enhanced user interface. What should i do now. How can i achieve my requirements to modify the dialog boxes.

If i select "InstallDlg" from MSI installer, Licence agreement hyperlink is redirecting to some where else like "explorer.exe". Same project without any changes except package type= EXE is working fine. Whats the wrong in MSI.

And can you please tell me what i can achieve with "package type= MSI". I did not find any help documentation which tells for what feature EXE package is needed.

Regards,
Shiva
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Service installation is not working

Hello,
Hi Dan,
Can you please set the installation type, from "Install Parameters" page, to “Per-machine only( fails if user is not administrator)” and see if the behavior still persist? If so, can you please try to manually install and start the related service on target machine and see if it successfully starts?
Installation type is already set to "Per-machine only( fails if user is not administrator)" only. Still i am getting this error. I am able to run, start and stop the service manually. Presently i am running service using batch file. During uninstall restart dialog box is appearing. How to remove this. I am stopping/removing the service using batch file but this uninstallation asking PC restart. (See attachment)
This warning message appears when the service is already running. In order to avoid this warning message and stop the service if it is running you can go in the “Custom Actions” page and add our “Stop Service ” predefined custom action with sequence. Edit the “Service name:” label to the service that you need to be stopped.
You can add the “StopService” custom action in the installation sequence before the “Install Execution Stage” >> “Search” sequence.
In order to achieve that you can add “ShortcutsDlg” predefined dialog in the Install Sequence.
You can take a look on “Create schortcut” article which may be helpful to you.
From the Files&Folder menu i can set shortcuts but these shortcuts only be displayed based on my checkbox selection and i want to make my own checkboxes for the shortcuts instead of using shortcuts dialog box.
You can create conditional shortcut which will be installed based on the user choice. You can take a look on Create Shortcut based on checkbox status thread which debates a similar issue.
Please keep in mind that in order to build a MSI package you need to use the "Classic" theme. All others themes from our "Themes" page require our "Enhanced User Interface" feature to be enabled. Also, when the Enhanced UI feature is enabled, then the built package type it is mandatory be an EXE package.
Based on above response i have chosen MSI package which has to be customized dialog boxes. Even though from classic theme i am unable to work with "InstallDlg", still it requires enhanced user interface. What should i do now. How can i achieve my requirements to modify the dialog boxes.

If i select "InstallDlg" from MSI installer, Licence agreement hyperlink is redirecting to some where else like "explorer.exe". Same project without any changes except package type= EXE is working fine. Whats the wrong in MSI.
Indeed, the “InstallDlg” requires the "Enhanced User Interface" feature to be enabled, therefore an EXE package type. In order to use an MSI package type you can delete the “InstallDlg” dialog and add instead the “FolderDlg” and the “LicenceAgreementDlg” dialogs.
And can you please tell me what i can achieve with "package type= MSI". I did not find any help documentation which tells for what feature EXE package is needed.

We don't have a predefined article where you can find out what options are available depending the output package type(.msi or .exe), but every time when your package is set as a .msi and enable an option which require an .exe output, a waning message is displayed in the bottom-right corner of the Advanced Installer.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mknoblock
Posts: 4
Joined: Sat Mar 27, 2010 4:51 pm

Re: Service installation is not working

I have exactly the same problem: installing a service with an MSI, on a Windows 2012 target. The service is created and installed, but the installer hangs trying to start it. If you go into the Services Manager you can't start it manually either: "... failed to start. Verify that you have sufficient privileges to start system services".

If I go to the target machine and copy the service EXE I can install it with the command line, then start it with no problem in the SCM.
eshiva
Posts: 23
Joined: Tue Jul 09, 2013 12:35 pm

Re: Service installation is not working

Hi,
Please resolve this issue ASAP.
Can you please set the installation type, from "Install Parameters" page, to “Per-machine only( fails if user is not administrator)” and see if the behavior still persist? If so, can you please try to manually install and start the related service on target machine and see if it successfully starts?


Installation type is already set to "Per-machine only( fails if user is not administrator)" only. Still i am getting this error. I am able to run, start and stop the service manually
See the attachment "Service_error.jpg" from first reply on this post.

Regards,
Shiva
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Service installation is not working

Hello,

Please take a look on our Why do I receive the "Verify that you have sufficient privileges to start system services" message? FAQ which debates a similar issue.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”