ksuwada
Posts: 16
Joined: Wed Jun 01, 2011 2:52 pm

cannot mark APPDIR to be deleted at uninstall

Hi,

if I mark the APPDIR folder to be deleted with all the contents at uninstall (I used cleanup wizard), and then I want to save or build the project I get the folowing error:
bug.png
bug.png (9.73 KiB) Viewed 2472 times
What have I did worng, or maybe it is a bug.

Kind regards
KS
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: cannot mark APPDIR to be deleted at uninstall

Hi,

I tried reproducing this with version 8.3 of Advanced Installer but with no success. Can you please tell me what version of Advanced Installer
are you using? Also, can you reproduce the problem in a new test project?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ksuwada
Posts: 16
Joined: Wed Jun 01, 2011 2:52 pm

Re: cannot mark APPDIR to be deleted at uninstall

I have 8.3, and I have found why I was getting that exception.

The Component field on the second dialog of the Cleanup wizard was empty and I didn’t choose any. I thought that it is optional.
empty.png
empty.png (25.29 KiB) Viewed 2468 times
In another project that field was set automatically to some component, and when I filled that field the exception was gone.
Do I always have to choose the component? I have a mixed 32/64 bit installer and I don’t have any shared component that exists in both configurations.
Should I create a fake one just to trigger the folder deletion?
Kind regards
KS
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: cannot mark APPDIR to be deleted at uninstall

Hi,
Do I always have to choose the component?
Yes, the selection of a component is mandatory. I am not sure yet why the combo was not set to a default component as it should have.
Should I create a fake one just to trigger the folder deletion?
Although is the not the most elegant it is the only solution for your case. You can create a dummy registry entry, so the component is generated.
Then on this registry you can set a removal operation at install time, so after install it is removed from the machine.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”