Pre populate serial number in customer information dialog - 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!

dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Pre populate serial number in customer information dialog

Hi

I have a client server install, that uses serverside validation. On the server install the serial number assigned to the end user gets validated (this works) and is stored in an xml file in the [APPDIR] (this works). Contained within the server install is a seperate NetworkClient msi to be deployed to client machines via gpo used peurely to create a shortcut back to the server that takes account of unc naming. This also works.

I've now added a search to this NetworkClient msi to interogate the xml file that was created by the server install to retrieve the serial number that was used. This also works. Now I want to pre populate the serial number text box with the serial number that has just been found by my search but thus far am not having a lot of luck. I'm assuming that this can be done, the question is, how or more precisely I guess which events should I be trying to set in the customer information dialog?

Thanks
Dom
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Pre populate serial number in customer information dialo

Sorted

Do Action followed by set property, works a treat.
Dom
ElectronShepherd
Posts: 29
Joined: Thu Jun 30, 2011 11:51 am

Re: Pre populate serial number in customer information dialo

Can you expand on this a bit? I'm interested in doing something very similar. What property did you set, and where / how did you set it?
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Pre populate serial number in customer information dialo

Sure

In the main server install I create an xml file that stores the serial number (that's the [PIDKEY] property).
In the networkclient msi I then perform a search on that xml file (I use [SOURCEDIR]myxml.xml as the location given that I have no idea where it will be but given that it's being deployed via gpo it'll always resolve to wherever it is) and from the search extract the serial number I'm interested in and save it to a cutom defined property.
I then set a new custom action up on the custom actions page under the UI Custom Actions. Right click UI Custom Actions, select 'Add Pre Defined UI Custom action', select 'Update MSI Edit Controls'
Now on the User Registration dialog:
Select the init events tab and click new.
You want a DoAction event that calls the 'Update MSI Edit Controls' with a contion of 1
Click new again and this time you want a Set Property event. The property to set is [PIDKEY], and you set it to the custome property you defined in your search.

HTH

Dom

Return to “Common Problems”