PC Review


Reply
Thread Tools Rate Thread

Deployment of custom form using "setup.exe"

 
 
pkelley
Guest
Posts: n/a
 
      15th Apr 2009
I've made an Outlook 2007 Add-In using Visual Studio 2005, C#, and VSTO SE.

My Add-In uses a FormRegion that is displayed when the user presses my
button in the "Show" area of the Ribbon UI for AppointmentItem. In the
developer environment, this works perfectly!

My intention is to have a "setup.exe" that is executed by each user on their
machine.

I followed the instructions found here to create my "setup.exe":
http://msdn.microsoft.com/en-us/library/bb332051.aspx

I executed my "setup.exe" on a test machine running Outlook 2007, and there
were NO errors during install. So far, so good.

I ran the test machine's Outlook 2007, and selected "New Appointment", but
my FormRegion (with it's corresponding button in "Show") was not there.

I then successfully ran "Add/Remove Programs" and uninstalled my Outlook
2007 AddIn from the test machine. That worked just fine.

So here's what I need to know: THE STEPS - What are THE STEPS to include my
FormRegion (i.e. custom form) into my "setup.exe" using Visual Studio 2005
and VSTO SE?

I've followed a lot of links on "www.outlookcode.com" and other web-sites,
but the exact steps still elude me.
 
Reply With Quote
 
 
 
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      15th Apr 2009
Basically, you need (a) to ensure that the add-in's setup package includes
the form region manifest and registry entries that tell Outlook how and when
to load the region and (b) to meet all the requirements (many, many of them)
for deploying a VSTO add-in in general, including prerequisites and granted
trust for CAS security.

b) is covered in the article you cited, but you might also want to step
through the walkthroughs at
http://msdn.microsoft.com/en-us/library/bb332052.aspx.

a) is covered at http://msdn.microsoft.com/en-us/library/aa942741.aspx

The best place to ask about VSTO add-in deployment issues is in the VSTO
forum at http://social.msdn.microsoft.com/For.../vsto/threads/, where
Microsoft support engineers are experienced in walking developers through
common problems.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"pkelley" <(E-Mail Removed)> wrote in message
newsF8B40FD-829A-419D-9A21-(E-Mail Removed)...
> I've made an Outlook 2007 Add-In using Visual Studio 2005, C#, and VSTO
> SE.
>
> My Add-In uses a FormRegion that is displayed when the user presses my
> button in the "Show" area of the Ribbon UI for AppointmentItem. In the
> developer environment, this works perfectly!
>
> My intention is to have a "setup.exe" that is executed by each user on
> their
> machine.
>
> I followed the instructions found here to create my "setup.exe":
> http://msdn.microsoft.com/en-us/library/bb332051.aspx
>
> I executed my "setup.exe" on a test machine running Outlook 2007, and
> there
> were NO errors during install. So far, so good.
>
> I ran the test machine's Outlook 2007, and selected "New Appointment", but
> my FormRegion (with it's corresponding button in "Show") was not there.
>
> I then successfully ran "Add/Remove Programs" and uninstalled my Outlook
> 2007 AddIn from the test machine. That worked just fine.
>
> So here's what I need to know: THE STEPS - What are THE STEPS to include
> my
> FormRegion (i.e. custom form) into my "setup.exe" using Visual Studio 2005
> and VSTO SE?
>
> I've followed a lot of links on "www.outlookcode.com" and other web-sites,
> but the exact steps still elude me.



 
Reply With Quote
 
pkelley
Guest
Posts: n/a
 
      15th Apr 2009
Thank you for responding Sue.

Yes, I've previously visited the documented links you mentioned (both 'a'
and 'b'), and strangely enough, I found the

http://social.msdn.microsoft.com/For...S/vsto/threads

link shortly after posting my question here. So, it looks like I'm going
down the path you were suggesting.

I will come back and post what I learn once I know more.

Thanks again.

"Sue Mosher [MVP]" wrote:

