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?
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.
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.
FOLLOW US
Get the latest news in Application Packaging