How to troubleshoot Un-Install error - 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!

ishwarjoshi
Posts: 8
Joined: Fri Jun 15, 2007 7:01 pm

How to troubleshoot Un-Install error

I have created a setup that does couple of things:
a. Copy files/folders
b. Reads registry values and set their value in the environment variable and also stops install if the value is not existing
c. Install a Service in automatic mode (so I don't have a control operation to start it)
d. Force a reboot
e. Check for pre-requisites (.NET 2.0) and install if required
f. Call a VBscript to create a quick launch shortcut
g. Call a C# executable to read the environment variable value created by the setup and then customize a .ini file and run FireFox setup if required.

All this works fine.

The problem is when I go to Add/Remove programs and try to un-install... it goes all the way to 90% with 0 sec remaining and gives an error saying some component failed. But it does not tell me what failed or why.

How can I log the un-install to find out what is erroring out?

Here is what I do as part of the un-install:

a. Call a C# executable which deletes a registry value
b. Stop and delete the installed service

Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

To obtain the log file run the package with the following command line (the package must be installed first in order to get the uninstall):
msiexec /i package.msi /l*v package.log

Send the log to support at advancedinstaller so we can take a look.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
ishwarjoshi
Posts: 8
Joined: Fri Jun 15, 2007 7:01 pm

I tried to execute this and it gave me 'Another version of the product is already installed. Use Control Panel to remove'.

When I go to Control Panel and try to remove it gives me the original problem... runs all the way to 99% and says 'There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor.'

So is there a way for me to create a log of the 'un-install' from the Control Panel?

Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
I tried to execute this and it gave me 'Another version of the product is already installed. Use Control Panel to remove'.
You re-build the project while it was already installed. In order to force the uninstallation of that package you can use a Windows Install Clean Up utility:

http://support.microsoft.com/kb/290301
'There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor.'
You get this error because you have a custom action that fails to run on uninstall. If this custom action need to be run only when the package is installed then use (NOT Installed) as "Execution Condition" for the CA.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
ishwarjoshi
Posts: 8
Joined: Fri Jun 15, 2007 7:01 pm

This does not seem to solve my problem. I have 4 custom actions:

2 in the pre-defined 'Install' section. Both these already have the condition you mention defined.

I have 2 more in the pre-defined 'Uninstall' section. Both these have the 'REMOVE=ALL' condition defined.

I was getting this error even before I put anything in the 'Uninstall' section.

Please advise.

Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please generate a log file while uninstalling the package. To obtain the log file run the package with the following command line:
msiexec /i package.msi /l*v package.log

In order to investigate the problem please send the log and the AIP file (if not contain any confidential informations) to support at advancedinstaller dot com.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”