uninstall ?s - Folder Removal and prompting user - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

uninstall ?s - Folder Removal and prompting user

Hello AI support team,

I have a few questions regarding folder removal during uninstall and prompting the user to confirm the folder removal.

I used the Uninstall Cleanup Wizard to create a Folder Removal component. This component deletes a subfolder beneath APPDATA. I also configured the component to "ask the user whether he wants to perform cleanup", for both a full UI uninstall and a basic UI uninstall.

This functionality is working fine, but I have some questions:

(1)
When uninstalling from Windows Add/Remove Programs, the "basic UI uninstall" is triggered. The user is presented with a dialog which asks whether the folder should be deleted (exact wording comes from .ail dictionary). The user must then click "Yes" or "No". Can those button labels / text be customized? Rather than "Yes|No", I would like the buttons to say "Delete|Do not delete".

Using an AI enterprise project, I looked on the "Dialogs" page but could not find the corresponding dialog to edit. I also looked in my .aip file, but all I could find was "AI_PromptUserBasicUI".


(2)
It seems that the Folder Removal component cannot traverse a folder-structure and search for names of subfolders. For example, a company MyFauxCo may create two products, MyFauxApp1 and MyFauxApp2. Let's assume both products are installed on the same machine, and both write data to their own subfolder at:
- APPDATA\MyFauxCo\MyFauxApp1
- APPDATA\MyFauxCo\MyFauxApp2

I would like to create a Folder Removal component for each product, such that each product removes only its own APPDATA folder on uninstall. However, it seems the Folder Removal component can only delete folders immediately beneath APPDATA, such as MyFauxCo. I would like each Folder Removal component to go one level deeper, and delete APPDATA\MyFauxCo\MyFauxApp*


(3)
When uninstalling via the MSI package (not using Windows Add/Remove Programs), the "full UI uninstall" is triggered. On the VerifyRemoveDlg, the option to delete the APPDATA folder is presented as a checkbox (Control="UnistallCleanupCheckBox").
- Is VerifyRemoveDlg configurable from the Advanced Installer GUI, or can I only edit it directly in the .aip file? Using an enterprise project, I tried to find VerifyRemoveDlg on the Dialogs page but had no luck.
- The text that appears beside "UnistallCleanupCheckBox" does not appear anywhere in the .ail dictionaries. I found it directly in my .aip project file, but it would be nice if that were stored in the dictionary instead.


Thanks for any help, feedback, comments you can provide.

-Todd
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: uninstall ?s - Folder Removal and prompting user

Hi Todd,
When uninstalling from Windows Add/Remove Programs, the "basic UI uninstall" is triggered. The user is presented with a dialog which asks whether the folder should be deleted (exact wording comes from .ail dictionary). The user must then click "Yes" or "No". Can those button labels / text be customized? Rather than "Yes|No", I would like the buttons to say "Delete|Do not delete".
This dialog can not be customized
I would like to create a Folder Removal component for each product, such that each product removes only its own APPDATA folder on uninstall. However, it seems the Folder Removal component can only delete folders immediately beneath APPDATA, such as MyFauxCo. I would like each Folder Removal component to go one level deeper, and delete APPDATA\MyFauxCo\MyFauxApp*
This can not be done. You can only run cleanup wizards on folders found in the "Files and Folders" structure.
When uninstalling via the MSI package (not using Windows Add/Remove Programs), the "full UI uninstall" is triggered. On the VerifyRemoveDlg, the option to delete the APPDATA folder is presented as a checkbox (Control="UnistallCleanupCheckBox").
- Is VerifyRemoveDlg configurable from the Advanced Installer GUI, or can I only edit it directly in the .aip file? Using an enterprise project, I tried to find VerifyRemoveDlg on the Dialogs page but had no luck.
- The text that appears beside "UnistallCleanupCheckBox" does not appear anywhere in the .ail dictionaries. I found it directly in my .aip project file, but it would be nice if that were stored in the dictionary instead.
The VerifyRemoveDlg can be customized using our Dialog Editor. It can be found on the Dialogs page in Maintenance->MaintenanceTypeDlg->VerifyRemoveDlg in the dialogs (Install Sequence) tree.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: uninstall ?s - Folder Removal and prompting user

Thank you for the prompt response, Gabriel.

(1) basic UI uninstall / AI_PromptUserBasicUI

I think it would be nice if the Yes|No button labels could be customized. Since the message text can be customized, it would seem logical / consistent that the button labels could be customized as well. Perhaps this could be added as a future improvement to Advanced Installer?

(2) Folder Removal action

Do you have any suggestions for how I can avoid the situation where "MyFauxApp1" and "MyFauxApp2" (which both write data beneath ...\APPDATA\MyFauxCo\ ) delete each others data when uninstalled? Both will delete the "MyFauxCo" parent-folder and all sub-folders beneath it.
I suppose one solution is to avoid using the "MyFauxCo" parent-folder and just have the "MyFauxApp*" folders directly beneath APPDATA. However, I would prefer to keep the "MyFauxCo" parent-folder because it offers more organization / structure.

(3) VerifyRemoveDlg

I now see the VerifyRemoveDlg on the Dialogs page - thank you.

I'm sure you guys have more important things to work on, but I just want to point-out a minor misspelling. The control name is "UnistallCleanupCheckBox" - notice that "Unistall" is spelled incorrectly.

Thanks again for your help,
-Todd
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: uninstall ?s - Folder Removal and prompting user

Hi Todd,
I think it would be nice if the Yes|No button labels could be customized.
Unfortunately this is not supported by Windows Installer.
Do you have any suggestions for how I can avoid the situation where "MyFauxApp1" and "MyFauxApp2" (which both write data beneath ...\APPDATA\MyFauxCo\ ) delete each others data when uninstalled? Both will delete the "MyFauxCo" parent-folder and all sub-folders beneath it.
You can try creating the subfolders in "Files and Folders" page and configure the uninstall cleanup on them instead of the parent folder ("MyFauxCo"). This way an uninstall should remove only its subfolder.
The control name is "UnistallCleanupCheckBox" - notice that "Unistall" is spelled incorrectly.
We will fix this in a future version. Thank you for bringing it to our attention.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”