Results 1 to 16 of 16

Thread: Beginner Question....just something i have never learned....

  1. #1

    Thread Starter
    Addicted Member theonetrueace's Avatar
    Join Date
    Jan 2002
    Location
    South Alabama
    Posts
    196

    Beginner Question....just something i have never learned....

    say i add an exe or rar or any type of file to my project....now how do i extract it at runtime?

    AcE

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Hmm , do you how to launch that file ?

  3. #3

    Thread Starter
    Addicted Member theonetrueace's Avatar
    Join Date
    Jan 2002
    Location
    South Alabama
    Posts
    196
    yea i guess....

  4. #4

    Thread Starter
    Addicted Member theonetrueace's Avatar
    Join Date
    Jan 2002
    Location
    South Alabama
    Posts
    196
    no wait......heres my setup....my proggy is using some dlls and i want to be able to let my users just download the exe for my app and thats it.....c wut im saying?

    AcE

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by theonetrueace
    yea i guess....
    Try this ...
    VB Code:
    1. Dim proc As Process
    2. proc = New Process()
    3. proc.Start(path_here)

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Oh , so the user is requesting the file over the net ?

  7. #7

    Thread Starter
    Addicted Member theonetrueace's Avatar
    Join Date
    Jan 2002
    Location
    South Alabama
    Posts
    196
    one of the dlls is the old inet dll....i tryed using the webclient clas but it locks up the app when u attempt to connect to something....if u can tell me how to get rid of this affect then i can use the webclient class instead of the inet control .. also need a webbrowser type control like the old browser from vb6....thats the other dll......any ideas?

    AcE

  8. #8

    Thread Starter
    Addicted Member theonetrueace's Avatar
    Join Date
    Jan 2002
    Location
    South Alabama
    Posts
    196
    i dont think the user is gonna have those 2 dlls so i would like to extract them @ runtime to the base directory.....

  9. #9
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    If you are deploying your proj then it's a lot easier to include these files with the setup file .

    WebBrowser is under COM Tab when you right click the toolbar and select customize Toolbox with the name Microsoft Web Browser .

  10. #10

    Thread Starter
    Addicted Member theonetrueace's Avatar
    Join Date
    Jan 2002
    Location
    South Alabama
    Posts
    196
    didnt want to go threw all that trouble...app is pretty small...less than a mb....without the dlls of course....its just i got the webbrowser on my form but its referencing a dll then putting it in my bin dir.....if i pull the exe out to my desktop and run it without those 2 dlls then i get errors on the forms inwhich they exist....that leads me to believe they r not part of the .net framwork....c where im going with this?

    AcE

  11. #11
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    That's right . It's not .NET Framework class . It's available through COM interoperability (old COMs) that's wrapped from VB6 Objects . You have to have that file along with your exe . If you want to copy it locally just select that reference in the Project explorer window , and change Copy Local property to : True .

  12. #12

    Thread Starter
    Addicted Member theonetrueace's Avatar
    Join Date
    Jan 2002
    Location
    South Alabama
    Posts
    196
    copy locally....does that mean it will compress it with ur exe then extract it for use....?....or plz explain wut its gonna do

    AcE

  13. #13

    Thread Starter
    Addicted Member theonetrueace's Avatar
    Join Date
    Jan 2002
    Location
    South Alabama
    Posts
    196
    ok nm....i looked it up.....c wut its gonna do....i already doing that....now im back to square one....use will be downloading this app off my website...want to make it easy to use....1 file....how am i supposed to do this?.....guess a setup app is the only way to accomplish this.....

  14. #14
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    No , that option will make it easier to you so you don't have to browse all the files in system folder just looking for that dll . It will be copied in the bin folder where your proj resides .

  15. #15
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by theonetrueace
    ok nm....i looked it up.....c wut its gonna do....i already doing that....now im back to square one....use will be downloading this app off my website...want to make it easy to use....1 file....how am i supposed to do this?.....guess a setup app is the only way to accomplish this.....
    Yeah , it's easier . How would you let the user run your app without having the file(since it's required in your case) , and suppose he doesn't have internet connection !

  16. #16

    Thread Starter
    Addicted Member theonetrueace's Avatar
    Join Date
    Jan 2002
    Location
    South Alabama
    Posts
    196
    ok....user will download my app from my site....then execute it on his/her pc....they wont get the error til they click a button that launches a new form2 which is where it requires the dlls....so i'll have it extract them onstartup.....get it?

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