Ok I have created a program which saves text into settings file. So at end I have Program.exe file and Program.PDB file in my debug folder along with other files.
Then I use installshield which uses those 2 files to create Single Executable.
The thing is that when I installed the application from .exe file which I got from installshield, it worked flawless and I managed to save text and etc.
After I uninstalled the application from Add/Remove Programs.
I installed it again, and when I launched it, it showed me text that I saved before, not text from the fresh installed program/s PDB file.
I even tried to clean registry with ccleaner after uninstall.
Seems like it somehow saves and uses info from removed PDB file or something.
I save it using:
Properties.Settings.Default.text1 = textBox2.Text;
Properties.Settings.Default.Save();
and load it using:
textBox2.Text = Properties.Settings.Default.text1;
The PDB file holds debug information. No need to distribute it.
The Application-scope settings are stored in
application.exe.configThe user-scoped settings are stored in a
user.configsomewhere under each users profile folder, not so easy to remove them all maybe. But make sure you bump the version number on each release and you will have a clean slate.