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!

Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Sending information to server before installing product

Hello,

I have successfully created an exe file with Advanced Installer which does the following:

* Check before install if prerequistes are met (.NET version 4.0 installed?)
** if .net 4.0 is not installed - start installation of .net 4.0
*** if user exists .net installation, exit whole installation
** if .net 4.0 is already installed, continue
* install exe

Now I'd like to do the following: I'd like to send to my server the information if .NET v4 (or even better: which .NET version) is installed or not - BEFORE calling the prerequesites, so that even if the user decides not to install .net, I might be able to know which .net versions were available.

I saw something in custom actions - send install information to web server - is that the correct approach to achieve what I want to do? I tried to implement what I explained above, but I failed - could someone give me an hint if this is how I should send my detection to the server - and has someone maybe some instructions on this topic available?

any help will be appreciated!!

Thanks and regards
Jakob
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Sending information to server before installing product

Hello Jakob,

In order to send the related value of the .Net version, 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.

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 me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Sending information to server before installing product

Hello Dan,

thanks for your answer! I am not sure if I understood correctly - does that mean that I have to display a dialogue in order to send some information to the server?

Is there any other possibility to track how many people had to run through the prerequistes or how many people did cancel the prerequistes? I do not want to collect user specific data, I just want to know if there are many people running into my prerequistes...

thanks again for any help!
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Sending information to server before installing product

Can someone offer any more information regarding this topic? Thank you very much! I tried to use the "Search" at Custom Actions and to later send the found value to the server, but it did not work at all.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Sending information to server before installing product

Hello Jakob,

I apologize for my delay reply. We are quite busy.
Is there any other possibility to track how many people had to run through the prerequistes or how many people did cancel the prerequistes? I do not want to collect user specific data, I just want to know if there are many people running into my prerequistes...
Since your prerequisites are Pre-Install prerequisites, you can open a download URL where the user have to download and install the prerequisite. This way you can see how many times your prerequisites have been downloaded. I'm afraid is not possible to track down from the installer how many times the users have canceled the prerequisite wizard.
I am not sure if I understood correctly - does that mean that I have to display a dialogue in order to send some information to the server?
You don't have to create a new dialog. You can add the predefined Send install information to your web server custom action and add it as a published event trigger on an existing dialog. In order to send the related value of the .Net version, you can set a property with related information and send it though the property list of the custom action. In order to search for the .Net framework version, you can create a search in the Search page. The result of your search will be placed in a newly created Windows Installer Property.

Please take a look on the How do I execute a custom action when a button is pushed? article with related information for hints and guidance.
I tried to use the "Search" at Custom Actions and to later send the found value to the server, but it did not work at all.
In order to have a better view about this, can you please send me your .AIP (project file) to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Please let me know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Sending information to server before installing product

Hello Dan!

Thanks very much for your answer!

The URL I use for prerequistes is not trackable for me, because it is not url related to my server.

When I add a custom action as a published trigger on a existing dialogue, I am afraid it would be a dialogue AFTER the people installed the prerequsites. Or can I start the search before the prerequistes start?

Thank you!

Jakob
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Sending information to server before installing product

Hello Dan,

okay, I got the following: when clicking Install in the EULA dialogue, the DOTNETV4 property (which I created) is sent to my server. Unfortunately it always represents the state after installing the prerequistes, so it is always true. (1)
Is there any way to send the status which the dotnetv4 property had before installing the prerequisites?

Thank you very much!

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

Re: Sending information to server before installing product

Hi Jakob,

You can only use the Send install information to your web server approach if your prerequisites are feature-based prerequisites.

Indeed, if your prerequisites are Pre-Install prerequisites, please note that these are installed by an EXE bootstrapper before your MSI is launched.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Sending information to server before installing product

Hello Dan,

okay - that means there is no solution for my problem :-( But thanks anyway!

Best regards

Jakob
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Sending information to server before installing product

Hi Jakob,

I can think of the following solution that you can try and see if it is suitable for you:
- create a simple MSI package that searches for the .NET version and writes it in an INI file
- add that MSI as a pre-install prerequisite before the .NET prerequisite in the main package
- add the .NET prerequisite as a pre-install prerequisite after the simple MSI
- go in the "Setup Files" tab of the .NET prerequisite and use the "Save return value in this property" field to store the value returned by the .NET prerequisite in a property (i.e. DOTNET)
- based on that property you will know if the prerequisite was installed or not (i.e. if DOTNET is <empty> => already installed or not checked for installation, if DOTNET is 0 => exited by the user, if DOTNET is 3010 => installed). This values may be different from a prerequisite to another
- go in the "Search" page of the main project and create the necessary INI Searches to get the data written by the simple MSI package and put it in some properties
- retrieve all the properties that contain the information you need using the "Send install information to your web server" custom action
- build and run the project

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Sending information to server before installing product

Thanks, that sounds like an idea! I will try that!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Sending information to server before installing product

You're welcome. Just let us know if you need more clarifications.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”