Archive: after setting MUI_STARTMENUPAGE_DEFAULT


after setting MUI_STARTMENUPAGE_DEFAULT
Hi again,

I set MUI_STARTMENUPAGE_DEFAULTFOLDER to Modules\Module_Name_1. Installation is working perfectly. I have a new question, however, for the uninstall section.

On the start menu, there are documentation files and web site entries created at the Modules\ level because they are relevant to all installed modules.

During uninstallation, if there are no directory entries left like Modules\Module_Name_1, Modules\Module_Name_2, etc I want to delete Modules\web_link_1, Modules\doc_link_1, etc and the Modules\ directory.

How can I check if there is any directory left in Modules\ level?

NullCube


IfFileExists "Modules\Module_Name_*" 0 no_delete
RMDir /r "Modules"
no_delete:

-Stu


Awesome, thanks.