I have the program that show the registration window when it was started. When I set login and password the program must create some file in Program File/SomeProgram directo
You might consider writing to CommonAppData special folder, instead of Program Files.