rnv.kalz
Posts: 19
Joined: Wed Apr 20, 2011 9:54 pm

Init Events on Exit Dialog

Hello,
We are using Advanced Installer 8.6 and we need to perform "DoAction" after the installation completes and just before we see the Exit Screen with the finish button. We do not have an option to add the Init Events on Exit Screen. All we want to do is call a .NET WIX methods and perform some clean up. currently we are doing it on the Finish button click. But we really want to do that on Init Events so that the user is not forced to click on the finish button. Is there any other way to achieve this.

Please help. Please see the attachment.
Please see the attachment.
Please see the attachment.
installExit.png (62.93 KiB) Viewed 5666 times
Thank you.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Init Events on Exit Dialog

Hello,

Instead of "SetProperty" and "DoAction" control events, you can schedule "Property set with Formatted" and regular custom actions after "InstallExecuteSequence" -> "PublishProduct" standard action. The custom actions should be set as "Deferred with no impersonation".

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rnv.kalz
Posts: 19
Joined: Wed Apr 20, 2011 9:54 pm

Re: Init Events on Exit Dialog

Thanks for the reply Mihai.. unfortunately, it did not work. I need to pass the Install Parameters to the .NET WIX methods and the "deferred with no impersonation" does not take the install parameters and it is rolling back the installation. if i select "Immediate execution" it is not even calling the dll. what is the best way to send parameters to the .NET WIX methods after the installation completes and before the user see the finish screen.
It will be great if you could provide an example.

This is what i tried. Please see the attached image.
Untitled1.png
Untitled1.png (164.18 KiB) Viewed 5654 times
Untitled2.png
Untitled2.png (125.56 KiB) Viewed 5654 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Init Events on Exit Dialog

Hello,

First off, you should be using public properties (all uppercased letters).

Also, we have the "How do I create fully fledged C# custom actions?" related article. You can try to follow the "Get / Set properties from C# custom action" section.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rnv.kalz
Posts: 19
Joined: Wed Apr 20, 2011 9:54 pm

Re: Init Events on Exit Dialog

Thanks Mihai.

Return to “Common Problems”