Export WinForm project

1

I am trying to export my project winForm to an installer, or a portable one.

I have tried in several ways, and what I sense is that some kind of error happens when loading the custom cursors;

 Cursor = GestionCursores.Create(Path.Combine(Application.StartupPath, "..//..//Resources//Cursores//normal.ani"));  

Executing the .exe of the project's Debug folder works perfectly, but once I get the content out I can not find the route to the elements, modifying the route in such a way that if I find them, I execute the .exe and nothing happens.

I also made the typical publication that generates an installable with ClickOnce , but it gives me the same error, that is, it does not show anything.

Finally, also try the Visual studio Installer tools but with the same success.

In the processes my application is shown running for 3 seconds and it closes automatically, showing no errors, and I do not know where to throw it.

    
asked by Hector Lopez 04.04.2018 в 15:23
source

1 answer

1

Use the Visual Studio installation project. The installation project can automatically include the .NET framework configuration in its installation package:

Here is my step by step for the Windows forms application:

  • Create installation project. You can use the Configuration Assistant.

  • Select the type of project.

  • Select exit.

  • Hit Finish.

  • Open the properties of the installation project.

  • You chose to include .NET framework.

  • Compilation installation project

  • Verify exit

  • Another method:

    You can use a WIX installation project (easily integrate with Visual Studio).

    • You can do almost all your personalization in the project configuration adding actions custom .
    • WIX (installer window xml) is the best option. You can make a Full customization from wix but it takes some time understand, since it is totally based on XML. The configurations of Microsoft Office 2007 and later are based on wix.

    The difference between wix and the installation project is that you have more control over the wix configuration GUI than the configuration and wix project allows much more customization than the installation project. Check out this tutorial step by step for wix.

        
    answered by 04.04.2018 в 15:49