Custom actions in deployment project

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jonas Bergman

    #1

    Custom actions in deployment project

    After installation, I want to share one of the folders.

    First of all, I don´t know how to perform sharing programmaticall y in a good
    way, right now I have a small C#-program that calls "NET.EXE SHARE".

    Everything works now, the program is run after the installation.
    But I don´t want the program to remain in the application folder. It should
    be deleted.

    How do I do this?

    /Jonas Bergman


  • Phil Wilson

    #2
    Re: Custom actions in deployment project

    You should be able to right-click on the code file in the solution explorer
    of the setup project and set the Exclude property to True. That will store
    the exe in the Binary table of the MSI file, and extract and run it in a
    temp folder so that it's not permanently installed.
    --
    Phil Wilson
    [MVP Windows Installer]
    Definitive Guide to Windows Installer


    "Jonas Bergman" <jonas.bergman@ systeam.se> wrote in message
    news:eTxc0IiSEH A.3552@TK2MSFTN GP09.phx.gbl...[color=blue]
    > After installation, I want to share one of the folders.
    >
    > First of all, I don´t know how to perform sharing programmaticall y in a[/color]
    good[color=blue]
    > way, right now I have a small C#-program that calls "NET.EXE SHARE".
    >
    > Everything works now, the program is run after the installation.
    > But I don´t want the program to remain in the application folder. It[/color]
    should[color=blue]
    > be deleted.
    >
    > How do I do this?
    >
    > /Jonas Bergman
    >
    >[/color]


    Comment

    • Jonas Bergman

      #3
      Re: Custom actions in deployment project

      Thanks!

      /Jonas

      "Phil Wilson" <pdjwilson@nosp am.cox.net> wrote in message
      news:eH6slTySEH A.2408@tk2msftn gp13.phx.gbl...[color=blue]
      > You should be able to right-click on the code file in the solution[/color]
      explorer[color=blue]
      > of the setup project and set the Exclude property to True. That will store
      > the exe in the Binary table of the MSI file, and extract and run it in a
      > temp folder so that it's not permanently installed.
      > --
      > Phil Wilson
      > [MVP Windows Installer]
      > Definitive Guide to Windows Installer
      > http://apress.com/book/bookDisplay.html?bID=280
      >
      > "Jonas Bergman" <jonas.bergman@ systeam.se> wrote in message
      > news:eTxc0IiSEH A.3552@TK2MSFTN GP09.phx.gbl...[color=green]
      > > After installation, I want to share one of the folders.
      > >
      > > First of all, I don´t know how to perform sharing programmaticall y in a[/color]
      > good[color=green]
      > > way, right now I have a small C#-program that calls "NET.EXE SHARE".
      > >
      > > Everything works now, the program is run after the installation.
      > > But I don´t want the program to remain in the application folder. It[/color]
      > should[color=green]
      > > be deleted.
      > >
      > > How do I do this?
      > >
      > > /Jonas Bergman
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...