Ok So far I got the execution to work(replacing the NULL with Create_New_Console), but in ths next step of registration of componets, I get an error that says an ActiveX control can not register an object.<br><br>this is the function that is run when clicking Next, I'll bold the part that is run in a normal instalation situation.<br><br><FONT FACE=monospace><br><b><br> Dim fs As Object<br> Set fs = CreateObject("Scripting.FileSystemObject"

<br> Dim CurrFolder As Object<br> Set CurrFolder = CreateObject("Scripting.Folder"

<br> Dim CurrFiles As Object<br> Set CurrFiles = CreateObject("Scripting.Files"

<br> Dim CurrFile As Object<br> Set CurrFile = CreateObject("Scripting.File"

<br> <br> Dim ObjectPath As String<br> Dim FileExt As String<br></b><br>If CopySite Then<br> If RegDll Then<br> NextForm<br> Else<br> If ScriptExist Then<br> Dim itmcpy As Items<br> Dim MsgBoxStr As Variant<br> Dim Ubnd As Long, Lbnd As Long<br> Dim FileN As String<br> <br> For Each itmcpy In Ini.Section("ActiveX"

.Items<br> MsgBoxStr = SplitAndDecode(itmcpy.Name)<br> Ubnd = UBound(MsgBoxStr)<br> Lbnd = LBound(MsgBoxStr)<br> <br> If (MsgBoxStr(Lbnd) = "AddNoReg" Or MsgBoxStr(Lbnd) = "AddReg" Or _<br> MsgBoxStr(Lbnd) = "UnReg" Or MsgBoxStr(Lbnd) = "ReplaceReg" Or _<br> MsgBoxStr(Lbnd) = "ReplaceNoReg"

Then<br> If fs.FolderExists(WinSysDir & ComponetPath) = False Then<br> fs.CreateFolder WinSysDir & ComponetPath<br> End If<br> Select Case MsgBoxStr(Lbnd)<br> Case "Reg"<br> RegisterObject WinSysDir & ComponetPath & MsgBoxStr(Lbnd + 1)<br> Case "UnReg"<br> UnRegisterObject WinSysDir & ComponetPath & MsgBoxStr(Lbnd + 1)<br> End Select<br> End If<br> Next<br> RegDll = True<br> NextForm<br> Else<br><b> If fs.FolderExists(WinSysDir & ComponetPath) = False Then<br> fs.CreateFolder WinSysDir & ComponetPath<br> End If<br> lblContents.Caption = "Now Registering..." & vbCrLf<br> Set CurrFolder = fs.GetFolder(WebServer & SarasRoot & DLLsrc)<br> Set CurrFiles = CurrFolder.Files<br> For Each CurrFile In CurrFiles<br> ObjectPath = CurrFile.Path<br> FileExt = fs.GetExtensionName(ObjectPath)<br> If LCase(FileExt) = "dll" Or LCase(FileExt) = "ocx" Or LCase(FileExt) = "exe" Then<br> lblContents.Caption = lblContents.Caption & " " & CurrFile.Name & "........."<br> fs.CopyFile ObjectPath, WinSysDir & ComponetPath & "\" & CurrFile.Name, True<br> If LCase(FileExt) = "exe" Then<br> RegisterObject WinSysDir & ComponetPath & CurrFile.Name, True<br> Else<br> RegisterObject WinSysDir & ComponetPath & CurrFile.Name<br> End If<br> lblContents.Caption = lblContents.Caption & "Done" & vbCrLf<br> End If<br> Next<br> lblContents.Caption = lblContents.Caption & vbCrLf & "Complete"<br> RegDll = True<br> NextForm<br> End If<br></b><br> End If<br>Else<br> MsgBox "You need to chose the proper paths", vbCritical And vbOKOnly<br> PreviousForm<br>End If<br></font><br><br>and here is the function RegisterObject<br><br><FONT FACE=monospace><br>Public Sub RegisterObject(ByVal File As String, Optional IsExe As Boolean = False)<br> Dim cmdline As String<br> <br> If IsExe Then<br> cmdline = File & " \register"<br> Else<br> cmdline = WinSysDir & "\regsvr32.exe /s " & File<br> End If<br> ExecCmd cmdline, WinSysDir<br> <br>End Sub<br></font><br><br>the ExeCmd can bee seen in the post above. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href=
</a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)