|
-
Apr 28th, 2003, 06:39 PM
#1
Thread Starter
Addicted Member
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
-
Apr 28th, 2003, 06:43 PM
#2
Sleep mode
Hmm , do you how to launch that file ?
-
Apr 28th, 2003, 06:53 PM
#3
Thread Starter
Addicted Member
-
Apr 28th, 2003, 06:54 PM
#4
Thread Starter
Addicted Member
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
-
Apr 28th, 2003, 06:59 PM
#5
Sleep mode
Originally posted by theonetrueace
yea i guess....
Try this ...
VB Code:
Dim proc As Process
proc = New Process()
proc.Start(path_here)
-
Apr 28th, 2003, 07:00 PM
#6
Sleep mode
Oh , so the user is requesting the file over the net ?
-
Apr 28th, 2003, 07:04 PM
#7
Thread Starter
Addicted Member
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
-
Apr 28th, 2003, 07:07 PM
#8
Thread Starter
Addicted Member
i dont think the user is gonna have those 2 dlls so i would like to extract them @ runtime to the base directory.....
-
Apr 28th, 2003, 07:12 PM
#9
Sleep mode
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 .
-
Apr 28th, 2003, 07:17 PM
#10
Thread Starter
Addicted Member
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
-
Apr 28th, 2003, 07:23 PM
#11
Sleep mode
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 .
-
Apr 28th, 2003, 07:25 PM
#12
Thread Starter
Addicted Member
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
-
Apr 28th, 2003, 07:26 PM
#13
Thread Starter
Addicted Member
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.....
-
Apr 28th, 2003, 07:29 PM
#14
Sleep mode
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 .
-
Apr 28th, 2003, 07:39 PM
#15
Sleep mode
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 !
-
Apr 28th, 2003, 07:43 PM
#16
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|