This action is only valid for products currently installed - 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!

janos.varadi
Posts: 11
Joined: Tue Jan 26, 2010 4:53 pm

This action is only valid for products currently installed

Hi All,

I am currently doing upgrades with a uninstall first. In this case the Unisntallstring from the registry ....\CurrentVersion\Uninsta\Product Name\UninstallString is called. In case an error encounters during upgrade I ignore it and continue with the installation. But this registry key somehow remains and the new uninstall string is not updated. Whenever the user wants to remove the program the old uninstall string from the previous product is still there. Therefore the error message is shown "This action is only valid for products currently installed".

I do not understand why the new installation does not replace this uninstall string. In addition I expect the registry key to be the following
<ROW Registry="Comments" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="Comments" Value="This installer database contains the logic and data required to install [ProductName]." Component_="AI_CustomARPName"/>

But instead the productcode is used insted of the product name. Not clear what is wrong with my AIP file.

Kind regards,

János
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: This action is only valid for products currently installed

Hi János,
In case an error encounters during upgrade I ignore it
How do you ignore this error?
Whenever the user wants to remove the program the old uninstall string from the previous product is still there. Therefore the error message is shown "This action is only valid for products currently installed".
The way you handle errors during uninstall might result in an incomplete uninstallation of the product's old version. That might explain some errors.
But instead the productcode is used insted of the product name
Windows Installer stores product codes instead of product names for those keys. Why do you need it to be otherwise?

If you are still unsure what the cause of this behavior is, please send your .aip project file to support at advancedinstaller dot com so we can further investigate.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
janos.varadi
Posts: 11
Joined: Tue Jan 26, 2010 4:53 pm

Re: This action is only valid for products currently installed

When I upgrade a previous version first the uninstall is called. But during the uninstallation there is as error due to wrong command called in the custom action. Since the software has already been distributed we need to handle this. In case we ignore the error during the upgrade the registry key in the uninstall folder is not updated.

The aip file will not help here I guess
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: This action is only valid for products currently installed

Hi,

Since the old version uninstall fails with an error from a custom action, most likely that version is not removed correctly. This is why the old Uninstall registry entries are not removed. Please note that our User Guide has a How do I remove a broken installation FAQ which may help you.

Before distributing the new version of your product, you can distribute the fixed old version. Since the fixed MSI requires a custom command, you can try using a custom bootstrapper or a BAT which runs this command. In this case your clients would use the bootstrapper or the BAT instead of the actual MSI. After the old version is fixed, the upgrade should work correctly.

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

Return to “Common Problems”