Ask a questionAsk a question
 

AnswerIssues on uninstallation

  • Sunday, November 01, 2009 2:03 PMtukuna Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi ALL,
    I am using windows installer for creating setup.exe for my windows application. I have included CustomUninstall.exe to uninstall my product  using start menu.Uninstall works perfectly but when the installed folder structure is open in the windows explorer i am getting one warning saying "C:\Program\Product name refers to location that is unavailable It could be on a harddrive on this computer ,or a network ."   .Can anybody help me.

    Also i would like to know some more info about uninstall
        Is it possibl to change the UI before uninstall.By default Its like"Are you sure to uninstall this product".
        How can i change to "Are you sure to uninstall [product-name]".

         How can i provide one confirmation message after successful uninstall.

    Does anyone have any solutions to this problems?

    Thanks,
    Patro

Answers

  • Tuesday, November 03, 2009 12:59 PMAland LiMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi tukuna,

    From your description, you opened the install directory and then uninstalled the program, then you met the error: "C:\Program\Product name refers to location that is unavailable It could be on a harddrive on this computer ,or a network ." Is this right?

    When the program is uninstalled, the install folder would be removed automatically, so we cannot access it. So I think this phenomenon is correct. Could you please tell me what goal you want to achieve?

    Regards,
    Aland Li


    Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
  • Tuesday, November 03, 2009 6:27 PMPhilWilsonModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I agree with Aland Li - I've seen this message only when Explorer is referring to a folder that is then removed. This is not a bug in your setup and I'm pretty sure that there is nothing you can do in your setup that will make this go away. I think it's what happens when a folder is programmatically removed while Explorer has it open.

    When I get this type of bug report from a tester I point this out - it's what Windows does, and that it's not related to your setup.  It's Windows behavior, so do they want to open this as a support incident with Microsoft because there's nothing you can do to change it? You'd probably get a bug report if your install had a FilesInIse dialog displayed, but again, that's Windows behavior and not your setup's fault.

    You cannot add a confirmation dialog until you add a program that can offer a confirmation dialog. That means that your uninstall shortcut needs to point to a program.

    I'll add that this is the kind of thing that happens when you try to re-invent what already is available in Add/Remove Programs. There really is no reason for you to do all this. Add/Remove Programs is where people go to get support information about the product, its version, do a repair, modify it (not available in VS setups) and uninstall it.
    Phil Wilson

All Replies

  • Monday, November 02, 2009 7:25 PMPhilWilsonModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I don't understand what you're explaining. You're talking about your start menu uninstall working perfectly, but then you'er saying that Explorer is giving you a warning. Are you saying there's a some connection between your uninstall shortcut and the Explorer message? 

    I don't know what your uninstall shortcut looks like, but if it's a program can't you just have a confirmation message box?


    Phil Wilson
  • Tuesday, November 03, 2009 5:44 AMtukuna Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks for your quick response.

    Let me explain .

    suppose I  have installed my product ABC under c:\Programfiles\ABC,So all necessary files and folders got created under folder ABC.Lets Open it using windows explorer Then when i try to uninstall my product using start menu or Add/Remove program, uninstall is successful but in the windows explorer i am getting the above error.
    Hope you understand my explanation.

    Also can you explain how can i resolve the other two requirements.




    Thanks,
    Patro


     
  • Tuesday, November 03, 2009 12:59 PMAland LiMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi tukuna,

    From your description, you opened the install directory and then uninstalled the program, then you met the error: "C:\Program\Product name refers to location that is unavailable It could be on a harddrive on this computer ,or a network ." Is this right?

    When the program is uninstalled, the install folder would be removed automatically, so we cannot access it. So I think this phenomenon is correct. Could you please tell me what goal you want to achieve?

    Regards,
    Aland Li


    Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
  • Tuesday, November 03, 2009 4:35 PMtukuna Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    yes your understanding is right.But i need the solution "how to avoid the warning".Because this is obvious a bug raised by a tester.For other software uninstallation this is not the same behaviour.
    Also I would appreceate if you can answer the other two questions..



    Thanks,
    Patro
  • Tuesday, November 03, 2009 6:27 PMPhilWilsonModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I agree with Aland Li - I've seen this message only when Explorer is referring to a folder that is then removed. This is not a bug in your setup and I'm pretty sure that there is nothing you can do in your setup that will make this go away. I think it's what happens when a folder is programmatically removed while Explorer has it open.

    When I get this type of bug report from a tester I point this out - it's what Windows does, and that it's not related to your setup.  It's Windows behavior, so do they want to open this as a support incident with Microsoft because there's nothing you can do to change it? You'd probably get a bug report if your install had a FilesInIse dialog displayed, but again, that's Windows behavior and not your setup's fault.

    You cannot add a confirmation dialog until you add a program that can offer a confirmation dialog. That means that your uninstall shortcut needs to point to a program.

    I'll add that this is the kind of thing that happens when you try to re-invent what already is available in Add/Remove Programs. There really is no reason for you to do all this. Add/Remove Programs is where people go to get support information about the product, its version, do a repair, modify it (not available in VS setups) and uninstall it.
    Phil Wilson
  • Wednesday, November 04, 2009 5:44 AMtukuna Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks Phil
    Can you explain in detail about confirmation message after uninstallation and message before uninstall.