Search code examples
c#.netvisual-studiosetup-projectsetup-wizard

Setup wizard for C# project


I have a C# project that I've written using the .NET 4 framework, I've created an installation project using the setup wizard within the solution, the problem is that once the program is installed and I launch it, a dialog appears saying that the program is being configured and then starts the program, why is this? Is it necessary? How can i prevent this from appearing or happening altogether?

An image of the program configuring

UPDATE I installed my application and launched the application from the .exe created in Program Files and a config window didn't appear and the app launched normally! How do i create a link to this shortcut without it showing the windows shown above? As i need to place a shortcut to the users startup folder.


Solution

  • This happens because Windows Installer detects missing resources. For example, some of the installed files were moved/removed/renamed or were installed per-user for another user account.

    Here is an article with more details: http://setupanddeployment.com/general-installation-problems/preparing-install-popping/

    You can use Event Viewer to determine which resource is causing this, like explained in the article I mentioned.