This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Failed removing custom destination folder
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 07, 2008
02:03 AM
Failed removing custom destination folder
Hello,
I'm using InstallShield Script MSI project. If user is customizing the destination folder on installation. The uninstall doesn't removing the folder, but leaving it empty. The depth of the custom path has no meaning. Please advise.
I'm using InstallShield Script MSI project. If user is customizing the destination folder on installation. The uninstall doesn't removing the folder, but leaving it empty. The depth of the custom path has no meaning. Please advise.
(2) Replies
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 07, 2008
04:43 AM
Unfortunately this is a limitation of the SelectDir function which is called by SddAskDestPath function.
When you select a new folder the dialog must verify that the new path can be created and is writable, the only reliable way to do this is to create the folder. Attempting to delete the folder immediately after creating it could cause problems so currently we don't attempt this, thus if you select multiple paths the each folder is created.
One way to avoid this is to use AskPath, however this dialog does not verify that the selected path is valid or writable, therefore if you use this dialog and the user specifies an invalid path the setup will probably not catch it until file transfer at which point the setup will probably fail and end.
Devin Ellingson
Software Developer
Acresso Software
When you select a new folder the dialog must verify that the new path can be created and is writable, the only reliable way to do this is to create the folder. Attempting to delete the folder immediately after creating it could cause problems so currently we don't attempt this, thus if you select multiple paths the each folder is created.
One way to avoid this is to use AskPath, however this dialog does not verify that the selected path is valid or writable, therefore if you use this dialog and the user specifies an invalid path the setup will probably not catch it until file transfer at which point the setup will probably fail and end.
Devin Ellingson
Software Developer
Acresso Software
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2008
10:09 AM
Thank you for the detailed answer. However, my question was regarding uninstallation process. I've no problem that a custom destination path that user is picking will be created. My issue is that the path is remaining when the product is uninstalled. Maybe the answer is already in your post but I didn't understand it.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)