Pass Parameters to an installer class DotNet2.0 Framework

Posted on 2006-05-13
Last Modified: 2012-06-22

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

... 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)
      SetupPolicy(Me.Context.Parameters.Item("path"), Me.Context.Parameters.Item("name"))
End Sub

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

Can anybody help?

Question by:rob_rpm
    LVL 7

    Accepted Solution


    maybe this will help... Your including System.Configuration.Install?
    did you try

    Author Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
    It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now