PDA

View Full Version : Shortcut folders not uninstalling?



nsg1975
07-30-2004, 09:08 AM
Hi:

I have a fairly simple setup that creates the following shortcuts:
1) Launch app executable (start menu)
2) Launch app executable (desktop)
3) Uninstall app (start menu)

Installation works fine. The start menu shortcuts are created below 'Company\Product Name\' subfolders as expected.

When I uninstall, the shortcuts all get removed, HOWEVER, the created shortcut subfolders almost always remain.

e.g. All Programs -> Company -> Product Name -> <empty>

They don't seem to go away, either. I tried rebooting several times, etc. I tried uninstalling it different ways (from add/remove, from the uninstall shortcut, from setup.exe, etc.) and it doesn't seem to matter.

Yesterday I ran the setup/uninstall about 8 times and it only uninstalled the shortcut folders once.

What do I need to do to get these things to go away consistently after uninstall?

Thanks!

Mike Marino
07-30-2004, 02:13 PM
Are the folders present before you run the install? Make sure you are testing on a relatively clean folder structure.

nsg1975
07-30-2004, 03:02 PM
No, the folders aren't present prior to the install (at least they don't show up in the start menu listing).

Mike Marino
07-30-2004, 03:05 PM
I would check them in Explorer too...I do not remember running into this problem during our testing phase. But if there is something I can do to fix it, I would like to.

nsg1975
07-30-2004, 03:35 PM
Ok, just checked the folders in explorer as well, and they are definitely gone prior to install.

Here's another bit of info I just discovered. I successfully installed/uninstalled the app 3 times in a row. As long as I didn't actually click any of the start menu shortcuts, the shortcut folders uninstalled properly.

Then I installed, clicked the "Launch app" start menu shortcut, exited the app, and uninstalled. The shortcuts were gone, but the shortcut folders remained...

I then right clicked the remaining shortcut folder and selected "explore". Both shortcut folders showed up, and both were empty. I then tried to delete them from explorer, and was told that it couldn't be deleted because it was being used by another person or program...

I then rebooted, and the empty shortcut folders were still present. I was then able to successfully delete them from explorer.

I'm running XP, and have been selecting the "Install for all users" setting during setup.

Mike Marino
07-30-2004, 03:54 PM
Are you using advertised Shortcuts, or non-Advertised? If they are Advertised try using non-Advertised shortcuts.

One other question, what features are these Shortcuts associated with?

If it is feature that contains a lot of files, you may consider moving them to their own feature. This may help the folder not get locked during uninstall. Just a guess since I have not seen this before.

nsg1975
08-02-2004, 09:21 AM
Right now I just have one feature (it's a simple program install). I'll play around with breaking it up and see what I can do.

nsg1975
08-02-2004, 09:22 AM
Oh, and I'm only using non-Advertized shortcuts.

nsg1975
08-12-2004, 11:56 AM
Well, I created a new project from scratch, followed your suggestions, and the problem hasn't re-occurred yet in my tests.