• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 839
  • Last Modified:

Pass Parameters to an installer class DotNet2.0 Framework

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
rob_rpm
Asked:
rob_rpm
1 Solution
 
5thcavCommented:
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
 
rob_rpmAuthor Commented:
Thanks a lot - I couldnt see the wood for the trees there...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now