SQL Scripts and IIS application during uninstall - 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!

prolancer
Posts: 17
Joined: Wed Nov 23, 2011 6:16 am

SQL Scripts and IIS application during uninstall

Hi,

we are creating a package to install an IIS application. We configured AI to run SQL scripts to create (during install) and remove (during uninstall) the DB that the application is going to use. In addition, we configured AI to install the IIS application.

All goes well during installation. First the installer runs the scripts to create the DB and then it configures the application on IIS.

However, during uninstall, it runs the SQL script to remove the DB before it removes the application from the IIS configuration. This causes an issue as the DB is still in use while attempt is made to drop it.

How can we configure AI to remove the web application from the IIS configuration BEFORE it runs the SQL script to drop the DB?

Thank you
Emil
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SQL Scripts and IIS application during uninstall

Hi Emil and welcome to Advanced Installer forums,

To fix this you can try the following:
- go to Table Editor page
- navigate to InstallExecuteSequence table
- replace AI_SqlUninstall and AI_IIsUninstall action's sequence number between one another

Thank you for bringing this to our attention. We will consider improving this behavior for a future version, so any related feedback is welcome. Are you aware of any scenarios in which the current default order would be relevant?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prolancer
Posts: 17
Joined: Wed Nov 23, 2011 6:16 am

Re: SQL Scripts and IIS application during uninstall

Hi Mihai,

your suggestion worked for us. Thank you.

Emil

Return to “Common Problems”