Problem In 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!

kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Problem In uninstall

While uninstalling my application iam uninstalling the MSDE also.

For uninstalling MSDE and OWC iam using custom action of

Code
msiexec /x {E09B48B5-E141-427A-AB0C-D3605127224A}
msiexec /x {90A40409-6000-11D3-8CFE-0150048383C9}

and InstallExecuteSequence->InstallFinalize

Asynchronous execution, do not wait for return

now my problem is while uninstalling the application the a windows installer msgbox appears asking "Are you sure you want to uninstall this product?"

for both products it is asking at a time

how can I make one bye one to uninstalling after my application uninstalls.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

In order to do this you can create a MSI that uninstalls the two MSI packages. This MSI will install nothing and it will be launched by a custom action.

Here are the steps for creating this MSI:
- you create a new project
- in the "Product Details" page you check the "Do not register the product with Windows Installer" option
- in the "Install Parameters" page you check the "Limit to basic user interface (simple progress and error handling)" option
- in the "Upgrades" page you set the MSI installations that will be uninstalled by the new MSI
- in the "Registry" page you create a registry value (it doesn't matter where or what value it has)
- in the "Organization" page you select the component (there is only one)
- in the "General" section you set the "Condition" field to TEST

This package will uninstall the MSI installations set in the "Upgrades" page and it will install nothing because it has a single component (the registry key) that always has a false installation condition.

In your main Advanced Installer project you will run this MSI as an immediate custom action scheduled under the "InstallFinalize" standard action. The custom action will be "Asynchronous execution, do not wait for return" and the "Execution Condition" will be REMOVE="ALL".

Regards,
Cosmin
Last edited by Cosmin on Tue Nov 27, 2007 2:49 pm, edited 1 time in total.
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

hi,


How i include the product code in upgrade page and create the msi file.



Thanks
Kiran
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

You can create the MSI file like I explained in my previous post. In the "Upgrades" section you can specify the MSI installation that will be uninstalled by your MSI by pressing the "New..." button and selecting the MSI.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”