Professional Documents
Culture Documents
Criando Ações Customizadas
Criando Ações Customizadas
Action
11/01/2012
4 minutes to read
Note
Your computer might show different names or locations for some of the Visual
Studio user interface elements in the following instructions. The Visual Studio
edition that you have and the settings that you use determine these elements.
For more information, see Visual Studio Settings.
VBCopy
<Security.Permissions.SecurityPermission(Security.Permissions.SecurityAc
tion.Demand)>
Public Overrides Sub Install(ByVal stateSaver As
System.Collections.IDictionary)
MyBase.Install(stateSaver)
End Sub
<Security.Permissions.SecurityPermission(Security.Permissions.SecurityAc
tion.Demand)>
Public Overrides Sub Commit(
ByVal savedState As System.Collections.IDictionary)
MyBase.Commit(savedState)
System.Diagnostics.Process.Start("http://www.microsoft.com")
End Sub
<Security.Permissions.SecurityPermission(Security.Permissions.SecurityAc
tion.Demand)>
Public Overrides Sub Rollback(ByVal savedState As
System.Collections.IDictionary)
MyBase.Rollback(savedState)
End Sub
<Security.Permissions.SecurityPermission(Security.Permissions.SecurityAc
tion.Demand)>
Public Overrides Sub Uninstall(ByVal savedState As
System.Collections.IDictionary)
MyBase.Uninstall(savedState)
End Sub
Note
If you type Public Overrides and then type space, IntelliSense will provide a
list of methods and properties; you can select Commit from the list and
get the complete declaration. Repeat for the Install, Rollback, and Uninstall
methods.
This will run the installer and install Custom Action Installer on your
development computer. At the end of installation, Internet Explorer should
start and should open the Microsoft.com Web site.
Note
You must have install permissions on the computer in order to run the
installer.
At the end of installation, Internet Explorer should start and should open
the Microsoft.com Web site.
Note
You must have install permissions on the computer in order to run the
installer.
Note
If the .NET Framework is not already installed on the target computer, this
deployment will install it, and this installation might take several minutes.
Tip