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!

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

Uninstall is not removing all files

I just complied the my sources using the latest version of the AdvancedInstaller(9.9 build 49525)

I found two problems, I guess which was working fine in the older version of the AdvancedInstaller
1) I have added an "uninstall" link to the shortcut, which is not getting removed when we unindtall
2) My product gets installed in C:\Documents and Settings\rohs\Application Data\TELES FMC\UC Softphone\softphone
My product also creates the logs in this directory.
Since by default these generated files are not removed by the installer(during the uninstall), I have added a "RemoveFolder" in operations. This folder does not get removed

Steps to reproduce
1) Please extract the attached the zip file
2) build it
3) install it
4) create some file in C:\Documents and Settings\<user>\Application Data\TELES FMC\UC Softphone\softphone
5) uninstall the product

Now you could see the "unsinstall shortcut" in the programs, and also the folder C:\Documents and Settings\rohs\Application Data\TELES FMC\UC Softphone\softphone
Attachments
test.zip
Sample file
(102.74 KiB) Downloaded 460 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstall is not removing all files

Hello,
1) I have added an "uninstall" link to the shortcut, which is not getting removed when we unindtall
I've tested your scenario, but I can not reproduce the behavior. Can you reproduce the behavior on multiple clean machines? If so, can you tell us what is your target machine software configuration (i.e. Windows version, service pack, Windows Installer version, OS language)?
2) My product gets installed in C:\Documents and Settings\rohs\Application Data\TELES FMC\UC Softphone\softphone
I've tested your scenario and, indeed I could reproduce this issue. The behavior is generated by the "AI_CLEAN_RESOURCES_UNINSTALL" property, which is missing from your project. I'm not sure why this happens. Can you reproduce the behavior on a new project? If so, can you give us a detailed step by step test case scenario so we can investigate this?

However, in order to achieve what you want you should add "AI_CLEAN_RESOURCES_UNINSTALL" property to "Property" table. Just go to "Table Editor" page and in the "Property" table add the following new rows:
  • Property: AI_CLEAN_RESOURCES_DISABLE_UPGRADE
    Vaue: 1

    Property: AI_CLEAN_RESOURCES_UNINSTALL
    Value: 1

    Property: AI_CLEAN_RESOURCES_USER_PROMPT_BASIC_UI
    Value: 0

    Property: AI_CLEAN_RESOURCES_USER_PROMPT_FULL_UI
    Value: 0
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: Uninstall is not removing all files

Thank your for the help

Problem 1): For now, I have removed "uninstall" link from the shortcuts. So please ignore about this.

Problem 2): I have attached the setup(similar to the one used by my company, I have removed prerequisites). In this setup the setting suggested by you(i.e Property values) seems to be already there.

Reproduction steps
1) Extract the zip to a folder
2) Open the setup file from AVReproduction\DesktopClient\Setup\Desktopcontrol v2\UCSoftphone
3) Build it
4) install it
5) Create a file in "C:\Documents and Settings\rohs\Application Data\TELES FMC\UC Softphone\softphone"
6) now uninstall the product
7) folder do not get removed

Windows Version: Windows XP
Service Pack: SP2
OS Language: US English
Installer version: 9.9 build 49525 Enterprise
Attachments
AVReproduction.zip
(152.81 KiB) Downloaded 440 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstall is not removing all files

Hello Rohan,

I've tested the above scenario, but I cannot reproduce the behavior. Can you reproduce the behavior on multiple clean machines? If so, can you attach a verbose log of the uninstallation so we can investigate it?

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: Uninstall is not removing all files

Sorry, I to am not able to reproduce this. Tried couple of times.

We(QA) will be testing this couple of more machines, I will send you the logs once we could reproduce the same.

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

Re: Uninstall is not removing all files

In one of the QA(Windows XP 32 bit SP3) machine, I could reproduce this very easily.

I have attached following
1) Actual Setup
setup-windows-386.aip
Aip file
(385.71 KiB) Downloaded 485 times
2) Verbose log in Dev machine(which is working fine)
Working.zip
Verbose log in Dev machine(which is working fine)
(230.95 KiB) Downloaded 476 times
3) Verbose log in QA machine(non working)
NonWorking.zip
Verbose log in QA machine(non working)
(240.05 KiB) Downloaded 477 times
Steps to reproduce:
1) install
2) uninstall
3) Now we could see some files(e.g. fmclog.conf which are generated by the application).

Can you please help me in fixing this?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstall is not removing all files

Hello Rohan,

I'm not sure why you are encountering this behavior. Can you please set the "Extract Location" field, from "Media -> Configuration" tab, to something like this:

Code: Select all

[AppDataFolder][|Manufacturer]-extract\[|ProductName] [|ProductVersion]\install 
and see if the behavior still persist? If so, can you isolate the behavior in a sample project or can you give us a detailed step by step test case scenario so we can try to reproduce and investigate this?

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: Uninstall is not removing all files

Hi Daniel,
Thanks for the quick response. I guess this seems to be a tricky problem. This is working fine in my machine. However, this is not working in many of QA machines(may be they do not have AdvancedInstaller or may be some other important thing is missing)

Reproduction steps
1) Please find attached the zip file, which has the aip file
2) Open the aip file, build it
3) Now install this product(i.e double click on TELES.DesktopControl-windows-386.exe), which gets installed in the C:\Documents and Settings\<curruser>\Application Data\TELES AG\DesktopControl\
4) Now, copy a dummy file into C:\Documents and Settings\<curruser>\Application Data\TELES AG\DesktopControl\PALService\
5) Now uninstall the product(click on TELES.DesktopControl-windows-386.exe, then click on remove button)
Now you would see the C:\Documents and Settings\<curruser>\Application Data\TELES AG\DesktopControl\PALService\ folder

Attachements
1) The aip file
UCSoftphone.zip
Setup aip file
(12.3 KiB) Downloaded 635 times
2) Verbose logs from QA machine where it is not working
VerboseLogs.zip
Verbose logs for the install and uninstall
(55.87 KiB) Downloaded 555 times
If you need any help in reproducing this please let me know.

Note: I could reproduce very easily in QA machines
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Uninstall is not removing all files

After some trial and error it worked.

Solution: In folder properties(i.e for the "Remove folder") I had used "AI_EXEPATH" in the "Component:". When I changed this to a proper file(say "TELESReadme.txt") it worked fine.

Return to “Building Installers”