This question has been asked millions of times and my recommendation is to use a paid service.
If you want to go cheap then write the required file under AppData\Local in a folder you create. The average customer will not find this folder e.g.
var licenseFile =
Path.Combine(Environment.GetFolderPath(
Environment.SpecialFolder.LocalApplicationData), "Secret", "license.dat");