Skip to content
⌘ NSIS Forum Archive

uninstall, If subfolders exists

4 posts

Socrate#

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 ?
Red Wine#
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.
Afrow UK#



Stu