Hi list,...

Is there a way to determine wheter the system FilesInUse dialog was
already displayed (and answered by user) in order to not display it
again (from custom action)?

I can publish a property from the customized (authored) dialog and
check it in th CA. But what about the build-in FilesInUse dialog
(during basic UI)?

On the other side - I can ommit additional check for FilesInUse when
running in basic UI.


Thaks in advance...


Stefan Pavlik

Phil Wilson wrote:
> Sequence the custom action before files get copied so yes, somewhere early
> in the sequence is fine.
> 
> Phil Wilson 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Alexander
> Biryukov
> Sent: Monday, August 07, 2006 1:28 AM
> To: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] How to show "FilesInUse" dialog _always_ ?
> 
> 
> It's good, but how to catch "file in use" moment (before any file copy
> operation) to show dialog  ?
> 
> Maybe somehow that :
> 
> <InstallExecuteSequence>
>       <Custom Action="MyFileInUseCheck" Before="InstallFiles" />
> </InstallExecuteSequence>
> 
> MyFileInUseCheck is custom action, that check file and show FilesInUse
> dialog, when file locked.
> 
> It will work ?
> 
> --
> Alexander Biryukov
> 
> On Mon, 07 Aug 2006 00:21:58 +0400, Phil Wilson <[EMAIL PROTECTED]>
> wrote:
> 
>> The FilesInUse dialog can be shown from a custom action with 
>> MsiProcessMessage (...INSTALLMESSAGE_FILESINUSE...), this vbscript 
>> shows the general idea:
>>
>> option explicit
>> dim inst, rec, res
>> const tryagain=4
>> const DoExit = 2
>> const Docontinue =1
>> set inst = CreateObject("WindowsInstaller.Installer")
>> set rec=inst.CreateRecord (3)
>> rec.StringData(1) = "myfile.exe"
>> rec.StringData(2) = "Please use Task Manager to terminate the program"
>>
>> Do
>> res = Session.Message (&H05000000, rec) ' check for the program 
>> terminated
>>
>> loop until res <> tryagain
>>
>>
>> Phil Wilson
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of 
>> Alexander Biryukov
>> Sent: Friday, August 04, 2006 1:19 PM
>> To: wix-users@lists.sourceforge.net
>> Subject: [WiX-users] How to show "FilesInUse" dialog _always_ ?
>>
>> Greetings all,
>>
>> We need for doing minor upgrades of our software product on servers, 
>> that is _not acceptably_ to reboot.
>> Some of upgrades affect on running windows services, but Windows 
>> Installer does not show FilesInUse dialog for this, instead show 
>> "Please reboot" at final of installation. In this situation user not 
>> be aware that services/files in use and will be updated, for manually 
>> prevent reboot.
>>
>> The Windows Installer documentation says :
>> -------------
>> If you expect the installer to display a FilesInUseDialog, but it does 
>> not, this may be due to one of the following reasons:
>> - The files in use are not executables.
>> - The installer is not actually trying to install those files.
>> - The process holding those files is the process invoking the 
>> installation.
>> - The process holding those files is one that does not have a window 
>> with a title associated with it.
>> -------------
>>
>> Is exist a way to display FilesInUse dialog (or some custom dialog 
>> with file
>> names) always, for _all_ "files in use" which should be updated ?
>>
>> --
>> Alexander Biryukov
>>
>> ----------------------------------------------------------------------
>> --- Take Surveys. Earn Cash. Influence the Future of IT Join 
>> SourceForge.net's Techsay panel and you'll get the chance to share 
>> your opinions on IT & business topics through brief surveys -- and 
>> earn cash 
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV
>> DEV _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>> ----------------------------------------------------------------------
>> --- Take Surveys. Earn Cash. Influence the Future of IT Join 
>> SourceForge.net's Techsay panel and you'll get the chance to share 
>> your opinions on IT & business topics through brief surveys -- and 
>> earn cash 
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV
>> DEV _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's
> Techsay panel and you'll get the chance to share your opinions on IT &
> business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> __________ NOD32 1.1704 (20060811) Information __________
> 
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
> 
> 
> 

-- 
Stefan Pavlik | [EMAIL PROTECTED]
Whitestein Technologies | www.whitestein.com
Panenska 28 | SK-81103 Bratislava | Slovak Republic
Tel +421(2)5930-0735 | Fax +421(2)5443-5512

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to