Problem with uninstall - which component should i choose? - 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!

kkrzyzak
Posts: 47
Joined: Wed Oct 13, 2010 2:10 pm

Problem with uninstall - which component should i choose?

Hi,
I want to delete Application Shourtcut Folder on uninstall.
Resources->File and Foulders in tab Folders i choose Application Shourtcut Folder. Right click on it shows me popup menu witch contains Uninstall Cleanup...
On first wizzard window i click next. The next window where i choose radio button "Delete folder and all its contents (files and subfolders)" next i choose Component.
The removal will be triggered when the component is uninstalled...

So my question is:
How do i know which component is uninstal first? Because i don't know which component shoud i choose.

Is there any tutorial for creating uninstall.

Best,
Karol.
kkrzyzak
Posts: 47
Joined: Wed Oct 13, 2010 2:10 pm

Re: Problem with uninstall - which component should i choose?

I haven't problem with uninstall now, but i dont know how it works. Realy it works for me like some "MAGIC".

First of all Registry
HLM\Manufacturer\ProductName ->APPDIR (where APPDIR is value in ProductName key)
On Remove for ProductName, Component filed value is APPDIR.

Install App, Uninstall App
Nothing happend : HLM\Manufacturer\ProductName -> APPDIR <- is still in registry :((

On Registry Key tab -> Properties i check "Delete (if present) at uninstall

Install App, Uninstall App
WOHA! HLM\Manufacturer\ProductName -> APPDIR is still in registry <-deleted from registry!!

Next step "Delete ShortCutDir from Start Menu"
Component field value : APPDIR - i thought that APPDIR is value of ProductName key and when ProductKey is deleted from registry its value also will be deleted.

Install App, Uninstall App
Nothing happend : ShortCutDir i still in StartMenu :(((

Component field value : ProductName

Install App, Uninstall App
WOHA! Finally i remove ShortCutDir!!

Now i want to remove ApplicationForder ( i think it will be easy now!!)
Component field value : SHOURTCUTDIR

Install App, Uninstall App
Nothing happend : ApplicationForder is still on my disk :(((

Component field value : ProductName
WOHA!: Finally my aplication is uninstalled after 3h ;((((

Is there someone how can explain me how this mechanism works?
I thought it works like domino (cacade). But as you can see it doesn't :(
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem with uninstall - which component should i choose?

Hello Karol,
How do i know which component is uninstal first? Because i don't know which component shoud i choose.
The order is not important, you should choose a component which is uninstalled when the whole package is uninstalled. This can be configured from the Organization Page( e.g. a component will not be uninstalled if it's marked as permanent ).

Usually, if any resource is not automatically uninstalled means that the resource was either modified by the user or any application interaction after the resource has been installed on the target machine. Another reason may be that it was copied or installed in a custom manner during the installation of the main package. This will be indeed fixed by using the uninstall cleanup wizard.

If you are encountering this behavior you should use the uninstall cleanup wizard both in the Registry Page( for registries remaining after uninstall ) and in the Files and Folders Page( for folders remaining after uninstall ). When running the uninstall cleanup wizard, you should target the parent registry key or folder( checking the include all children option in the wizard ) to avoid performing uninstall cleanup on their children.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”