SubZero
Posts: 63
Joined: Mon Mar 14, 2011 10:29 am

Prevent service from being shutdown and prevent file overwrite

Hi Advanced Installer Team,
first info: we use the feature "Install new version first and then uninstall old version".

During update we would like to achieve that a given Service is not stopped and the files for that service should not be modified during update.

I've unchecked stop and start in the Control Operations of the "Services" Tab. For the folder where the service files are I've added below "Operations" -> Do Not overwrite existing files : OLDPRODUCTS.

Unfortunately the Restart Manager now kills the service during update, because it thinks that files of that service need to be overwritten and are currently in use. Moreover if I look at the msi-Log I can see that files that have no version and no hash are still considered to be overwritten although I've added that no files should be overwritten during update.

See:
7:080]: Executing op: FileCopy(SourceName=libxml2.dll,SourceCabKey=libxml2.dll_1,DestName=libxml2.dll,Attributes=0,FileSize=2257408,PerTick=65536,,VerifyMedia=1,,,,,CheckCRC=0,,,InstallMode=58982400,,,,,,,)
MSI (s) (C8:10) [15:19:17:080]: File: C:\Program Files\PDS\pds kfm\pds\postgres9.3.5\pgsql\bin\libxml2.dll; Overwrite; Won't patch; Existing file is unversioned and unmodified - no source file hash provided to compare



What is the best way to achieve this? Is it possible to prevent the installer from stopping the service and overwriting the files? Is it possible to remove the components, so that AI does not know about the files?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Prevent service from being shutdown and prevent file overwrite

Hello,

Just try to enable the "Never Overwrite" flag of your service component (in "Organization" page) and please make sure the the service component has the same GUID in the old and new version of your product.

Let us know how this works.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Prevent service from being shutdown and prevent file overwrite

You are always welcome.

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

Return to “Common Problems”