> Basically, you need (a) to ensure that the add-in's setup package includes
> the form region manifest and registry entries that tell Outlook how and when
> to load the region and (b) to meet all the requirements (many, many of them)
> for deploying a VSTO add-in in general, including prerequisites and granted
> trust for CAS security.
>
> b) is covered in the article you cited, but you might also want to step
> through the walkthroughs at
> http://msdn.microsoft.com/en-us/library/bb332052.aspx.
>
> a) is covered at http://msdn.microsoft.com/en-us/library/aa942741.aspx
>
> The best place to ask about VSTO add-in deployment issues is in the VSTO
> forum at http://social.msdn.microsoft.com/For.../vsto/threads/, where
> Microsoft support engineers are experienced in walking developers through
> common problems.
>
> --
> Sue Mosher, Outlook MVP
> Author of Microsoft Outlook 2007 Programming:
> Jumpstart for Power Users and Administrators
> http://www.outlookcode.com/article.aspx?id=54
>
>
> "pkelley" <(E-Mail Removed)> wrote in message
> newsF8B40FD-829A-419D-9A21-(E-Mail Removed)...
> > I've made an Outlook 2007 Add-In using Visual Studio 2005, C#, and VSTO
> > SE.
> >
> > My Add-In uses a FormRegion that is displayed when the user presses my
> > button in the "Show" area of the Ribbon UI for AppointmentItem. In the
> > developer environment, this works perfectly!
> >
> > My intention is to have a "setup.exe" that is executed by each user on
> > their
> > machine.
> >
> > I followed the instructions found here to create my "setup.exe":
> > http://msdn.microsoft.com/en-us/library/bb332051.aspx
> >
> > I executed my "setup.exe" on a test machine running Outlook 2007, and
> > there
> > were NO errors during install. So far, so good.
> >
> > I ran the test machine's Outlook 2007, and selected "New Appointment", but
> > my FormRegion (with it's corresponding button in "Show") was not there.
> >
> > I then successfully ran "Add/Remove Programs" and uninstalled my Outlook
> > 2007 AddIn from the test machine. That worked just fine.
> >
> > So here's what I need to know: THE STEPS - What are THE STEPS to include
> > my
> > FormRegion (i.e. custom form) into my "setup.exe" using Visual Studio 2005
> > and VSTO SE?
> >
> > I've followed a lot of links on "www.outlookcode.com" and other web-sites,
> > but the exact steps still elude me.

>
>
>

 
Reply With Quote
 
pkelley
Guest
Posts: n/a
 
      15th Apr 2009
I compared the output I saw in REGEDIT under
HKCU->Software->Microsoft->Office->Outlook on the development box to the
REGEDIT output I saw on the test machine. I noticed that the value on my
development box for:
HKCU->Software->Microsoft->Office->Outlook->FormRegions->IPM.Appointment
was missing from the test machine.

I visited the "setup.exe" project in Visual Studio 2005, and
1. selected "View->Registry"
2. browsed down the HKCU path to the Outlook key
3. Created the key "FormRegions"
4. Created the key "IPM.Appointment"
5. For "Name" I added "odbcForm" and for "Value" I added
"[TARGETDIR]odbcManifest.xml"
6. Closed the "Registry" view.
7. Rebuilt my AddIn project.
8. Did a "Publish" of the AddIn Project.
9. Rebuilt my "setup.exe" project.
10. 'ZIP'ped the files up and 'FTP'ed the ZIP file up to the test
machine. Ran "setup.exe" and it worked!

So, I withdraw my question, and thank you for spending the time to evaluate
what was wrong!


"pkelley" wrote:

> Thank you for responding Sue.
>
> Yes, I've previously visited the documented links you mentioned (both 'a'
> and 'b'), and strangely enough, I found the
>
> http://social.msdn.microsoft.com/For...S/vsto/threads
>
> link shortly after posting my question here. So, it looks like I'm going
> down the path you were suggesting.
>
> I will come back and post what I learn once I know more.
>
> Thanks again.
>
> "Sue Mosher [MVP]" wrote:
>
> > Basically, you need (a) to ensure that the add-in's setup package includes
> > the form region manifest and registry entries that tell Outlook how and when
> > to load the region and (b) to meet all the requirements (many, many of them)
> > for deploying a VSTO add-in in general, including prerequisites and granted
> > trust for CAS security.
> >
> > b) is covered in the article you cited, but you might also want to step
> > through the walkthroughs at
> > http://msdn.microsoft.com/en-us/library/bb332052.aspx.
> >
> > a) is covered at http://msdn.microsoft.com/en-us/library/aa942741.aspx
> >
> > The best place to ask about VSTO add-in deployment issues is in the VSTO
> > forum at http://social.msdn.microsoft.com/For.../vsto/threads/, where
> > Microsoft support engineers are experienced in walking developers through
> > common problems.
> >
> > --
> > Sue Mosher, Outlook MVP
> > Author of Microsoft Outlook 2007 Programming:
> > Jumpstart for Power Users and Administrators
> > http://www.outlookcode.com/article.aspx?id=54
> >
> >
> > "pkelley" <(E-Mail Removed)> wrote in message
> > newsF8B40FD-829A-419D-9A21-(E-Mail Removed)...
> > > I've made an Outlook 2007 Add-In using Visual Studio 2005, C#, and VSTO
> > > SE.
> > >
> > > My Add-In uses a FormRegion that is displayed when the user presses my
> > > button in the "Show" area of the Ribbon UI for AppointmentItem. In the
> > > developer environment, this works perfectly!
> > >
> > > My intention is to have a "setup.exe" that is executed by each user on
> > > their
> > > machine.
> > >
> > > I followed the instructions found here to create my "setup.exe":
> > > http://msdn.microsoft.com/en-us/library/bb332051.aspx
> > >
> > > I executed my "setup.exe" on a test machine running Outlook 2007, and
> > > there
> > > were NO errors during install. So far, so good.
> > >
> > > I ran the test machine's Outlook 2007, and selected "New Appointment", but
> > > my FormRegion (with it's corresponding button in "Show") was not there.
> > >
> > > I then successfully ran "Add/Remove Programs" and uninstalled my Outlook
> > > 2007 AddIn from the test machine. That worked just fine.
> > >
> > > So here's what I need to know: THE STEPS - What are THE STEPS to include
> > > my
> > > FormRegion (i.e. custom form) into my "setup.exe" using Visual Studio 2005
> > > and VSTO SE?
> > >
> > > I've followed a lot of links on "www.outlookcode.com" and other web-sites,
> > > but the exact steps still elude me.

> >
> >
> >

 
Reply With Quote
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      16th Apr 2009
Right, that's one of the issues in (a), near the end of that article.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"pkelley" <(E-Mail Removed)> wrote in message
news:C9CAAF42-4B86-40FF-BFC1-(E-Mail Removed)...
>I compared the output I saw in REGEDIT under
> HKCU->Software->Microsoft->Office->Outlook on the development box to the
> REGEDIT output I saw on the test machine. I noticed that the value on my
> development box for:
> HKCU->Software->Microsoft->Office->Outlook->FormRegions->IPM.Appointment
> was missing from the test machine.
>
> I visited the "setup.exe" project in Visual Studio 2005, and
> 1. selected "View->Registry"
> 2. browsed down the HKCU path to the Outlook key
> 3. Created the key "FormRegions"
> 4. Created the key "IPM.Appointment"
> 5. For "Name" I added "odbcForm" and for "Value" I added
> "[TARGETDIR]odbcManifest.xml"
> 6. Closed the "Registry" view.
> 7. Rebuilt my AddIn project.
> 8. Did a "Publish" of the AddIn Project.
> 9. Rebuilt my "setup.exe" project.
> 10. 'ZIP'ped the files up and 'FTP'ed the ZIP file up to the test
> machine. Ran "setup.exe" and it worked!
>
> So, I withdraw my question, and thank you for spending the time to
> evaluate
> what was wrong!
>
>
> "pkelley" wrote:
>
>> Thank you for responding Sue.
>>
>> Yes, I've previously visited the documented links you mentioned (both 'a'
>> and 'b'), and strangely enough, I found the
>>
>> http://social.msdn.microsoft.com/For...S/vsto/threads
>>
>> link shortly after posting my question here. So, it looks like I'm going
>> down the path you were suggesting.
>>
>> I will come back and post what I learn once I know more.
>>
>> Thanks again.
>>
>> "Sue Mosher [MVP]" wrote:
>>
>> > Basically, you need (a) to ensure that the add-in's setup package
>> > includes
>> > the form region manifest and registry entries that tell Outlook how and
>> > when
>> > to load the region and (b) to meet all the requirements (many, many of
>> > them)
>> > for deploying a VSTO add-in in general, including prerequisites and
>> > granted
>> > trust for CAS security.
>> >
>> > b) is covered in the article you cited, but you might also want to step
>> > through the walkthroughs at
>> > http://msdn.microsoft.com/en-us/library/bb332052.aspx.
>> >
>> > a) is covered at http://msdn.microsoft.com/en-us/library/aa942741.aspx
>> >
>> > The best place to ask about VSTO add-in deployment issues is in the
>> > VSTO
>> > forum at http://social.msdn.microsoft.com/For.../vsto/threads/,
>> > where
>> > Microsoft support engineers are experienced in walking developers
>> > through
>> > common problems.
>> >
>> > "pkelley" <(E-Mail Removed)> wrote in message
>> > newsF8B40FD-829A-419D-9A21-(E-Mail Removed)...
>> > > I've made an Outlook 2007 Add-In using Visual Studio 2005, C#, and
>> > > VSTO
>> > > SE.
>> > >
>> > > My Add-In uses a FormRegion that is displayed when the user presses
>> > > my
>> > > button in the "Show" area of the Ribbon UI for AppointmentItem. In
>> > > the
>> > > developer environment, this works perfectly!
>> > >
>> > > My intention is to have a "setup.exe" that is executed by each user
>> > > on
>> > > their
>> > > machine.
>> > >
>> > > I followed the instructions found here to create my "setup.exe":
>> > > http://msdn.microsoft.com/en-us/library/bb332051.aspx
>> > >
>> > > I executed my "setup.exe" on a test machine running Outlook 2007, and
>> > > there
>> > > were NO errors during install. So far, so good.
>> > >
>> > > I ran the test machine's Outlook 2007, and selected "New
>> > > Appointment", but
>> > > my FormRegion (with it's corresponding button in "Show") was not
>> > > there.
>> > >
>> > > I then successfully ran "Add/Remove Programs" and uninstalled my
>> > > Outlook
>> > > 2007 AddIn from the test machine. That worked just fine.
>> > >
>> > > So here's what I need to know: THE STEPS - What are THE STEPS to
>> > > include
>> > > my
>> > > FormRegion (i.e. custom form) into my "setup.exe" using Visual Studio
>> > > 2005
>> > > and VSTO SE?
>> > >
>> > > I've followed a lot of links on "www.outlookcode.com" and other
>> > > web-sites,
>> > > but the exact steps still elude me.
>> >
>> >
>> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does "Setup and Deployment projects" are included in VB2005 Standard Ed. James Microsoft VB .NET 1 4th May 2006 06:03 AM
Does "Setup and Deployment projects" are included in VB2005 Standard Ed. James Microsoft VB .NET 0 3rd May 2006 08:33 PM
Does "Setup and Deployment projects" are included in VB2005 Standard Ed. James Microsoft VB .NET 0 3rd May 2006 08:30 PM
after Forward Custom Form "GetNameSpace("MAPI").CurrentUser" not =?Utf-8?B?T3V0bG9va0Zvcm1R?= Microsoft Outlook Form Programming 3 26th Jan 2005 04:58 PM
"Find" or "Search" for custom made form Peg Microsoft Outlook Form Programming 0 13th Sep 2004 06:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:32 AM.