I'm currently working on a program that creates a partial-randomly named directory to work with and then leaves it there after runtime. I assume it's being used as a temporary file storage location, but that is inconsequential because I want to remove it. Unfortunately, DirectoryCleanupForce doesn't seem to work with wildcards. Is there a way of getting rid of these directories? Or will I have to resort to using NSIS scripting? Below is the exact code I have written in the launcher.ini file.
[DirectoriesCleanupForce] 1=%USERPROFILE%\.asy 2=%PAL:AppDir%\asy\asy_*
Thanks in advance.
 
       
   
        
 Visit the Community page
 Visit the Community page Join our forums
 Join our forums Subscribe to our email newsletter
 Subscribe to our email newsletter Subscribe with RSS
 Subscribe with RSS Follow us on BlueSky
 Follow us on BlueSky Follow us on Facebook
 Follow us on Facebook Follow us on LinkedIn
 Follow us on LinkedIn Follow us on Mastodon
 Follow us on Mastodon
it's been a while since i've made a portableapp..
but if i recall correctly..
you have to use "FindFirst", or "ForEach" with wildcards...
- are the directories empty?
if so.. you can use locate plugin.
ie. locate::RMDirEmpty.
if not..
- create a file called "Custom.nsh" w/following content:
NOTE: i wouldn't worry about folders inside the app. directory.
I was hoping for something in the launcher, but that NSIS script looks like it'll do the trick. Thanks for the code and advice. I'll try it out.