Custom Actions for .NET project setups

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    Custom Actions for .NET project setups

    Hi,

    I need to preinstall silently some applications and runtimes (.net
    runtimes) before I install my application but want to do this from a .bat
    file. I tried to add this as a custom action in the setup project in "Add
    files" but its not allowing .bat files. Are .bat files no longer supported
    and I have to write a .NET assembly to do such a trivial task? Isnt this
    overkill?

    Thanks.



  • Dmitriy Lapshin [C# / .NET MVP]

    #2
    Re: Custom Actions for .NET project setups

    Hi,
    [color=blue]
    > I need to preinstall silently some applications and runtimes (.net
    > runtimes) before I install my application but want to do this from a .bat[/color]

    Could you explain in more detail which applications and runtimes are these?

    Generally speaking, you have several options:

    a) Nested installations (requires manual MSI file tweaking with Orca or MSI
    SDK scripts)
    b) Bootstrapper application which would install the apps and runtimes first
    and your application second
    c) An unmanaged EXE or DLL doing the custom installation (possibly requires
    manual MSI file tweaking with Orca or MSI SDK scripts)
    d) VBScript-based custom action (possibly requires manual MSI file tweaking
    with Orca or MSI SDK scripts)

    NOTE: I am not sure about c) and d) in the sense whether they are supported
    by Visual Studio .NET setup projects. But these options are definitely
    supported by Windows Installer

    You should probably ask further questions in the
    microsoft.publi c.dotnet.framew ork.setup or in a Windows Installer/MSI
    newsgroups.

    --
    Dmitriy Lapshin [C# / .NET MVP]
    X-Unity Test Studio

    Bring the power of unit testing to VS .NET IDE

    <discussion@dis cussion.microso ft.com> wrote in message
    news:euvExNm6DH A.4060@tk2msftn gp13.phx.gbl...[color=blue]
    > Hi,
    >
    > I need to preinstall silently some applications and runtimes (.net
    > runtimes) before I install my application but want to do this from a .bat
    > file. I tried to add this as a custom action in the setup project in "Add
    > files" but its not allowing .bat files. Are .bat files no longer[/color]
    supported[color=blue]
    > and I have to write a .NET assembly to do such a trivial task? Isnt this
    > overkill?
    >
    > Thanks.
    >
    >
    >[/color]

    Comment

    Working...