Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding custom dialog to setup project
Message
From
20/08/2010 11:59:07
 
 
To
All
General information
Forum:
ASP.NET
Category:
Installation, Setup and Configuration
Title:
Adding custom dialog to setup project
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01477592
Message ID:
01477592
Views:
104
I have created a class library that I added into the setup project. That class library is based on the System.Configuration.Install.Installer class. In it, I have the proper code to interact with the setup. Then, I added that class into "Custom Actions\Install" section. However, when I run setup.exe, at the end, it doesn't run that code.

The code is as follow:
Public Class Main

    Inherits System.Configuration.Install.Installer

    Public Sub New()
    End Sub

    ' Override the 'Install' method.
    ' The Installation will call this method to run the Custom Action
    Public Overrides Sub Install(ByVal savedState As IDictionary)
        MyBase.Install(savedState)

        System.Windows.Forms.MessageBox.Show("1")

        ' Get readme file name from custom action parameter
        Dim ProvidedName As String = Me.Context.Parameters("file")

        System.Windows.Forms.MessageBox.Show(ProvidedName)

    End Sub

End Class
So, basically, I should see a message box with "1" as well as a value that I defined in the Custom Action Properties of the class:
CustomActionData=/file="test"
Basically, the goal here is to collect a textbox value, from a custom dialog, and save that into a Main.ini file into the System\Key value. I haven't found a way to do it from the interface. So, I assume I have to define a class library, add it into the project, base it on the Installer class, and found a way to read the custom dialog Key textbox value and store it in the Main.ini file.

Anyone has done that before?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform