P
P
postya2019-12-09 19:03:32
WPF
postya, 2019-12-09 19:03:32

How to create an installer for a WPF application?

I'm trying to make an installer to install my WPF application on other computers using the standard Visual Studio tools, using the Setup Project, but it doesn't work. After installing the application, when you click on the shortcut, the application does not open and does not react in any way, although it starts normally in the development environment
. Maybe it's because my folders with images and custom fonts are somehow not correctly located?
How to make an installer?
How are the folders with everything I need located:
5dee6f8f8d9f2817045853.jpeg
How do I add images to xaml:

<Window.Background>
        <ImageBrush ImageSource="/Toolkits;component/images/background.jpg" />
    </Window.Background>

<Image Source="/Toolkits;component/images/icons/palette.png"
                           Stretch="None" />

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
postya, 2019-12-17
@postya

I used Inno Setup. The Release/bin folder contains the ToolkitsNew.exe.config file, which contains the default settings for Visua Studio. The file with the user settings of the program was stored in another location on the computer: Username/AppData/Local/Toolkits/../user.config I copied these settings from this file and pasted them into the ToolkitsNew.exe.config file, then added this file together with all the folders (images, fonts, etc ..) in the Inno Setup installer and the program installation psol, everything worked!

S
Space Purr, 2019-12-10
@SpacePurr

It is not necessary to use the built-in installer.
Try Smart Install Maker, it's quite flexible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question