Archive: uninstall, If subfolders exists


uninstall, If subfolders exists
Hi everybody

I use NSIS to install game software. But my client publishes other games than mine. So when the user uninstall my game He doens't delete all folders created by my installer.

the default folder is like thie : C:\Program Files\My Client\My Game

When the uninstaller is called, it removes the folder My Game. But If there is no folder in C:\Program Files\My Client, I have to remove this folder.

Sorry for my bad english.

How can I detect if another folder exists in the reportory : C:\Program Files\My Client ?


This is exactly what normally nsis does, so probably you don't need to worry about.
A typical nsis uninstaller removes only installed files/folders, furthermore folders only if empty.


http://nsis.sourceforge.net/Uninstal...your_installer
http://nsis.sourceforge.net/Recursiv...nt_directories

Stu


Thanks men, I choose the second solution.