Getting Notified during Installation - Page 2 - 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

Re: Getting Notified during Installation

Cosmin,

Thanks. I thiink we are making progress.
I have setup this custom action for InstallExecuteSequence/Install.

Image

My last question (hopefully) is, how do I point my webservic url to this custom action?

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

Re: Getting Notified during Installation

Hi,

I'm sorry, I thought you are trying to use your own custom action. For our DLL the configuration is the same, but instead of setting the action data you need to set a custom property called HttpPostCollectData. This can be done through a Property set with formatted custom action. Also, the values must be separated by ";".

You can read more about our DLL configuration in this how-to:
http://www.advancedinstaller.com/user-g ... -info.html

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

Cosmin,

Thanks, but I am really not sure how to proceed.

I am not sure how to include a "property set with formatted" custom action - do I modify my current SendCollectedData action to do this? I don't see any info on how to.

And the link about DLL configuration seems to include some non-Professional version related info. Could you please make sure that I will be able to do these with my Professional version?

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

Re: Getting Notified during Installation

Hi Badri,

"Property Set with Formatted" is a predefined Windows Installer property which you can select from the context menu available in Custom Actions page.

Just right click on the standard action were you want to add this custom action and select it from the context menu. Then set the field property to this:

Code: Select all

HttpPostCollectData
In the "Formatted text" field you need to enter the values that you want the property to contain once the custom actions is executed.

Here are more details about the predefined custom action:
http://www.advancedinstaller.com/user-g ... #section27

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

Bogdan,

Thanks much for the info. I have now created a custom action of type "Property Set with Formatted", set it's property name to "HttpPostCollectData" and selected fields in the "Formatted text" field that I want the Property to contain.

Now, that only leaves me with the URL of the web service that should be called with this information. Could you please tell me where I should specify this URL?

I would also like to select "Synchronous Execution, ignore return code" - because, you see I just want to collect information, don't want to do any other validation during the install.

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

Re: Getting Notified during Installation

Hi Badri,
Could you please tell me where I should specify this URL?
Have you followed the link my colleague Cosmin mentioned above:
http://www.advancedinstaller.com/user-g ... -info.html
The "Where to submit the collected information ?" answers this question.
I would also like to select "Synchronous Execution, ignore return code" - because, you see I just want to collect information, don't want to do any other validation during the install.
I am not sure what you mean by this in your context, but here is the definition of a custom action's execution properties. If this doesn't help, please provide more details.

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,

Thanks for the update. I have now done this in my AI Professional version. Could you please verify that this is in infact correct? I am a little suspecious about this as I feel like I should be using some built-in HttpPostCollectData and HttpPostUrl property, whereas it seems like I am defining a new custom one with these names. I could be wrong.

This is how I have defined my HttpPostCollectData:
Image

... could you check above and let me know if I am using it correcting with things in proper syntax?

And this is how I have defined the HttpPostUrl property:

Image

... Please check the above for correctness too.

I will be removing the DataUploader.dll custom action once I know that the above are correct.

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

Re: Getting Notified during Installation

Hi Badri,

As my colleague mentioned above and as in the article, the values in HttpPostCollectData must be separated by a semicolon and not by a comma like in your snapshot.

For HttpPostUrl, the URL should also be enclosed between quotes.
I am a little suspecious about this as I feel like I should be using some built-in HttpPostCollectData and HttpPostUrl property, whereas it seems like I am defining a new custom one with these names. I could be wrong.
These properties are predefined and are used as part of this article's functionality. The custom actions you added simply set the properties before the executing "DataUploader.dll".
I will be removing the DataUploader.dll custom action once I know that the above are correct.
Can you please specify why would you want to do this?

Since you have the Professional edition, you must use the logic from the article and implement the required settings in a custom way. The custom way is described in this link Cosmin posted a couple of times previously.

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,

Thanks for the update. I think I understand a bit better now.

The DataUploader custom action will use the values from HttpPostCollectData and HttpPostUrl properties while performing the action, is that correct? (You see since that article didn't apply to the Professional version, I am a bit strugging to put the pieces togather. But, you guys have been very helpful)

I have also made the changes to the you suggested to the values for the above 2 properties.

I am a bit confused about one bit though. You see in my DataUploader custom action is setup like this:
Image

So, will the arguments for the web service url come from the "Action Data" above or from the HttpPostCollectData values?

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

Re: Getting Notified during Installation

Hi Badri,
The DataUploader custom action will use the values from HttpPostCollectData and HttpPostUrl properties while performing the action, is that correct?
Yes.
So, will the arguments for the web service url come from the "Action Data" above or from the HttpPostCollectData values?
The "DataUploader.dll" custom action must have an empty Action Data field. This custom action will get its information from HttpPostCollectData and HttpPostUrl properties.

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

Cosmin and all,

After all these changes as per your help, now it seems that the POST Url specified is not getting called at all. And during the install, I don't get any visual information that this url is being called at all - should I get any updates from the UI during the install? And is there any logs I could check for any potential issues with this during the install?

This is how it's setup:
Image
Image
Image

Note that the DataUploader's Execution Options is set to Immediate Execution.

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

Re: Getting Notified during Installation

Hi Badri,

Please note that the URL saved in HttpPostUrl property should not be enclosed by quotes. Regarding logging, you can use the "Run and log" option in Advanced Installer or create a log manually.

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

Return to “Common Problems”