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!

subhendu
Posts: 7
Joined: Mon Jan 02, 2006 12:34 pm

Run UnInstaller

Hi

For Advanced Installer java, I'v to check that the application is already installed or not. If it is installed then first run the uninstaller of the product then install it.

Can anyone suggest about it. What will be the way?

Thanks
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

Windows Installer does this automatically when you install or upgrade your application.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
subhendu
Posts: 7
Joined: Mon Jan 02, 2006 12:34 pm

Main Issue

Thanks for the reply.

But my case is like that, I'v two application bound with a single installer.

If first application is perfectly installed. Second application may face problem during installation. So Installation will be hampered.

Thus I'v to check during the next installation, whether the first installation is in machine or not. If it is there it'll be uninstalled then further installation of first application will be launched. Since at that time unistallation is needed.

Please sugegst.

Thanks
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

You could organize your package into 2 features, each containing one application. These features may share components. However, if either feature fails to install, the whole installation will fail. In this case, if there are some components that are susceptible to failing to install, it is recommended that you condition their installation (if you can determine the exact condition why the failure may occur).


Another approach would be to create 2 MSI packages, one for each application. In this case, you have 2 options:

1. Using Prerequisites.
Your second application will be added as a prerequisite and will be installed before the first (main) application. The prerequisites may be installed silently (without any UI).

2. The second application will be installed after the first one is installed, using a Custom Action scheduled, for example, on the Commit stage.

Please give me more details about what you are trying to achieve.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”