bhodso
Posts: 19
Joined: Sun Apr 20, 2008 1:11 am

Unique Install ID

I want to use the HttpPostServerResponse / HttpPostCollectData parameters to send install information to my server. I have everything up and working based on your tutorial and it is fabulous. The one thing I really need though is some kind of unique way to identify the current instance being installed. In other words, is there a unique ID, GUID, unique code, or some other install ID that is generated when an install is started that I can use to uniquely identify that install process?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Unique Install ID

Hi,

Unfortunately Windows Installer does not generate an unique ID for each installation. However, this can be done through a custom action. This custom action can be scheduled before the information is sent to your server and it can set a custom property to the unique string. The property can then be added to HttpPostCollectData in order to send it to the server.

Please note that your script on the server should also be modified in order to receive the unique string.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Vedanta
Posts: 15
Joined: Tue Oct 29, 2013 9:16 pm

Re: Unique Install ID

Hello, I need this functionality also. Could someone please explain how to generate a unique string with a custom action?

Thanks!
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Unique Install ID

Hello,

In order to generate a random number you can use a function like this from the Generating random, unique values C# thread.

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

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

Return to “Common Problems”