Publish WPF applications

2

I made a publish of a WPF application with the CD-ROM option. Well, I noticed that it creates folders, an Autorun.inf, a setup.exe, and a Nome_Programa.Application . I was doing some testing, removing every folder / generated files, to the point of removing everything and leaving only Nome_Programa.Application and kept working. And how is app.config? Where does he get access to the bank? It saves internally, but the generated file is only 6Kb, nothing fits in.

    
asked by anonymous 07.06.2016 / 16:23

1 answer

0

Programs whose publication is generated by Visual Studio through ClickOnce, regardless of the installation method selected during the publishing wizard, will be installed in an AppData directory subfolder and its configuration file location, but this folder can not be specified during installation. One of the possible ways to find out where your program is installed:

  • Run the generated installer and install the application on your computer.
  • The program will open automatically after installation.
  • Open the task manager and in the details (Windows 10) tab find the process corresponding to your application (eg: WpfApplication.exe).
  • >
  • Right-click and select the Properties menu entry.
  • The process properties window opens, where you can see the local where the executable application is stored. Select the directory and copy it to the file explorer.
  • Your configuration file will be stored in this folder (eg: WpfApplication.exe.config), open it with the text editor of your choice and you can view and edit the connection string.
04.01.2017 / 02:52