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

Uninstaller does not remove all folders

I have a product called as Softphone (version 1.0.1). When I install the product(per user installation), it creates following folders
C:\Documents and Settings\arsk\Application Data\Test Co\Softphone
C:\Documents and Settings\arsk\Application Data\Test Co\Softphone 1.0.1

But while uninstalling, Softphone 1.0.1 does not get deleted. Any idea how to fix this problem?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Uninstaller does not remove all folders

Hi,

This is usually the extract location for EXE installers. Can you check Builds page settings to see if you have enabled the option to skip removing this folder?

Also, can you tell us what version of Advanced Installer are you using and if you are using Enhanced UI in your package? We have a small problem which is still under investigation with some extracted files that don't always delete.

Best regards,
Bogdan
Bogdan Mitrache - 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: Uninstaller does not remove all folders

Hi Bogdan,

Thanks for your response.

Following are the answers to your questions
1) "Do not delete extracted msi and cab files" is unchecked
2) "User Interface->Use enhanced user interface->Only on Install" is checked
3) It was created using 9.7, but currently I am using the 9.8 build 48877

I guess, it is very easy to reproduce this problem
1) Create a new project(e.g. Enterprise) in 9.8 build 48877
2) in the "install parameters" change the "Installation type" to "per-user"
3) In "Builds" change the package type to "single exe setup(resources inside)"
4) build,install and uninstall.

do let me know if you need any help in reproduction.
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstaller does not remove all folders

Any update on this? Do let me know if you need any help on this.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstaller does not remove all folders

Hello,

Please keep in mind that when you have a per user installation type, then your installation package will use an installation path like this:

Code: Select all

C:\Documents and Settings\arsk\Application Data\Test Co\Softphone
which will be removed after uninstall.

Also, if you are using an EXE setup with resources inside, then your MSI installation package and .CAB files embedded in the EXE bootstrapper will be extracted when the EXE is launched to an extract location like this:

Code: Select all

C:\Documents and Settings\arsk\Application Data\Test Co\Softphone 1.0.1
which should be removed after install and uninstall if "Do not delete extracted MSI and CAB files" option is unchecked. Unfortunately, when the "Enhanced UI" feature is enabled the related extracted files aren't always deleted. As my colleague mentioned in previous post this issue is currently under investigation and we try to find a resolution for it.

Also, as a workaround you can disabled the "Enhanced UI" feature or you can change the "Extract Location" from "Builds -> Configuration" path.

All the best,
Daniel
Daniel Radu - 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: Uninstaller does not remove all folders

Thanks Daniel. According to my understand only solution is to "Disable Enhanced UI". because if the "Enhanched UI" is checked then "Exe Setup" gets selected.

I would need the "Enhanced UI" because some of the UI components does appear better(e.g. editbox with the password appears with a border in "normal" mode). Since it is not a "high priority" bug, I shall wait for the the bugfix.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstaller does not remove all folders

Hello,

Also, another workaround would be to build an EXE setup with resources next to it. Go to "Builds -> Configuration" tab and select the "EXE setup with resources next to it" package type option. Also, in this case you can maintain enabled our "Enhanced UI" feature.

All the best,
Daniel
Daniel Radu - 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: Uninstaller does not remove all folders

Thank you Daniel.

I tried this and its working fine. But, I would need to support single file(which could be downloaded and installed). Anyway, thanks for your help. Will wait for the fix.
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstaller does not remove all folders

Hi Daniel,

I tried this in the latest version. I could reproduce the same problem. Do let me know once this is fixed.

Regards,
Rohan
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstaller does not remove all folders

Hello Rohan,

This issue is still under investigation and, unfortunately I cannot give you an ETA for now. However, as a workaround you can proceed like this:
- Go to "Custom Actions" page and add a "Set installer property" custom action with sequence, scheduled before "Wizard Dialogs Stage -> Searches" action group, like this:
  • Property: AiCloseAllHandles
    Formatted: 1
- Build and run your project.

Also, please keep in mind that it is not recommended to use the above workaround if your package will execute asynchronous custom actions (when "Wait for custom action to finish before proceeding" option is unchecked).

Let us know if this helped.

All the best,
Daniel
Daniel Radu - 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: Uninstaller does not remove all folders

In "Dialog Stage condition" should I check only "uninstall"(or even other like "install", "Maintenance")?

When I check "install"(along with the uninstall and maintenance), I get the problem "Custom action SetProperty specifies unsupported type"

If I just check the "uninstall", the folder are still not getting removed. If you want I could send you the setup files.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstaller does not remove all folders

Hello,
In "Dialog Stage condition" should I check only "uninstall"(or even other like "install", "Maintenance")?
Yes, the custom action should always run (on install, uninstall and maintenance).
When I check "install"(along with the uninstall and maintenance), I get the problem "Custom action SetProperty specifies unsupported type"
I'm not sure why this happens. Please attach a sample which reproduces the behavior or send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them.

All the best,
Daniel
Daniel Radu - 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: Uninstaller does not remove all folders

Hi Daniel,

I am sorry, I was not able to reproduce When I check "install"(along with the uninstall and maintenance), I get the problem "Custom action SetProperty specifies unsupported type"

I tried with the steps mentioned by you, but the folders does not seem to getting removed. I have sent you a mail regarding this.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstaller does not remove all folders

Hello,
I tried with the steps mentioned by you, but the folders does not seem to getting removed. I have sent you a mail regarding this.
Can you please set an extract location, in "Builds -> Configuration" tab, like this:

Code: Select all

[AppDataFolder][|Manufacturer]-extract\[|ProductName] [|ProductVersion]\install
and see if the behavior still persist?

All the best,
Daniel
Daniel Radu - 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: Uninstaller does not remove all folders

:-) Thanks it worked.

Return to “Building Installers”