shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Uninstall does not remove everything

Hi,

Please find attached the stripped version of my project file. In case I change the installation path during the installation, then "uninstall" does not remove the folder. Can you please help me in fixing this??

Reproduction steps
1) Open the aip file
2) Build the aio file
3) Now run the setup file
4) Change the installation folder, and finish the installation
5) After the installation, please create a dummy file under the softphone folder(say dummy.txt)
6) Now Uninstall the product. Uninstallation would not remove the folder(because of the dummy.txt)

Note: If I do not change the folder during the installation, then everything works fine
Attachments
setup.zip
(13.05 KiB) Downloaded 371 times
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall does not remove everything

Hello,

Please note that this is the default behavior; during an uninstall, Windows Installer removes only the data registered into the MSI file. All other data created by custom actions, by the installed application or by the user is not registered in the MSI, therefore it will not be removed.

If you want to also delete this data, you can use the "Uninstall Cleanup" wizard feature to remove any redundant files or folder. On the Files and Folders page, simply right click the folder that needs to be cleaned up upon uninstall and click “Uninstall Cleanup". The “Wizard” will guide you through the rest of the process.

If you need any help, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstall does not remove everything

Hi Dan,

I have already added this. You could check this in the attached aip file(i.e Files and Folders->Target computer -> Application folder -> Operations-> Remove Folder). Because of this following testcases is working fine

1) Now run the setup file
2) Do NOT change the installation folder, and finish the installation
3) After the installation, please create a dummy file under the softphone folder(say dummy.txt)
4) Now Uninstall the product. Uninstallation would remove the folder.

This problem appears only if I change the installation folder. Can you please help me in fixing the problem?

Regards,
Rohan
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall does not remove everything

Hello Rohan,

I'm not sure why you encountered this behavior. Can you please try to edit the “softphone” folder property and enable the “Remove folder” option in the “Operations” tab. You can also use the same properties for this folder as the one you have used for “Application Folder” to remove it.

I've tested this scenario and the installation folder was properly removed even you added some files after the installation has ended.

Let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstall does not remove everything

Thanks. If I add this in softphone folder, then everything works fine. Only problem is since I have couple of folders (in the same level as softphone), I need to change the properties of all these. But, you could consider that this problem is solved.

However, if you need any help in reproducing this(along with the logs), I could help you. Because I could reproduce this problem very easily.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall does not remove everything

Hi Rohan,

Indeed, this seems to be an Advanced Installer issue. A fix will be available in a future version of Advanced Installer, thank you for bringing it to our attention.
Until then, you can use the workaround from my previos reply.

If you have any questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstall does not remove everything

Thank you Dan. Once you guys fix this please do let me know.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall does not remove everything

Hello Rohan,

I was informed by the development team that this is the default behavior in Windows Installer and it is not an issue related with Advanced Installer as I said in my previous reply.

You get that behavior because the value of APPDIR property is not restored on uninstall because the package does not contain a component which has as directory APPDIR. Because APPDIR value is not restored the remove process looks in the wrong place for the folder to remove.
To fix this either add a file directly in APPDIR folder or from folder properties check the Create folder on target machine option .

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstall does not remove everything

Thank you for the information
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall does not remove everything

You're welcome Rohan,

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”