Unistall SQL Express Edition with Advanced Services - 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

Unistall SQL Express Edition with Advanced Services

Hi,

I want to unistall the Express Edition with Advanced Services.

When i install the SQL Express Edition 2005 with Advanced Services it installs
10 products
1. Microsoft SQL Server 2005
2.Microsoft SQL Server 2005 Reporting Services
3.Microsoft SQL Server Setup Support Files (English)
4.Microsoft SQL Server 2005 Tools
5.Microsoft SQL Server Native Client
6.Microsoft SQL Server 2005 Backward compatibility
7.Microsoft SQL Server VSS Writer
8.Microsoft SQL Server Management Studio Express
9.MSXML 6.0 Parser
10.Microsoft Office 2003 Web Components

I want to uninstall all when iam unistalling my application.

how can i do it with advance installer


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

Hi,

This can be done like I explained in this post:
http://www.advancedinstaller.com/forums ... php?t=4268

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Hi,

In the "Upgrades" page i am seeing only

Automatically upgrade older product version.
Allow side by side installs of different product versions

Customize Advance Installer upgrade rules

i am not seeing "MSI installations that will be uninstalled by the new MSI "

and also

under the "InstallFinalize" standard action if i select the from "New attached custom action" in that "msi" files are not showing

i have select show all files and then i selcted the msi file.

but after selecting "Asynchronous exection" is disabled.

Please give me more details how i add the product codes in upgrade page to unistall and also how i will add msi file


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

Hi,
In the "Upgrades" page i am seeing only
Automatically upgrade older product version.
Allow side by side installs of different product versions
Customize Advance Installer upgrade rules
i am not seeing "MSI installations that will be uninstalled by the new MSI "
In the "Upgrades" section you can specify the MSI installation that will be uninstalled by your MSI by pressing the "New..." button.
under the "InstallFinalize" standard action if i select the from "New attached custom action" in that "msi" files are not showing
i have select show all files and then i selcted the msi file.
but after selecting "Asynchronous exection" is disabled.
Here are the steps for adding the MSI as a custom action:
- in the "Files and Folders" page you add the MSI in the "Windows -> Temporary" folder
- in the "Organization" page you make sure that the MSI is the only resource in it's component (you can create a new component that contains only the MSI)
- for the component of the MSI you check the "Do not register with Windows Installer" option
- in the "Custom Actions" page you create a "Launch File or Open URL" under "Uninstall" or "InstallFinalize"
- you make sure that the custom action looks like this:

Code: Select all

Command Line: "[TempFolder]package.msi" (package.msi is the msi that uninstalls the other packages)
"Asynchronous execution, do not wait for return"
Execution Options: "Deferred"
Execution Condition: REMOVE="ALL"
Note that the MSI that uninstalls the other MSI packages will remain in the "Documents and Settings\[current_user]\Local Settings\Temp" folder.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Hi,

In custom action> InstallFinalize > Execution Options only

Immediate execution is enabled. Remaining are in disabled mode.


when i use the Immediate execution the temp folder opens.

The msi is not ruuning automatically.


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

Hi,
In custom action> InstallFinalize > Execution Options only Immediate execution is enabled. Remaining are in disabled mode.
Yes, you are right, this is because "InstallFinalize" is the last step of the installation, therefore it can be only "Immediate".
when i use the Immediate execution the temp folder opens. The msi is not ruuning automatically.
Please make sure that you use a correct path for the MSI that will be launched, for example: "[TempFolder]package.msi" (with quotes).
If the problem persists the please send us the AIP that show this behavior to support at advancedinstaller dot com so we can investigate this issue.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Hi,

while uninstalling i am running vb script asking the user "Do you want remove the database?" Yes or No

for vb script file the condition i have given "remove=all"

If user clicks on yes i am uninstalling my application and i want to unistall sql express also.

For uninstalling the sql express i am using msi file in Install finalize. In files and folders i kept in temp folder.

Now my problem is while uninstalling my application the temp folder is getting cleared the uninstall.msi file also. how do i keep the msi file in temp folder.


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

Hi,

Sorry, I didn't configure in organize page. Its working.


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

hi,

there is any way to delete the MSI that uninstalls the other MSI packages which remains in the "Documents and Settings\[current_user]\Local Settings\Temp" folder. through the advance installer.

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

Hi,

Because of the nature of what you are trying to do this cannot be done. This is because this MSI package is needed in the final step of the uninstallation process.

This is not a very clean solution, but it does what you need.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

hi,

When my application uninstalls it is asking to restart the system and the msi which i created for unistalling SQL express it starts and giving the message another msi is running.


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

Hi,

Please try setting the REBOOT property in order to set the installation to not prompt for a reboot. For example you can create in the "Install Parameters" page the property REBOOT with the value ReallySuppress.

You can read more about this here:
http://msdn2.microsoft.com/en-us/library/aa371101.aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Hi,

While uninstall iam asking the question with yes and No message box.

when i click on yes i want to run the msi file, if click on No button i want to uninstall the one more application,

I tried with msi file i added in InstallFinalize added launch file or ...
command line > "[TempFolder]package.msi"
Execution Properties > Asynchronous execution, do not wait for return
Execution Options > Immediate execution
Scheduling Options > Always execute
in condition (REMOVE="ALL") AND CONDITION = 1

and in InstallFinalize added exe with working dir
Full Path > MsiExec /X {prodcutcode}
Execution Properties > Asynchronous execution, do not wait for return
Execution Options > Immediate execution
Scheduling Options > Always execute
in condition (REMOVE="ALL") AND CONDITION = 2

If i click on No it works fine. for Yes it is not working.


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

its working fine


Thanks
Kiran

Return to “Common Problems”