ganesh.0627
Posts: 11
Joined: Wed Aug 13, 2014 6:38 am

While upgrade the folder are not deleting

Hi,

I have installer which has two features "DesktopControl" and "TSP" , but if i disable "TSP" while upgrade then previously installed "TSP" folders are not getting deleted by installer

Reproduction Steps:
-----------------------------------------------------------
1) extract "sample.rar"
2) Run the advance installer project sample.aip(sample\sample.aip).
3) build it two version 2.5.0 and 2.5.1
4) run the 2.5.0 executable (SAMPLE\Setup Files\TELES.DC.BUILD\TELES.DesktopControl-windows-386.exe).
5)make sure that both "DesktopControl" and "TSP" are checked
6)open installed path (default will be : C:\Program Files (x86)\TELES AG\DesktopControl)
7) once the 2.5.0 installation is done please upgrade the installation with 2.5.1 with "TSP" unchecked
8) open installed path and u can see "TSP" folder even after giving condition to remove folder

Expected:
During upgrade the installer should delete TSP folder if the TSP feature is unchecked by user

Please let me know how can i achieve this is there any work around for it ??

Regards
Ganesh
Attachments
Sample.rar
(13.05 KiB) Downloaded 293 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: While upgrade the folder are not deleting

Hi Ganesh,

Looking over your AIP file, I noticed that the "New file.xml" operation has the "AI_ExePath" component assigned to it, however that component is by default, shared between all the features. So, even if you uncheck the "TSP" feature, the "XML Edit" operation is executed by the "AI_ExePath" components available in the other features.

In order to avoid this problem, you can create a component that is unique to the "TSP" feature (you can simply move the "TSP" component from the "MainFeature" feature) and assign it to the "XML Edit" operation.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”