Hi!
I created a service, a windows form and a setup project in VB.NET.
And after install I need the installation directory to do something like this:
The problem is how to get the installation dir?
Can anyone help me?
thx
I created a service, a windows form and a setup project in VB.NET.
And after install I need the installation directory to do 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
Can anyone help me?
thx
Comment