How can I check to see if Outlook or Word are running ?
How can I create a prompt in my install to ask the user to close Outlook or
Word
Thanks.
--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
You might be able to get away with using the wscript.shell object's
AppActivate() method and checking the return value.
Set myOlApp = CreateObject("Outlook.Application")
Set myExplorer = myOlApp.ActiveExplorer
If TypeName(myExplorer) = "Nothing" Then
msgbox "nothing"
else
msgbox "something"
End If
tells you if Outlook is installed (the createobject) and if it's running
showing a UI (the "something" result). But it wasn't working in a custom
action and that wasn't resolved. You can use this before you launch the
setup. The alternative is to see if it's installed and then just look for a
process called Outlook.exe.
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://www.amazon.com/exec/obidos/tg/detail/-/1590592972/qid=1088088624
"Michael Tissington" <mic...@nospam.com> wrote in message
news:OT7dqqYW...@TK2MSFTNGP12.phx.gbl...
--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
"Phil Wilson" <pdjw...@nospam.cox.net> wrote in message
news:uJ2qwxfW...@tk2msftngp13.phx.gbl...
http://support.microsoft.com/default.aspx?scid=kb;en-us;175030
--
Phil Wilson [MVP Windows Installer]
----
"Michael Tissington" <mic...@nospam.com> wrote in message
news:uSeuFtgW...@TK2MSFTNGP11.phx.gbl...
--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
"Phil Wilson" <Phil....@unisys.spamcom> wrote in message
news:uzqIT9gW...@TK2MSFTNGP12.phx.gbl...
I work for a company called AutoUpdate+ which does automatic
updating/upgrading software, so the ability to kill a process is also
essential to us. Trust me when I say this is not a simple task,
particularly as there're slight differences between WinNT and other
Windows systems. The relevant APIs you need are
CreateToolhelp32Snapshot, Process32First, Process32Next and
ZwQuerySystemInformation (for NT4). It's easier if you choose not to
support NT4! Feel free to email simon AT autoupdateplus.com for more
info.
Simon Hayden
www.AutoUpdatePlus.com
Get software updates to your clients the Quick and Easy way!
> > Hello Michael,
> >
> > Thanks for posting. I think you may write a small bootstrap EXE and check
> > whether there are any process named "outlook,exe" and "winword.exe"
> running.
> >