App-V Application Service Issue

During sequencing of an application I received an error about the services (App-V Sequencer 4.6). The installer of the application installs a service that is required for the application. Normally the installer starts the service and continues the installation but this time the following error message occurred.

The installer cannot start the service and the installations failed.
The retry button tries to start the service again but the error returns. In the services.msc it is not possible to start the service or check the properties of the application services.
When opening the properties I received the following error.

When I try to start the service I received the following error.

I exported the service settings from the registry under the following key.

With the information I can re-create the services manually.
I removed the registry key and removed the service with SC.exe using the following command.

Note: Make sure the Services.msc is closed.

With the information from the export it is possible to re-create the services. I used the following command and parameters.

Note: The parameters are depending on the requirement of the services.

To start the services you can open the Services.msc or use the following command.

After these steps it was possible to continue the installation finish the App-V package.
If you have any comments or questions, please leave a comment.