We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ruck64
Posts: 57
Joined: Wed Jul 24, 2019 8:46 pm

Rollback issue with services

I create a service. However, it may fail at some point. I dont use youre built in service handler since it does not function in a way we need. So if the service fails I would expect the service to be deleted. However, it isnt. It there some way I can catch the installer failing and have it perform a custom action upon roll back?
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Rollback issue with services

Hello Luther,

Everything that is done in a custom way in a project, must be undone in a custom way as well.

For instance, if you install a service in a custom way, you must uninstall it in a custom way on rollback as well.

For instance, if you create your service using the built-in sc.exe tool:

e.g.: sc.exe create ServiceName binpath="<some_path>"

you must have a custom action that will run during the rollback which will undo that:

e.g.: sc.exe delete ServiceName

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”