Install over existing package - 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!

sfort
Posts: 7
Joined: Fri Sep 21, 2007 8:26 pm

Install over existing package

I have a couple of things for you guys.

1) I (my client) wants to reinstall over an existing installation. i.e. uninstall the existing (whatever version) and then install the 'new' version. I've able to somewhat accomplish this by NOT registering the product w/ Windows Installer. This seems somewhat funky way to accomplish this. I would like to be able to uninstall before the install and I can't seem to find out how. Any/all help would be greatly appreciated.

2) I would like to comment on the forum. When a search is done the returns don't always seem too relevent, meaning I get a large list to peruse. The problem is if I go look at an item, when I try to get back I have to do the search all over again. Very,very annoying.

Otherwise I am very happy w/ the Advanced Installer, and my boss thinks it's great! Inexpensive and quick.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
1) I (my client) wants to reinstall over an existing installation
Advanced Installer automatically uninstalls previous versions of your application if the two packages (the old one and the new one) have different product codes and the new package has a higher version them the old one. You can read more about this here:
http://www.advancedinstaller.com/user-g ... rsion.html

Note that when you create an upgrade package you must start from the old project (use the "File->Save as" option in order to keep the old project). After you increase the version of the package in the "Product Details" page you need to answer "Yes" when prompted about changing the Product Code.

Also, Advanced Installer allows you to upgrade a specific installation package. For this, you specify the package(s) you want upgraded in the "Upgrades" page, in the "Upgrades" section.
When a search is done the returns don't always seem too relevent, meaning I get a large list to peruse
Please note that you can use the "Search for all terms option" for more accurate results.
The problem is if I go look at an item, when I try to get back I have to do the search all over again. Very,very annoying.
I cannot reproduce this behavior; when you go back you should see a list of the threads found by the search.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sfort
Posts: 7
Joined: Fri Sep 21, 2007 8:26 pm

Maybe the inability to go back is in the security of the place I work. So...I must live with it.

My client wants to install the current version OVER the current version (this is what he wants) without having to manually uninstall the existing version. I had hoped to find an uninstall command/custom action that I could invoke regardless of the version found on the machine.
The only way I have been able to accomplish this is to NOT register with Window Installer.

Lastly my client wants to have an uninstall. I thought that this was part of Windows Installer, but when I run it against the package that AdvInst produces, it throws me into the manual change/remove.

My client is trying to manage some 60,000 machines, so manual routines are just not acceptable.

Thanks for all your help.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I don't understand, why he want do to that? If the package is already installed by default Windows Installer displays the Maintenance dialogs allowing the user to modify/repair/remove the package.

However what you want can be done by creating your own uninstall method and by choosing to not registering the package with Windows Installer (not recommended because your product will not benefit of any Windows Installer feature). With uninstall method I mean a custom EXE that deletes the installed resources (files,registry, etc).

To display the package in "Control Panel" applet you need to create you own ARP settings. The link between "Control Panel" applet and the uninstall method (custom EXE you create) is done by those ARP settings that represents some registry keys created in the AI "Registry" page. For all available registry keys please see:
http://msdn2.microsoft.com/en-us/library/aa372105.aspx

As "Data" for the "UninstallString" key use the path to the EXE file you create. This file must be included in the package so use the "File..." button to pick it (like this: [#file.exe]). To know what folder to delete use a command line like this: [#file.exe] [APPDIR]. Where APPDIR indicates to the folder where the package was installed.

Hope this helps. If you encounter any problem please let me know.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
patku
Posts: 4
Joined: Fri Apr 29, 2011 10:04 pm

Re: Install over existing package

I'm still searching for a method to do what the OP wanted,
My client wants to install the current version OVER the current version (this is what he wants) without having to manually uninstall the existing version. I had hoped to find an uninstall command/custom action that I could invoke regardless of the version found on the machine.
The reason, if you need one, is that I often want to keep the version and product code the same while I am testing an installer, even though the actual program may have changed. If AI can save me from having to open Add/Remove Programs, that will save a lot of time.

So, any way to do that?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Install over existing package

Hi,

A solution would be to write a custom EXE bootstrapper which automatically uninstalls all existing versions before launching the installation. This cannot be done from the MSI because Windows Installer checks installed products before starting the installation sequences.

In a future version we will add support for this in our own bootstrapper.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
allhaveproblems
Posts: 2
Joined: Tue Oct 04, 2011 8:01 am

Re: Install over existing package

I want to know whether this feature is present in current version of advanced installer? My client is also asking to implement above mentioned feature.

thanks in advance.
allhaveproblems
Posts: 2
Joined: Tue Oct 04, 2011 8:01 am

Re: Install over existing package

sfort wrote:I have a couple of things for you guys.

1) I (my client) wants to reinstall over an existing installation. i.e. uninstall the existing (whatever version) and then install the 'new' version. I've able to somewhat accomplish this by NOT registering the product w/ Windows Installer. This seems somewhat funky way to accomplish this. I would like to be able to uninstall before the install and I can't seem to find out how. Any/all help would be greatly appreciated.

2) I would like to comment on the forum. When a search is done the returns don't always seem too relevent, meaning I get a large list to peruse. The problem is if I go look at an item, when I try to get back I have to do the search all over again. Very,very annoying.

Otherwise I am very happy w/ the Advanced Installer, and my boss thinks it's great! Inexpensive and quick.

Dis you solve this problem(1). if so, how did you accomplished it. I really appreciate your help.

thanks in adavance.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Install over existing package

Hello,

This feature is on our TODO list but because of its few requests it has a low priority and it will be implemented in a future version.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
patku
Posts: 4
Joined: Fri Apr 29, 2011 10:04 pm

Re: Install over existing package

Has it been implemented yet?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Install over existing package

Hello,

Yes it has, all you have to do is to have an .EXE installer and enable the "Install MSI as minor upgrade (if applicable)" option from Media page -> Configuration tab.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”