?
Solved

Pass Parameters to an installer class DotNet2.0 Framework

Posted on 2006-05-13
2
Medium Priority
?
837 Views
Last Modified: 2012-06-22
Hi,

I have followed the instructions on this MSDN article ...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_vsto2003_tr/html/odc_VSTMGBLab5.asp

... to create an installer class in VB.NET 2005 which I want to pass a couple of parameters to from a Custom Action.

I think the problem I have is a difference between 1.1 Famework and 2.0 Framework.

The speific problem I have is the lines:
Public Sub Install(ByVal stateSaver As System.Collections.IDictionary)
      MyBase.Install(stateSaver)
      SetupPolicy(Me.Context.Parameters.Item("path"), Me.Context.Parameters.Item("name"))
End Sub

I get:
  'Install' is not a member of object
and
  'Context' is not a member of 'SetupHelper.SecurityCustomAction' (the name of my project and class)

Can anybody help?

Thanks
Rob
0
Comment
Question by:rob_rpm
2 Comments
 
LVL 7

Accepted Solution

by:
5thcav earned 1000 total points
ID: 16674259
http://msdn.microsoft.com/library/?url=/library/en-us/cpref/html/frlrfsystemconfigurationinstallinstallerclasstopic.asp

maybe this will help... Your including System.Configuration.Install?
did you try
System.Configuration.Install(stateSaver)
0
 

Author Comment

by:rob_rpm
ID: 16680770
Thanks a lot - I couldnt see the wood for the trees there...
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses
Course of the Month14 days, 8 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question