[THIN] Re: Outlook 2003 - import .prf without launching

  • From: "Greg Reese" <gareese@xxxxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Fri, 10 Mar 2006 08:54:40 +1200

they should see nothing.  it's just a mapi call and then an exit.  I can't
remember if i got this snippet from the Kix forums or from somone on this
list.

I ended up going another direction with Flex profiles and the CIW but this
worked out in testing ok.

On 3/10/06, Landin, Mark <Mark.Landin@xxxxxxxxxxxxxxxx> wrote:
>
> Interesting! What would the user see when this happened? Would they see
> Outlook launch? If not, this would be a big improvement over what we are
> doing now, which is much more kludgy that what you've done here.
>
>  ------------------------------
> *From:* thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] *On
> Behalf Of *Greg Reese
> *Sent:* Thursday, March 09, 2006 2:29 PM
> *To:* thin@xxxxxxxxxxxxx
> *Subject:* [THIN] Re: Outlook 2003 - import .prf without launching
>
> try somethig like this in a kix script;
>
> $ =
> delvalue("HKCU\Software\Microsoft\Office\11.0\Outlook\setup","First-Run")
> $ =
> Writevalue("HKCU\Software\Microsoft\Office\11.0\Outlook\setup","importPRF","c:\Program
> Files\MIcrosoft Office\Custom11.prf", REG_SZ)
>
> $Outlook = CreateObject("Outlook.Application")
> $NS = $Outlook.GetNamespace("MAPI")
> ; $Fldr = $NS.GetDefaultFolder(6)
> ; $Unread = $Fldr.UnReadItemCount
> $Outlook = 0
>
> On 3/10/06, Landin, Mark <Mark.Landin@xxxxxxxxxxxxxxxx> wrote:
> >
> > Hi that was me. :)
> >
> > What we had to do was have a login script detect the presence of a .prf
> > file, and if it did, actually launch Outlook, and specify on the command
> > line to execute a macro which exited Outlook. This was enough to get the
> >
> > .prf file "digested". I can post that macro if you need it. Note that
> > you need to make sure macro security is "low" for Outlook or this won't
> > work.
> >
> > > -----Original Message-----
> > > From: thin-bounce@xxxxxxxxxxxxx
> > > [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Christian Dady
> > > Sent: Thursday, March 09, 2006 10:30 AM
> > > To: thin@xxxxxxxxxxxxx
> > > Subject: [THIN] Outlook 2003 - import .prf without launching
> > >
> > > We have an application on our Citrix farm that we're trying
> > > to get working with Office 2003.  The app requires a MAPI
> > > profile to exist before it starts, which worked fine with
> > > Outlook 2000 using NEWPROF.EXE to import a .prf.  This wizard
> > > doesn't exist for Outlook 2003.
> > >
> > > We don't want to launch Outlook on the Citrix servers prior
> > > to the application, since it's not needed.  Has anyone found
> > > a way to import from a .prf for Office 2003 without launching
> > > Outlook?  I found a reference on the list archives about a VB
> > > script and an .ini file that would work, but the code was not posted.
> > >
> > > Thanks for you help.
> > >
> > > -Christian
> > >
> > > ************************************************
> > > For Archives, RSS, to Unsubscribe, Subscribe or set Digest or
> > > Vacation mode use the below link:
> > > //www.freelists.org/list/thin
> > > ************************************************
> > >
> > ************************************************
> > For Archives, RSS, to Unsubscribe, Subscribe or
> > set Digest or Vacation mode use the below link:
> > //www.freelists.org/list/thin
> > ************************************************
> >
>
>

Other related posts: