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

  • From: "Landin, Mark" <Mark.Landin@xxxxxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Thu, 9 Mar 2006 14:48:18 -0600

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","importPR
F","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: