Pathrequester W/O create new folder option?
Posted: Wed Apr 19, 2006 11:49 pm
I need a PathRequester() WITHOUT a built-in option to create a new folder. I've rewritten my installer
program, and ran into a problem when testing.
If a user installs in for example 'Program Files', I can safely remove the subfolder the program was
installed in, but not the 'Program Files' folder itself of course.
But if the user creates a new folder using the Path requester, and installs in it, I can't remove it.
I can remove the program folder, but am not shure what to do about the parent folder the user created.
I could delete the parent folder if it is empty when the program is uninstalled, but the user might have
a reason for creating the folder in the first place, empty or not, so I'm not shure?
Anyway, this problem goes away if the user is simply left with the choice to pick another folder to install
in, instead of beeing able to create a new one, hence the request.
I guess this could be done with som API and some appopriate constants.?
program, and ran into a problem when testing.
If a user installs in for example 'Program Files', I can safely remove the subfolder the program was
installed in, but not the 'Program Files' folder itself of course.
But if the user creates a new folder using the Path requester, and installs in it, I can't remove it.
I can remove the program folder, but am not shure what to do about the parent folder the user created.
I could delete the parent folder if it is empty when the program is uninstalled, but the user might have
a reason for creating the folder in the first place, empty or not, so I'm not shure?
Anyway, this problem goes away if the user is simply left with the choice to pick another folder to install
in, instead of beeing able to create a new one, hence the request.
I guess this could be done with som API and some appopriate constants.?