I want to know if there is a way for me to create a form to be opened only the first time the program is run. Because the form should create a file on the system with the login the first time the program is run only, it can not create the file whenever the user opens the program because if the login has been changed it will be changed back to the default.
Another option would be to create the file at the time of installing the program but I do not know how to do that, I already researched a lot and found nothing.
There is no code because I could not do anything, I just tried to put File.Create("caminho");
on the splash screen, but it always creates a new file and replaces the old one, thus losing the information written to it.