rosen.nedialkov
Posts: 19
Joined: Wed Feb 07, 2007 11:43 am
Contact: ICQ

Rollback and custom properties

Hello,
I have a problem with installation rollback and the custom properties. I am installing our services via a DLL custom action and I use a custom properties (in Install Parameters -> Properties) to set their params. I have to run an custom action after installation and if the later fails then I must uninstall all components. I had prepared an custom action to remove my services/drivers during rollback but it seems that the Custom properties are not supplied during rollback. Can you please help me with an idea?

P.S. I could try to use the Drivers dialog with INF files, but please save me a little time and tell me if the drivers are removed properly during rollback ?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Rollback and custom properties

Hi,
it seems that the Custom properties are not supplied during rollback.
This is because the rollback custom actions are deferred and do not have access to installer properties. If you create a rollback custom action you need to use hard-coded parameters.
I could try to use the Drivers dialog with INF files, but please save me a little time and tell me if the drivers are removed properly during rollback ?
If you use the Drivers page the drivers will be removed correctly during rollback. However, if the drivers are installed through a custom action they can be removed during rollback only through another custom action.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”