MSI Error Message - 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!

lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

MSI Error Message

Is it possible that MSI will throw error message if trying to run the same MSI version on existing one?
Thanks!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: MSI Error Message

Hi,

If you run a MSI package after you have already installed it you can get one of these situations:
1) if the package is not registered with Windows Installer then the installation will start again, as the the package would have never be installed on the computer.
2) if the package is registered with Windows Installer it will enter the Maintenance phase. In this phase you can Remove, Modify or Repair the installation.
3) you will get an error message if before launching the MSI for the second time you modify something in the project and rebuild the MSI without changing the version. This happens only if the package is registered with Windows Installer.

Could you please give me more details about the behavior you are encountering?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Re: MSI Error Message

Thanks Bogdan,
I have a different application (Installer.exe) that calls to my MSI.
It calls to the msi from command line with parameters.
I want that if the MSI is already installed, my app will get this error message and will display to the user error message like "The applciation is already installed..."

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

Re: MSI Error Message

Hi,

I'm afraid that this is not supported by Windows Installer. However, you could handle it from within your custom application. For example, you can use the MsiGetProductInfo function to find out if the MSI is already installed. If it is, you can show the message you want and skip the MSI.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Re: MSI Error Message

THANKS

Return to “Common Problems”