Announcement

Collapse
No announcement yet.

How do you remove a nested folder?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do you remove a nested folder?

    My setup uses the Create Shortcut - After Installing action to create a nested folder on the user's start menu with some links to web sites inside it. In the Uninstall actions, I use the Remove Shortcut action to remove each shortcut that I added, but I cannot find a way to remove the nested folder I created. How do you remove a nested folder?

    I tried the Remove Folder action with %SCFolderPath%, remove shortcuts in the before and after install actions but no luck, the folder is still on the start menu.

    Thanks for the help!

  • #2
    Re: How do you remove a nested folder?

    To remove the folder, you would use the "Remove Directory" action. Make sure that you remove all of the shortcuts inside of the folder before you remove the folder. The remove directory action should be the last in the sequence. To remove the directory, you would use the same path you used to create it. Depending how you have it set up, you could use for example %StartMenuNT%\%ProductName%\MyTargetFolder

    You should also make sure that there are no remnants of previous tests before you test each time. Manually make sure there are no shortcuts before you test again, and if there are, manually remove them.

    Comment


    • #3
      Re: How do you remove a nested folder?

      Thanks a lot, that worked nicely!

      Comment

      Working...
      X