Unable to Reinstall / Uninstall an already Installed Application

Hello,

I am having a problem getting a ClickOnce application running on a
client's machine. It is an application that does not check for updates
itself.

In the beginning, I pushed a version out that works on both of my
machines. When the client installed that, it didn't work because of my
own fault (I checked and make sure it is my username before the
application can be launched. :-D)

After that, I did another build on fixing the problem that I caused. I
tried installing it on my machines without uninstalling the previous
versions from them. Both of them work.

Since it worked on my machine, I asked the client to install the new
version without uninstalling the previous version (Exactly like what I
have done on both of my machines.) When she installed it, after the
whole thing's over, it says "Application files to start" with an
extremely detailed message. (See below)

Because of the error, I thought maybe the client should uninstall the
previous version than re-install the new version. So I asked her to do
that. When she tries to uninstall the application, it then says "Unable
to uninstall the application" with a detail message. (See below)

I searched online for a while, but I couldn't find much information in
dealing with this. Could anyone give me a hand please

Thanks soo much for the help in advance,
Kenny

*****************
Error Message When Installing:
Below is a summary of the errors, details of these errors are listed
later in the log.
* Activation of Y:\psuite\PhytoSuite.application resulted in
exception. Following failure messages were detected:
+ Shortcuts could not be removed. Try again later.
+ The directory is not empty.
*********************

*****************
Error Message When Uninstalling:
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed
later in the log.
* Error occurred during uninstall of the application. Following
failure messages were detected:
+ Shortcuts could not be removed. Try again later.
+ The directory is not empty.

* Exception occurred during uninstall of application
PhytoSuite.application, Culture=neutral,
PublicKeyToken=24014f204594e308, processorArchitecture=msil. Following
failure messages were detected:
+ Shortcuts could not be removed. Try again later.
+ The directory is not empty.
**********************



Answer this question

Unable to Reinstall / Uninstall an already Installed Application

  • Inbal

    It is hard to which other process is holding on to the directory, which is resulting this error.
    Can you please ask the user to

    -Uninstall the app if there is an Add Remove Programs Entry
    (It might fail with the same error. But do not worry)
    -delete whole shortcut folder manullay
    It will be %SystemDrive%\Documents and Settings\<user name>\Start Menu\Programs\<publisher name in your deployment manifest>

    If you can not delete the folder manually then can you please findout if there is any process that is holding on this (like an anti-virus program)

    -Now re-try your ClickOnce installation

    -Thanks
    Sreekanth


  • Botia

    Hi Sreekanth,

    Thanks for the help. I tried a similar method like yours during lunch (Just got back to my desk and your message comes up!) and it apparently solves the problem. I found this work around on some forum on the net. After reading your way to deal with it, I think your solution is much cleaner!

    Anyway, here's what I've done:
    - Renamed the <username>\Start Menu\Programs\<publisher name> to something else
    - Renamed the "All Users"\Start Menu\Programs\<publisher name> to something else
    - Do an uninstall

    It works perfect then. :-)

    Please note that:
    1. The client's <publisher name> folder is non-empty (It contains some other short cuts.)
    2. On the client's machine, in addition to
    C:\Documents and Settings\<username>\Start Menu\Programs\<publisher name>\, the machine also has another folder with the same name under the "All Users" settings:
    C:\Documents and Settings\All Users\Start Menu\Programs\<publisher name>\

    Sreekanth, thanks again for the help,
    Kenny


  • liquidPhix

    I just read a previous post about the same problem; http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=144202&SiteID=1.

    The problem is that if there is no application holding the folder, why does click Once bugging about it I cannot for every update or installation rename manually the specified folder, so I try to find a better bug solution for it.

    Thanks in advance for the help.



  • Unable to Reinstall / Uninstall an already Installed Application