Hi Marshall,
You can adda custom action at Installation in order to do something you expect.
Here is the detailed solution step-by-stepapplied toVisual Studio .NET 2005.
Walkthrough: Using a Custom Action to Display a Message at Installation
The walkthrough demonstrates how to use a custom action to take user input and pass it to a message box that appears during installation. This is a simple demonstration of custom actions, which are useful for many other tasks. For example, a custom action could take as user input the location of the Setup.exe file and use it to launch the application after installing it.
1. To create a custom action
2. To create an installer class
Code Snippet
'Add the following procedure to override the Install procedure of the base class
Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary)
MyBase.Install(stateSaver)
' Do something you expect
Dim myInput As String = Me.Context.Parameters.Item("Message")
If myInput Is Nothing Then
myInput = "There was no message specified"
End If
MsgBox(myInput)
End Sub
3. To create a deployment project
4. To add a custom action
5. To customize the installation user interface
6. To install on your development computer
7. To deploy to another computer
8. To test the installation
9. To uninstall the application
Some references:
Allows you to specify additional actions to be performed on a target computer during installation. Custom actions are contained in .dll, .exe, VBScript, JScript, or Installer class files within your solution.
To access the Custom Actions Editor, right-click a setup/deployment project in Solution Explorer -> click View context menu -> click Custom Actions.
The following walkthrough demonstrates the process of creating a DLL custom action to direct a user to a Web page at the end of an installation.
Move it from VB General forum to ClickOnce & Setup Deployment forum for better responses.
Regards,
Martin