Announcement

Collapse
No announcement yet.

Session variable writing entered serial key to the txt file in specified location

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Session variable writing entered serial key to the txt file in specified location

    Good evening,

    I'm looking to create something like a simple txt file containing product information with registry key inside.

    Keys are made through Setup Factory with it's standard variable %SerialNumber%.

    This is what I interted in post install action:

    TextFile.WriteFromString("SessionVar.Expand("%AppF older%")\\Settings\\Productdata.txt", "SessionVar.Expand("%SerialNumber%")", true);

    So I'd like it to take the serial number entered by user and insert it in program installation path in specified file.

    However the whole thing is not working for some reason, do you have any idea why?

    Thank you!

  • #2
    Hello, try this instead:

    Code:
    TextFile.WriteFromString(SessionVar.Expand("%AppFolder%\\Settings\\Productdata.txt"), SessionVar.Expand("%SerialNumber%"), true);
    Ulrich

    Comment

    Working...
    X