Publish of WPF applications

Asked

Viewed 95 times

2

I made a Publish of a WPF application with the CD-ROM option. Well, I noticed that it creates some folders, an Autorun.inf, a setup.exe and a Nome_Programa.Application. I was doing some tests, removing each generated folder/ files, to the point of removing everything and left only the Nome_Programa.Application and continued to work. What about app.config? Where does it access the bank? It stores internally, but the generated file is only 6kb, it fits nothing inside.

  • I don’t know where the app.config is, I know the images and icons are visible.

1 answer

0

Programs whose publication is generated by in Visual Studio through Clickonce, regardless of the installation method selected during the publication wizard, will be installed in a subfolder of the Appdata directory and your configuration file will be located in this same location, but this folder cannot be specified during the installation. One of the possible ways to discover your program’s installation location:

  • Run the generated installation program and install the application on your computer.
  • The program will open automatically after installation.
  • Open the task manager and in the tab details (Windows 10) Locate the process corresponding to your application (ex.: Wpfapplication.exe).
  • Click with the secondary mouse button and select the menu entry Estates
  • The process properties dialog will be opened, in which you can see the local where the executable application is stored. Select the directory and copy it in the file explorer.
  • Your configuration file will be stored in this folder (ex.: Wpfapplication.exe.config), open it with the text editor of your choice and you can view and edit the connection string.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.