Post a reply to the thread: Delete Tree function removes empty parent folders
Click here to log in
What's the name of our main installation product (in uppercase letters), directly followed by the current year?
You may choose an icon for your message from this list
Will turn www.example.com into [URL]http://www.example.com[/URL].
Re: Delete Tree function removes empty parent folders Hi Tom, I'll check this and get back to you. Friedrich
Re: Delete Tree function removes empty parent folders
Delete Tree function removes empty parent folders Friedrich, Our uninstall script has an option to either just remove the program, leaving behind data files created by the program after installation, or to delete the entire installation. When removing everything, I'm using the 'Delete Tree' function after the built-in 'Process uninstall queue' has completed. The issue is that the tree delete will also remove parent folders if they are empty. Example: - User installs my 'KillerApp' to existing path "E:\My Stuff\" so my complete %_SB_INSTALLDIR% path would be "E:\My Stuff\KillerApp" with a bunch of folders being created under the SB8 created "\KillerApp" folder. - If "E:\My Stuff" has other folders, delete tree will not remove it. - However, if the only thing in the "E:\My Stuff" folder is "\KillerApp", delete tree will remove "\My Stuff" along with "\KillerApp". I can recreate this every time when the install is onto a mapped or UNC network drive. It will delete multiple levels of preexisting parent folders right back up to the root as long as they are empty. I'd swear during my testing it also happened once on a local drive, but I can't seem to replicate that again. This is with SB 8.1.4466, btw. Thanks, Tom
Delete Tree function removes empty parent folders
Forum Rules