Link to home
Start Free TrialLog in
Avatar of rob_rpm
rob_rpm

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of 5thcav
5thcav
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rob_rpm
rob_rpm

ASKER

Thanks a lot - I couldnt see the wood for the trees there...