none
How to get the installation folder

    Question

  • Hi!

    I created a service, a windows form and a setup project in VB.NET.

    And after install I need the installation directory to something like this:

    [CODE]
        Private Sub ServiceProcessInstaller1_AfterInstall(ByVal sender As System.Object, ByVal e As System.Configuration.Install.InstallEventArgs) Handles ServiceProcessInstaller1.AfterInstall
                Dim path As String = Me.TARGETDIR 'not working
                If System.IO.File.Exists(path & "res.dll") Then
                    Microsoft.VisualBasic.Shell("net start update_service")
                Else
                    Microsoft.VisualBasic.Shell(path & "activate.exe")
                End If
        End Sub
    [/CODE]

    The problem is how to get the installation dir?

    Can anyone help me?
    thx
    Thursday, August 21, 2008 1:34 PM

Answers

All replies