0

I'm using this awesome TLama's solution for Custom SerialNumber Page CustomPage for Serial Number in Inno Setup

How can I pre-fill those values from previous installation?

I know about GetPreviousData/SetPreviousData functions in Inno Setup, but don't know how to implement it here.

Any advice?

Community
  • 1
  • 1
webium
  • 33
  • 6
  • You may add a simillar function to `TryPasteSerialNumber` which will try read the serial from Registry or File. But first you have to write the Serial to registry or to file. Instead of `S := GetClipboardText` you should get the value from chosen place. – RobeN May 18 '15 at 13:29
  • I've added the serial number setter function to the original post, so now you have `GetSerialNumber` function for `SetPreviousData` and `TrySetSerialNumber` function for `GetPreviousData`. – TLama May 18 '15 at 13:38
  • @TLama, I see you have changed the original post, but I'm still lost. Maybe a small code snippet will help me. Can you write an example please? – webium May 18 '15 at 18:57

0 Answers0