Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"The parameter is incorrect" when clicking pinned item on Windows 7 after updating the application

I have the following situation:

  1. Installed my application using ordinary .msi
  2. Run the application from the start menu
  3. Right click on the icon in the task bar and pin it.

Now, I can use the pinned item/short cut to start my application but after I update my app using another .msi file, clicking on the pinned item shows this error:

'Problem with shortcut' - The parameter is incorrect.

I have checked the short cut and as far as I can see it points to the same directory/file as the previous version. (the new version has the same files/location). I assume that there is some versioning/Program Files magic happening that causes this issue but haven't found any good information on the net.

Some more information:

  1. The application is written in C# .NET 3.5 SP1
  2. The msi is created using a Setup Project in Visual Studio 2008 SP1
  3. I use a custom build tool to integrate the msi build and set the ProductCode and PackageCode to a new GUID for every version.
  4. The update seems to work fine otherwise. The old version is uninstalled, the new one installed correctly.

Anyone got a clue?

like image 407
Patrick Klug Avatar asked Feb 01 '10 02:02

Patrick Klug


1 Answers

My guess is the default Application ID is changing. If you intend to update this app with msi's regularly once it's "in the wild" then set your own Application ID. If this is a one time thing, then just unpin and repin it and carry on as normal.

Setting the Application ID is easy if you're using the Windows API Code Pack. Are you?

Kate

like image 155
Kate Gregory Avatar answered Oct 04 '22 11:10

Kate Gregory