Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows service setup project custom dialog - how do i get the variables?
    primarykey
    data
    text
    <p>Quick question about a windows service, I've added a setup project for my Windows service, and ive added a custom dialog to it, with 4 text fields, but my question is how to i get these informations/variables?</p> <p>Ive also added an installer for the windows service also, and afterwards the setup project, with the custom dialog.</p> <p>The informations is something like database connection strings, and so on - so just string values. </p> <p>This is my code for the "project installer" . the installer item ive added for the windows serive if you wanted to see it.</p> <pre><code> Imports System Imports System.ComponentModel Imports System.Configuration.Install Imports System.ServiceProcess Imports System.Runtime.InteropServices Public Class ProjectInstaller Public Sub New() MyBase.New() 'This call is required by the Component Designer. InitializeComponent() My.Settings.TestSetting = Context.Parameters.Item("PathValue") #If DEBUG Then Dim ServicesToRun As ServiceBase() ServicesToRun = New ServiceBase() {New tdsCheckService()} ServiceBase.Run(ServicesToRun) #Else Dim listener As New tdsCheckService() listener.Start() #End If End Sub Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary) MyBase.Install(stateSaver) Dim regsrv As New RegistrationServices regsrv.RegisterAssembly(MyBase.GetType().Assembly, AssemblyRegistrationFlags.SetCodeBase) End Sub Public Overrides Sub Uninstall(ByVal savedState As System.Collections.IDictionary) MyBase.Uninstall(savedState) Dim regsrv As New RegistrationServices regsrv.UnregisterAssembly(MyBase.GetType().Assembly) End Sub Private Sub ServiceProcessInstaller1_AfterInstall(sender As Object, e As InstallEventArgs) Handles ServiceProcessInstaller1.AfterInstall End Sub Private Sub ServiceInstaller1_AfterInstall(sender As Object, e As InstallEventArgs) Handles ServiceInstaller1.AfterInstall End Sub End Class </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload