Getting Notified during Installation - Advanced Installer Community

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!

rqtech
Posts: 14
Joined: Fri Oct 07, 2011 3:42 pm

Getting Notified during Installation

Hi,

We own a copy of our Advanced Installer. We would like to know how to get notified through a web service whenever a user installs our product?

Is there a recommended way to get this implemented? Any references to documentation, etc. will be very helpful.

Thanks
Badri
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Getting Notified during Installation

Hi Badri,

The following article written by us that can help you. If this is not what you can to accomplish
another method is to write your own code (VBScript, JavaScript, C++ or .NET) and to call it using our custom actions support.

This example shows how to call a simple EXE file.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rqtech
Posts: 14
Joined: Fri Oct 07, 2011 3:42 pm

Re: Getting Notified during Installation

Perfect. Thanks!
rqtech
Posts: 14
Joined: Fri Oct 07, 2011 3:42 pm

Re: Getting Notified during Installation

I am trying to do this from your article:
"Go to the Custom Actions page and add the predefined UI Custom Action "Send install information to your web server" under the "UI Custom Actions" tree. Give this custom action a meaningful name like SendCollectedData."

But, I see that the menu item that will let me do this is disabled:
Image

This is in version 8.0. What am I missing?

Thanks
Badri
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Getting Notified during Installation

Hi Badri,

UI custom actions are available only in Enterprise and Architect projects because they are used by our dialog editor. In other project types you can try adding the custom action in InstallExecuteSequence like in this post:
http://www.advancedinstaller.com/forums ... 395#p44391

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rqtech
Posts: 14
Joined: Fri Oct 07, 2011 3:42 pm

Re: Getting Notified during Installation

Thanks, that helped. I have done that.

But, now I don't find the "Dialog Editor" and the "Events Editor" in my project either. Is there a different set of steps I should follow for the type of project I have?

Thanks
Badri
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Getting Notified during Installation

Hi Badri,

If you want to change your project type you can use the "Project" -> "Options" menu.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rqtech
Posts: 14
Joined: Fri Oct 07, 2011 3:42 pm

Re: Getting Notified during Installation

Thanks.

But, unfortunately I cannot upgrade to Enterprise license from Professional license at this time. Could you please tell me how to do the same in the Professional version?

Thanks much,
Badri
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Getting Notified during Installation

Hi,

You can try the approach from the post I mentioned:
http://www.advancedinstaller.com/forums ... 395#p44391

Please read that entire thread to better understand how the mechanism works.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rqtech
Posts: 14
Joined: Fri Oct 07, 2011 3:42 pm

Re: Getting Notified during Installation

Hi Cosmin,

I have referenced the DataUploader.dll in a Custom Action in the InstallExecuteSequence.

Then added these in the ActionData:
[LogonUser][USERNAME][ShortProductName][Date]

Now do I have to create a new Dialog and associate these properties with the text box fields and also trigger the Action, as mentioned in this page:
http://www.advancedinstaller.com/user-g ... -info.html

Currently I just have the default "UserRegistrationDlg" - I suppose I will have to replace that with the above new dialog I create? There is no way to just reuse (and edit) this default dialog?

Thanks
Badri
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Getting Notified during Installation

Hi Badri,

The dialog itself is irrelevant as long as its controls' attached public properties correspond with their formated references throughout the project.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rqtech
Posts: 14
Joined: Fri Oct 07, 2011 3:42 pm

Re: Getting Notified during Installation

Cosmin/Mihai,

I actually am not able to create a new dialog to collect this infomration. The "Add Dialog" dialog only gives me the option to select from some built-in dialogs. Is this because I have the professional version? Like I said before I can't really upgrade to Enterprise version at this point. So, I am hoping I can do this with Professional version?

Also, if there is a way to trigger the custom action (SendCollectedData) from the default "UserRegistrationDlg" that will work too. Is there a way to do that?

Thanks
Badri
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Getting Notified during Installation

HI Badri,

Since you have the Professional edition you can only use the predefined dialogs.
Also, if there is a way to trigger the custom action (SendCollectedData) from the default "UserRegistrationDlg" that will work too. Is there a way to do that?
This can only be done with UI Custom Actions which are available starting with the Enterprise edition's Dialog editor feature. However, you can examine the standard actions and find a suitable execution time for it.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rqtech
Posts: 14
Joined: Fri Oct 07, 2011 3:42 pm

Re: Getting Notified during Installation

Mihai,

I see that I might want to execute my custom "SendCollectedData" action during the RegisterUser "standard action". Can you please tell me (or point to some guide on) how I set this up now in my Professional installation?

Thanks
Badri
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Getting Notified during Installation

Hi Badri,
I see that I might want to execute my custom "SendCollectedData" action during the RegisterUser "standard action". Can you please tell me (or point to some guide on) how I set this up now in my Professional installation?
I'm not sure how can I help. You can simply add the custom action anywhere you want in Custom Actions page.
Then added these in the ActionData:
[LogonUser][USERNAME][ShortProductName][Date]
- LogonUser is a predefined installer property, so you don't need to do anything about it.
- To retrieve an user name you can add LogonInformationDlg dialog in dialogs page. Its user name edit box uses the USER_NAME property.
- I'm not sure what ShortProductName represents, but you may want to try using the ProductName predefined property
- Date is a predefined installer property, so you don't need to do anything about it.

In the end, you action data can be:

Code: Select all

[LogonUser]|[USER_NAME]|[ProductName]|[Date]
You server script can tokenize the values using "|" as a separator.

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

Return to “Common Problems”