Gravy

Hi,

I'm not too sure where best to ask this question but, I have an app the uses windows installer to install itself. Part of the installation just copies some .cab and .msi files in to the target folder. After installation has completed, if I try to replace the cab and msi files with different versions then windows installer starts up and replaces them with the original files.

Is there anyway to stop this happening

Thanks.



Re: ClickOnce and Setup & Deployment Projects Installer runs when files are replaced

PhilWilson

You can never disable this completely because there are many ways this repair can be initiaited, including right-click on the MSI file. Anyway, in your case you're updating installed files, and you do this by incrementing the setup project's version and using RemoveExistingProducts.




Re: ClickOnce and Setup & Deployment Projects Installer runs when files are replaced

Gravy

Thanks for the reply Phil.

However, I need to replace some of the installed files just on one machine. Basically we install some support files (.exe's and .cab's) in to a sub folder. I need to make a change to one of the cab files and replace the installed version with the updated version. A bit like an xcopy hotfix, so the file replacement isn't being done using Windows Installer, it's done user Windows Explorer!





Re: ClickOnce and Setup & Deployment Projects Installer runs when files are replaced

PhilWilson

MSI doesn't support xcopy updates. Visual Studio supports the RemovePreviousVersions method of upgrading installed products (an MSI major upgrade). Other tools let you build patches and other types of update.