Uninstall issues - 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!

gsimpson
Posts: 13
Joined: Sat Dec 31, 2011 8:13 pm

Uninstall issues

Hi,

I have an installer that is working fine. This installer installs Omnis and PostgreSQL and some Omnis libraries. The way that I installed it is to run Omnis and PostgreSQL as Prequisites and just run the executables that I downloaded from their sites with the proper command line options. They are BitRock installers, so I dont know the MSI codes. This part is running fine. The problem comes to uninstall. The user would need to uninstall 3 different things to remove the application. This is not the best way and my client won't like it. I would prefer to uninstall just the main application and it uninstalls the rest.

I found in the registry the Uninstall strings to uninstall Omnis and PostgreSQL and have added them to the Custom Actions -> InstallExecuteSequence -> Uninstall and they seem to work ok. The options that I have used are:
Synchronous Execution, check return code
Immediate Execution
Always Execute
REMOVE = "ALL"

I have done the same for PostgreSQL.

I also have 2 more Uninstall actions. These are CMDs that run to remove the PostgreSQL database files, remove the PostgreSQL service account user, and remove some files that get left behind after installation.

There are a couple problems here.
1. If a user uninstalls either PostgreSQL or Omnis normally via ARP, my uninstall will fail since they seem to be required.
2. If I change it to Not return the Error Code or go Asynchronous, the installer goes ahead and and starts deleting the files before the database is uninstalled.

I have tried to set the Remove on the PostgreSQL database files, but I think that PostgreSQL is running when it is trying to delete the files on uninstall and it can't.

So, 2 of the many questions I have are:
1. How do I pause the uninstall to wait for another uninstall to complete?
2.How do I change AI to not fail if one of the other programs gets uninstalled?

Thanks for your time,
Greg
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstall issues

Hi Greg,

If you already know the uninstall command lines here's an article you can adapt:
http://www.advancedinstaller.com/user-g ... l-msi.html

Usually two installer processes cannot run at the same time, hence, as mentioned in the article, the custom action should be executed after InstallFinalize.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”