We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Best Way To Delete An Empty Folder Left By CA In MSM?

Our merge modules use our own C# custom action which seems to leave behind folders named "Cicero.CustomActions.CA.dll-x" (where 'x' is non-existent or a number, e.g 0,1,2..). Since the File Removal operation/dialog in a merge module doesn't include "empty folders" what's the best way to clean these up on uninstallation?

VBScript action?
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Best Way To Delete An Empty Folder Left By CA In MSM?

Scott Jeslis
Senior Software Engineer
Cicero, Inc.
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Best Way To Delete An Empty Folder Left By CA In MSM?

I followed the above thread (which is slightly out of date with newer Custom Action panels in 9.9) and the folder gets deleted but not the parent folders (which are now empty)... hmmm..
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Best Way To Delete An Empty Folder Left By CA In MSM?

Hello,
I followed the above thread (which is slightly out of date with newer Custom Action panels in 9.9)
We'll update the above article in a future version of Advanced Installer. Thank you for your suggestion.
and the folder gets deleted but not the parent folders (which are now empty)... hmmm..
I'm not sure why this happens. I've tested your scenario, but I cannot reproduce the behavior. Can you give us more details about your scenario (maybe exemplify)?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Best Way To Delete An Empty Folder Left By CA In MSM?

On Windows 7 with UAC enabled it seems like:

If (objFS.FolderExists(smallPath)) Then

always returns "false" for a valid folder path.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Best Way To Delete An Empty Folder Left By CA In MSM?

Hello,

I've tested the scenario on a Windows 7 machine, but I cannot reproduce the behavior. Can you please attach a sample which reproduces the behavior so we can investigate it? Also, you can try to debug your VBS custom action in order to detect the root cause of the related behavior.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”