Urbycoz
Urbycoz

Reputation: 7421

Why does my shortcut try to run an msi, instead of the correct exe

I've created a "Setup and Deployment" project in Visual Studio 2008, and set it to create a shortcut to my application. I tried running the MSI locally and it all worked fine.

I then deployed my app onto a server using ClickOnce. The shortcut was created, however when I click it, it gives some strange errors.

So, when I was just expecting my app to launch, I got the following errors...

enter image description here

Is this a bug with ClickOnce or is there something I've set up wrong?

Upvotes: 0

Views: 344

Answers (2)

PhilDW
PhilDW

Reputation: 20780

Windows Installer shortcuts are one of the entrypoints to the resiliency/repair features, and that's what you've got. If you or your app removed anything that was installed by MSI you'll see this repair going on.

The Application Event log should have an MSI installer log entry that says something about what's wrong, but if you deleted any files or registry entries that the MSI created then that'll be the reason.

Upvotes: 1

Christopher Painter
Christopher Painter

Reputation: 55581

The MSI is being authored with an advertised shortcut. The shortcut points to an API that performs a health check (resiliency) before calling the EXE. See Troubleshooting unwanted self-repairs using the Event Viewer for more information.

Upvotes: 1

Related Questions