Laurin
Posts: 58
Joined: Thu Jun 12, 2008 4:27 pm

Setup does not remove files over control panel

Hi guys,
If i uninstall my program over the setup.exe (start it again and click remove) everything works fine.
If i remove it over the control panel "add or remove programs" it does uninstall without an error message but there program directory stays on the system.

Do you have any idea?
This behaviour is only on win 7 on a win xp machine everything works fine.
the setup is compiled with Advanced Installer 8.0.2.

Thank you for your help
best regards
laurin
Laurin
Posts: 58
Joined: Thu Jun 12, 2008 4:27 pm

Re: Setup does not remove files over control panel

Hi guys,
Sorry to stress you, but it would be an immense help for me if you have any idea for me, why this problem happens. (my customer is getting angry)
Is it caused by the AI Version?
Thank you for your help in advance,
laurin
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Setup does not remove files over control panel

Hi Laurin,

Can you please specify exactly what resources are left behind?

Possible assumptions on the cause of this behavior would be a custom action or a service that uses the resources from your installation directory during uninstall.

You can create verbose logs fo both uninstallations( working and not working ), diff them and see the real reason.

As a solution you can try to control that custom behavior that uses the resources during uninstall. Another would be to use the "Uninstall Cleanup" wizard available from the context menu when a folder is selected in the Files and Folders Page.

Also, here's a related FAQ article section that may help:
http://www.advancedinstaller.com/user-g ... question90

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Laurin
Posts: 58
Joined: Thu Jun 12, 2008 4:27 pm

Re: Setup does not remove files over control panel

Hi mihai,

Thank you for your response.
What you say does not make sense to me because:
If i uninstall it over the exe again, means i start the setup file again and klick remove there, everthing works correctly!
Why should the custom action block an uninstallation over the control panel but not the one over the setup file?

to your question: the complet directory in program files will not be removed.
Laurin
Posts: 58
Joined: Thu Jun 12, 2008 4:27 pm

Re: Setup does not remove files over control panel

Hi Mihai,

One further question:
How do i create a verbose log if i need to start the setup over the control panel?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Setup does not remove files over control panel

Hi Laurin,

Our support team usually includes relevant inline links marked as blue text. All blue text from my last post is a link to a related article( including verbose log ).

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Laurin
Posts: 58
Joined: Thu Jun 12, 2008 4:27 pm

Re: Setup does not remove files over control panel

Hi Mihai,

Sorry, i realized that this is a link but i didn't read it correctly.
attached you find a zip with both logs - working and not working. do you have any idea?
I don't get really lightened from this logs... :-)
all the best and thank you in advance for your help
laurin
Attachments
uninstalllogs.zip
(57.72 KiB) Downloaded 535 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Setup does not remove files over control panel

Hi Laurin,

Can you please assure the "Installation Type" combo in the "Install Parameters" page is set to "Per-machine only (fails if user is not administrator)"?
This behavior can occur if you configured your package to perform a per-user installation in a per-machine location( "Program Files" folder ).

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Laurin
Posts: 58
Joined: Thu Jun 12, 2008 4:27 pm

Re: Setup does not remove files over control panel

Hi Mihai,

Thank you!!
That did the trick!

best regards
laurin
Laurin
Posts: 58
Joined: Thu Jun 12, 2008 4:27 pm

Re: Setup does not remove files over control panel

Hi Mihai,

I have an urgent question, maybe you can help me.
I now changed the installation type from per user to per machine.
My problem is now, that the setup does not uninstall a pervious version (which was built on a per user basis).
The setup installs side by side and does not uninstall the old version.

Can you help me?
thank you in advance! it would be very great if you have a tip for me today since the update should get rolled out tomorrow :-)
all the best
laurin
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Setup does not remove files over control panel

Hi Laurin,

Unfortunately, as underlined in our Upgrades page user guide:
"A per-user installation cannot upgrade a per-machine installation and a per-machine installation cannot upgrade a per-user installation."

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Laurin
Posts: 58
Joined: Thu Jun 12, 2008 4:27 pm

Re: Setup does not remove files over control panel

Okey thank you.
I've found the uninstallpreivousversion custom action which helped me.

Return to “Common Problems”