Rollback - setup & deployment project - VS.Net 2003

Najmun

New member
Joined
Jul 21, 2006
Messages
1
Programming Experience
Beginner
hi,

how do i rollback the actions that are performed in the install and uninstall methods of Installer Class?

do i use custom action for Rollback? or do i write the customized code for it in the Install/Uninstall methods?

my code is as below :

<RunInstaller(True)> Public Class Installer1 Inherits System.Configuration.Install.Installer
dirName = Me.Context.Parameters.Item("DIRNAME")
regAsmPath = Me.Context.Parameters.Item("REGASMPATH")
args = "/tlb: Travelers.CS.CLREL.FTP.tlb " & Chr(34) & dirName & Travelers.CS.CLREL.FTP.dll" &
Chr(34) & " /codebase /silent"
Dim processStartInfo As New ProcessStartInfo(regAsmPath)
processStartInfo.Arguments = args
processStartInfo.WindowStyle = ProcessWindowStyle.Hidden
Process.Start(processStartInfo)
End Sub

i am using the installer class to do the registration of dlls and creation of type library.

what i want to do is, in case there is some exception in Process.Start() or of the RegAsm.exe is unavailable/corrupt etc. then the whole installation process must be rolled back.

hope i am clear in explaining my problem here :)

plz help.. its urgent!

thanx.
 
Back
Top