Results 1 to 6 of 6

Thread: [RESOLVED] MSDATGRD.OCX and MSCOMCT2.OCX problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2008
    Location
    Banglore
    Posts
    95

    Resolved [RESOLVED] MSDATGRD.OCX and MSCOMCT2.OCX problem

    Hi friends i am having a problem that when i am trying to deploy an exe file in other system with creating the database and the min. req. things i done here when i am going to run the application its throughs an error at MSCOMCT2.OCX and MSDATGRD.OCX where VB is not there in that system here i am going to get that by getting the files in to the system32,its working
    but the issue is this here i am installing this application in no of systems so for each sys i need to paste these files is there any alternative for this

    my requirement is this
    i neednot get the error mes when i installed the app. in client sys
    and the app has to work properly
    please urgent
    Success = 1 % Knowledge + 99 % Hard work

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: MSDATGRD.OCX and MSCOMCT2.OCX problem

    Moved To Application Deployment

    Include both of them in your installation package, and let setup do the copy/pasting/registring for you.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2008
    Location
    Banglore
    Posts
    95

    Unhappy Re: MSDATGRD.OCX and MSCOMCT2.OCX problem

    How can i create a setup by combing them in to a package please help me its urgent u know i am first time using the VB
    Success = 1 % Knowledge + 99 % Hard work

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Dec 2008
    Location
    Banglore
    Posts
    95

    Unhappy Re: MSDATGRD.OCX and MSCOMCT2.OCX problem

    i got some code and i know its not the way we are going to create the setup file and i just tried it but there its throwing an runtime error 53 please letme know how to create the setup file please its urgent the deadline as reached

    Public Jimbo As Integer
    Public ProgramName As String
    Private Sub form_load()
    LblMain.Caption = "This program will install the files needed on your computer to run your application. Click next to continue..."
    Command1.Caption = "Next..."
    Me.Caption = "Setup..."
    End Sub
    Private Sub Command1_Click()
    ProgramName = "report generation"
    If Jimbo = 3 Then
    Unload Me: End
    Else
    Jimbo = Jimbo + 1
    Select Case Jimbo
    Case 1
    LblMain.Caption = "This Setup will install " & ProgramName & "project1.exe and other components. Please click next to continue."
    Case 2
    Make_Directories
    LblMain.Caption = "Click Next to copy the files into the directory 'C:\REPORTS'"
    Copy_Files
    EditReg
    Case 3
    LblMain.Caption = "Setup Complete!": MsgBox "Complete!", , "": Command1.Caption = "Done"
    End Select
    End If
    End Sub
    Private Sub EditReg()
    'This inserts files into the registry. e.g.
    End Sub
    Private Sub Copy_Files()
    'This is where you put all the file copying Material
    ChDir App.Path
    FileCopy App.EXEName & ".exe", "C:\REPORTS\Program" & ProgramName & ".exe"
    End Sub
    Private Sub Make_Directories()
    On Error Resume Next
    MkDir "C:\REPORTS"
    MkDir "C:\REPORTS\Setup"
    MkDir "C:\REPORTS\Dll's"
    MkDir "C:\REPORTS\Ocx's"
    MkDir "C:\REPORTS\Program"
    End Sub

    Success = 1 % Knowledge + 99 % Hard work

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2008
    Location
    Banglore
    Posts
    95

    Resolved Re: MSDATGRD.OCX and MSCOMCT2.OCX problem

    I got the answer and its working fine so here are the steps

    1.close ms vb6.0 ide
    2.click start>-programs->microsoft visual studio 6.0->microsoft visual studio 6.0 tools->package and deployment wizard
    3.click browse to locate ur project file(.vbp)
    4.click package
    5.click yes to start the recompilation process
    6.in package type select standard setup package and click next
    7.select the destination where u want to create the package folder for ur project.this folder will contain all the supported and main application files required to install ur apps in some other client machine.
    8.click yes to create the folder if it doesn't exist and click next
    9.the next list that will come will display all necessary files to build the setup.click add to insert some other files from ur project to the said list.if u any access database file,click this button,locate ur db file and click open to add the file to the list.this list will also help u to remove any unnecessary files that u donot wish to install in the target machine with apps.u can also add help files(if any) for project from this option.but do not ever try to remove the .dll,.ocx,.lib or .exe files.click next
    10.if u want ur setup becomes a standalone package select single cab otherwise if u want part installer then select multiple cab.if u select the 2nd option u have mention the size of the floppy disks.then the wizard will ask u insert the floppies one after another.i will recommend u not to use this option.click next
    (if u see any shared files box or dependency information box just skip that)
    11.insert a title for the installer and click next
    12.in the next screen adjust the menu apperance the setup will create for u.this will become the startmenu shortcuts for ur apps.
    13.click next->click next
    14.in the script name box u do not require to enter anything but do not erase the default text.
    15.click finish to build the installer.
    16.click close->click close

    after the installer is created just goto the package folder and there u will find a file "setup.exe".double click that to run the installer.
    Success = 1 % Knowledge + 99 % Hard work

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Dec 2008
    Location
    Banglore
    Posts
    95

    Arrow Re: [RESOLVED] MSDATGRD.OCX and MSCOMCT2.OCX problem

    Hi hack will u provide some help on this following thread please i need ur help i hope u are going to be.......


    http://www.vbforums.com/showthread.php?t=556718
    Success = 1 % Knowledge + 99 % Hard work

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width