say i add an exe or rar or any type of file to my project....now how do i extract it at runtime?
AcE
Printable View
say i add an exe or rar or any type of file to my project....now how do i extract it at runtime?
AcE
Hmm , do you how to launch that file ?
yea i guess....
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
Try this ...Quote:
Originally posted by theonetrueace
yea i guess....
VB Code:
Dim proc As Process proc = New Process() proc.Start(path_here)
Oh , so the user is requesting the file over the net ?
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
i dont think the user is gonna have those 2 dlls so i would like to extract them @ runtime to the base directory.....
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 .
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
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 .
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
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.....
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 .
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 !Quote:
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.....
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?