Michu
Michu

Reputation: 150

Setup wpf .net proyect works but exe didn´t find

I´m tring to instal an app that I create with wpf (.NET 4.8), I used Microssoft Visual Studio Installer Projects and these are the steps that I follow:

  1. I add a new proyect to the solution.
  2. In Aplication Folder/Add/Project Output...
  3. Primary output and Localized resorces.
  4. Finally i Build the solution

I loock for the exe in the folder instalation but only there is a .ddl and a .josn. Thanks.

Upvotes: 1

Views: 1272

Answers (3)

CDRO
CDRO

Reputation: 139

It took me some time to find out why it didn't work for me, so I'll publish a possible solution here as well.

If you defined a publishing profile, you need to select it for the product output group and set it in PublishProfilePath (Right Click on Publishing Group -> Properties).

Upvotes: 0

Michu
Michu

Reputation: 150

In sted of Primary outPut, I have used PublishItemsOutputGroup.

Upvotes: 1

Hui Liu
Hui Liu

Reputation: 1038

@ michu. According to your description, there may be a problem with your steps. Please check if the following steps are same with you .

1.Download and install Microsoft Visual Studio Installer Projects.

【Click Extensions in Visual Studio to search for Microssoft Visual Studio Installer Projects to download and install】

2.Create a Setup Project named Setup.

3.Add WPF software primary output DLL file into installer.

【Right-click Setup and select Add/**Project Output...**and modify the "Add Project Output Group" page as follows:】

enter image description here

4.Add installer setup icon file.

【Right-click Setup and select Add/File... and add the APP.ico file as application icon: (I did not add an application icon here.)】

5.Create WPF software shortcut for Desktop. enter image description here

【Right-click on the generated file and rename it to apptest and drag it to User's Desktop. Then right-click apptest in User's Desktop and select Properties Window…:】

enter image description here

enter image description here

6.Configure the details of WPF software properties. enter image description here

7.Build Setup Installer.

【Click Build and select Batch Build and modify as follows:】 enter image description here

enter image description here

8.Install.

After the installation is complete, you can see the exe in the installation path. enter image description here

Upvotes: 0

Related Questions