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!

merlinuk
Posts: 5
Joined: Mon Jan 19, 2015 11:14 pm

SendCollectedData after Install and Uninstall

Is it possible to use the Custom Action SendCollectedData to send data after the install as completed successfully ? If so how do I do it...

Also the same question, I want to send data after an Uninstall has completed.

Thanks in advance!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: SendCollectedData after Install and Uninstall

Hello and welcome to Advanced Installer forums,

Yes, you can use the Send install information to your web server custom action to send data to your webserver.

Depending your scenario, you can set a property with related information and send it though the property list of the predefined Send install information to your web server custom action. For details please see: Collect installation data and send it to a web server.
You can also take a look on the What is the maximum number of characters that can be stored in a Windows Installer property thread which may be useful to you.

So, in the CustomActions view, you can add the predefined Send install information to your web server custom action as a custom action with sequence and schedule it to be only executed during the Install process and Uninstall process. You can add this custom action after the Finish Execution stage.

If you use this functionality you should disclose the information to be collected to the user and ask for his permission before sending any information to the web server. We strongly recommend that you display Privacy Policy document detailing what information you collect and how you intend to use it.

Please let us know if that helped, otherwise give us more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
merlinuk
Posts: 5
Joined: Mon Jan 19, 2015 11:14 pm

Re: SendCollectedData after Install and Uninstall

Hi Dan,

It does not help me :-(

I cannot add the custom action SendCollectedData to the Installation Sequence.... how do you do that ?

So far I've been calling SendCollectionData from an Init Events from the Dialogs which is just not working how I want it.

I've attached a screen shot of what I am seeing...
screen-shot.jpg
screen-shot.jpg (80.13 KiB) Viewed 2853 times
As you can see I have created the custom action SendCollectedData but it does not show within the Installation Sequence for me to move ?

Hope this makes sense?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: SendCollectedData after Install and Uninstall

Hi,

This is happening because you have added your custom action as a custom action without sequence.
Please make sure you have added your custom action as a custom action with sequence.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
merlinuk
Posts: 5
Joined: Mon Jan 19, 2015 11:14 pm

Re: SendCollectedData after Install and Uninstall

Hi Dan,

I only seem to have the option to add the custom action SendCollectedData without sequence ?
screen-shot-2.jpg
screen-shot-2.jpg (53.36 KiB) Viewed 2837 times
Any ideas?

Thanks
Ron
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: SendCollectedData after Install and Uninstall

Hi Ron,

I apologize I misunderstood your specific scenario, indeed the SendCollectedData can only be added as a custom action without sequence.

In this case, you can add the custom action to be executed on the [ Finish ] button from the ExitDialog dialog on the First Time Install dialogs sequence as a published event. So, the custom action will be executed when hitting the [ Finish ] button from the ExitDialog.

Please note that when uninstalling from Control Panel, no dialog will be displayed. However, you can execute the custom action during uninstall too, but you need first to check the Disable Remove option from the Product Details page. This way, the user will need to run the installer in maintenance mode in order to uninstall the application. Then, on the [ Finish ] button from the ExitDialog dialog on the Maintenance dialogs sequence you can add the custom action as a published event.

If you need any assistance feel free to write me an email and I will get back to you ASAP.

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

Return to “Building Installers”