>From what I’ve tested, It’s quite hard to override the FilesInUse and the
MsiRMFilesInUse dialogs.****

The problem is that there are already built-in inside Wix, I cannot simply
redefine them in my own .wxi. I kind of gave up after struggling with
errors after errors.****

** **

Well, maybe I have a workaround to this problem. If a ran a custom exe for
instance, before the InstallValidate step, and this utility would kill
well-known process that would be show in the FileInUse dialog otherwise,
then I could prevent such window, in the majority of cases.****

But, there are two requirements: 1) The utility must run with elevated
privileges before the InstallValidate step and 2) Is should be somehow
embedded but not installed with the msi. Would that be possible?****

** **

Another approach would be to have a bootstrapper that would execute the exe
before installing the msi. But that seems like the last option.

BR
/Gustavo

2012/8/23 Rob Hamflett <rob_hamfl...@sn.scee.net>

> You can suppress the FilesInUse dialog by specifying
> Dialog@Modeless="yes" and Dialog@Hidden="yes".
>
> Rob
>
>
> On 23/08/2012 01:31, Gustavo Gustavo wrote:
> > I’ve been struggling to get rid of the Files In Use dialog. Seems like
> > there’s no easy way out.****
> >
> > Ideally, I would like to execute my MSI with the /qb! mode, ie, showing
> > only the progress bar with modal dialog boxes enabled (for instance, the
> > reboot dialog at the end if needed for some reason).****
> >
> > I don’t care if a reboot is needed at the end because another process
> had a
> > handle open to a file that must be replaced during the upgrade, as long
> as
> > the user has this message shown at the installation end. That’s why I
> > cannot use /passive or /qb-!****
> >
> > During the installation, through Custom Actions, my MSI does it best to
> > close processes (well known ones in my business domain) that might block
> a
> > file replacement. The problem is that there CAs must execute with
> elevated
> > privileges (hence deferred), and, of course, after the InstallValidate
> > action, that shows up the Files In Use dialog. Therefore, these CAs
> happens
> > after the Files In Use dialog is shown. So it’s impossible to execute my
> > CAs before the InstallValidate step.****
> >
> > ** **
> >
> > Will I have to create a bootstrapper what would kill the holding
> processes
> > before executing the MSI, so that the Files In Use won’t detect anything
> > (normally, since the user may be editing/blocking something, but that
> > should be very rare, and outside control)???****
> >
> > ** **
> >
> > I’ve tried to play with****
> >
> > ** **
> >
> > <Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable" />****
> >
> > <Property Id="MSIDISABLERMRESTART" Value="1" />****
> >
> > <Property Id="MSIRMSHUTDOWN" Value="2" />****
> >
> > ** **
> >
> > but it works sometimes and sometimes not (that really got be puzzled),
> so I
> > cannot trust them.****
> >
> > ** **
> >
> > Kind Regards,****
> >
> > /Gustavo****
> >
> > **
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to