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!

dslamb5736
Posts: 2
Joined: Wed May 30, 2007 4:58 pm

Overwrite Previous Installation

I have an installer that installs files, then runs a custom action for .net using regasm to register a strong named assembly. Then on uninstall another custom action to run regasm /u to uninstall the assembly. This works fine on my machine and others. I distributed the install file to someone in another state, and I believe the installation worked fine. Then he decided to move files, etc. and now the uninstall crashes at the point where regasm runs. I think if I can get a clean install, it might be able to uninstall. The installer won't run because it sees a preexisting copy. I tried creating an upgrade to do a reinstall, but that fails. The repair works but the same problem with regasm at uninstall. I've had him try to delete the entries in the registry, but the installer still sees a preexisting copy despite it no longer being in the control panel. Plus I don't really like being responsible for someone editing the registry. Is there a way to create an installer that will overwrite the existing installation? Or at least run inspite of an existing installation.

I fear that a fresh copy still won't solve the problem of course, but at least I can narrow it down.

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

Hi David,

In oder to get more information about what causes this problem please generate a log file (and send it to support at advancedinstaller dot com) using following command line:
msiexec /i package.msi /l*v package.log

You can force the removal of the older package using the Windows Installer CleanUp Utility:
http://support.microsoft.com/kb/290301

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
dslamb5736
Posts: 2
Joined: Wed May 30, 2007 4:58 pm

Hi Gigi,

Thank you for the response, and the link. Eventually we were able to remove the registry entries and I created an installer that was sychronous and did not respond to the return code. That way the installer could install or uninstall without waiting for regasm.

The dll was a toolbar meant to register with ArcGIS 9.2. I think the problem was that there were missing ArcGIS assemblies on his machine (I ran into a similar problem with a machine I actually had access to) and regasm wouldn't register without the assembly. I'm not sure how it installed, but it definitely did not want to run on the uninstaller.

I think it's too late to do the log, but I will keep it in mind for the next time.

Thanks,
David

Return to “Common Problems”