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!

Guillermo
Posts: 6
Joined: Thu Oct 29, 2015 3:52 pm

end user need to run uninstall before install the modified msi

Hi to All,

I'm testing the free installer.
I've made an msi packet that Works well, but if I regenerates the msi due to some change, the the end user need to run uninstaller before install the modified msi.

The message (in spanish) is
ya está instalada otra versión de este producto.
la instalación de esta versión no puede continuar.
Para configurar o quitar la versión existente de este producto, utilice Agregar o quitar programas del panel de Control.

auto translated in google translate:
It is already installed another version of this product.
Installation of this version can not continue.
To configure or remove the existing version of this product, use Add or Remove Programs Control Panel
.

Please there is some way to avoid this message? thus: simply reinstall.

Best wishes,
Guillermo, Spain.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: end user need to run uninstall before install the modified msi

Hello Guillermo and welcome to Advanced Installer forums,

This is happening because two products with the same ProductCode can not be installed on the same computer. Windows Installer will prevent this with an error reading:

Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.

This message is showed if you created a package, installed it, modified its contents and then you tried to install it again without uninstalling the original one. Basically, Windows Installer can upgrade the original package only if the modified one has a higher version and a different Product Code. For details, please take a look on the Product Identification (ProductCode and UpgradeCode) article.

This error can only occur on development machines during the installer's authoring process. You needn't consider preventing it on clients' machines.

Let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Guillermo
Posts: 6
Joined: Thu Oct 29, 2015 3:52 pm

Re: end user need to run uninstall before install the modified msi

Thanks very much for your fast reply.

Really I'm installing in "other machine" because my pc (where I créate the msi) have Win10 and I'm testing installing in an virtual machine (VirtualBox) running Win7.

Thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: end user need to run uninstall before install the modified msi

Hi,

Can you please make sure that the machine where you were running the installation package is on a clean state?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Guillermo
Posts: 6
Joined: Thu Oct 29, 2015 3:52 pm

Re: end user need to run uninstall before install the modified msi

Sorry the delay, I'm a lot of other troubles and no time at all.

I'm worried with this behaviour because the end user gets the message about the need to uninstall but even not helping in how to uninstall or do an automatic unistall, there is needed to unistall manually (going to control panel and so on, difficult for simple end users), and after the uninstall other time is needed to find the setup.msi and so on, really tedious.

I was using previously a wizard for creating setup that creates an setup.exe that simply a new setup.exe (with some .exe changed, btw) reinstall without any manual supplementary action for the end user.

I need send periodically the same setup.msi with a few of changes, sometimes one or two files changed.

¿what is the best approach for this?

I think this is not only for advancedinstaller, but maybe all the msi intalls, or at least "bad developed" msi installer....

¿Is there any way of each time the advancedinstaller generates the msi it changes automatically some info (¿version or so?) in order to the reinstall without the need to uninstall?

Thanks in advance, and sorry my bad english.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: end user need to run uninstall before install the modified msi

Hello Guillermo,

This is perfectly possible. To achieve what you need you should use our "Uninstall a package with the same version (if found)" option.

The above option can be enabled from "Builds page -> Configuration tab" and it can be used only for EXE setup package types.

Also, please note that this option is available only starting with a "Professional" or higher project type.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Guillermo
Posts: 6
Joined: Thu Oct 29, 2015 3:52 pm

Re: end user need to run uninstall before install the modified msi

Daniel wrote: This is perfectly possible. To achieve what you need you should use our "Uninstall a package with the same version (if found)" option.
The above option can be enabled from "Builds page -> Configuration tab" and it can be used only for EXE setup package types.
Also, please note that this option is available only starting with a "Professional" or higher project type.
Aaaaaah ok !
I was confusing tryng to use only msi.

Thanks!
:mrgreen:
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: end user need to run uninstall before install the modified msi

You're welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”