Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 829
Nathan Smith Avatar asked Aug 27 '26 02:08

Nathan Smith


2 Answers

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.

like image 103
rmrrm Avatar answered Aug 29 '26 17:08

rmrrm


The MSI file has auto-repair enabled. I don't think VS has an option to turn it off.

The shortcut links generated don't actually link to the files they should. They link to an executable in appdata. When that file's opened, it runs the installer repair check silently and opens the configuring dialog while any repairs take place. For some reason the installer thinks that files installed with your program are being deleted / corrupted. Perhaps temporary or configuration files?

This link given in this question should fix it if that's the case, but it'll still be activated if the user hits Repair in Add/Remove programs.

like image 25
K893824 Avatar answered Aug 29 '26 19:08

K893824



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!