|
-
Oct 22nd, 2002, 09:14 PM
#1
Thread Starter
Member
creating a set-up program
I want to create a setup program that willsave files and such to certain directories... i.e. font files, etc. but i need to know a few bits of information:
how to create a new folder
how to extract a file from inside a zip file
-
Oct 22nd, 2002, 09:18 PM
#2
Frenzied Member
-
Oct 22nd, 2002, 09:19 PM
#3
Stuck in the 80s
Re: creating a set-up program
Originally posted by jmelmore
I want to create a setup program that willsave files and such to certain directories... i.e. font files, etc. but i need to know a few bits of information:
1. how to create a new folder
2. how to extract a file from inside a zip file
1. Use the mkdir() function
2. Search on www.pscode.com for examples on how to do this. It's complicated.
Also, you might want to try a commercial program, rather than making your own, unless you have a very good reason to.
A setup program made in VB won't work on a machine without VB runtime files.
-
Oct 22nd, 2002, 09:20 PM
#4
PowerPoster
MkDir "mydir"
Although, as you may know VB is shipped with Setup1.vbp. Open it and if you want you can modify it. Take a good look at it.
-
Oct 22nd, 2002, 09:28 PM
#5
Fanatic Member
1.
VB Code:
Private Declare Function MakeSureDirectoryPathExists Lib "imagehlp.dll" (ByVal lpPath As String) As Long
Private Sub Form_Load()
'make sure "c:\somepath\someotherpath" exists!
MakeSureDirectoryPathExists "c:\somepath\someotherpath"
End Sub
2. Click here (No, it's really not that hard - I got it to work easily although some of the advanced features can be a bit more complicated)
"Look! Up in the sky! It's a bird! It's a plane! It's Diaper-Head Boy! (there by my name!) Yes, Diaper-Head Boy, who disguised as my son, Seth, fights a never-ending battle for truth, justice and terrorizing my house!
Resistance is futile, you will be compiled . . . Please!
-
Oct 22nd, 2002, 09:38 PM
#6
Junior Member
Extracting from Zip files
the code related to LZW type compression, which is what ZIP uses as its basis (as I understand it), is proprietary and putting it in your code would involve either royalties or messy law suits.
If you are doing this just for fun, the routine itself isn't actually all that tough, though I have no idea what the actual directory format that ZIP uses, and I am quite sure that they aren't too keen on telling everyone.
The most common way to do this without getting into anythig messy is to get a free or freeish command line ZIP program (many exist) and call that from your VB program using a SHELL call.
Anything involving DLLs and all that will usually involve paying someone money to make it work!
Hope that helps.
(Anyone interested in knowing the code should check out the local University Computing Science web pages for courses on file formats. Or search the web for LZ77 / LZ78 compression formats. These are free...LZW and several of its variations are preotected.)
-
Oct 22nd, 2002, 09:39 PM
#7
PowerPoster
Well
Use Visual Studio Installer 1.1
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Oct 22nd, 2002, 09:40 PM
#8
Stuck in the 80s
Originally posted by Armbruster2
No, it's really not that hard
Nothing's hard when you're using someone else's project.
-
Oct 22nd, 2002, 09:40 PM
#9
Frenzied Member
I find innosetup to be useful to me
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Oct 22nd, 2002, 10:05 PM
#10
Fanatic Member
Originally posted by The Hobo
Nothing's hard when you're using someone else's project.
I suppose that would be true if I was using someone else's project. I did use the vbunzip10.dll, but not the project.
Again, it's not that hard.
"Look! Up in the sky! It's a bird! It's a plane! It's Diaper-Head Boy! (there by my name!) Yes, Diaper-Head Boy, who disguised as my son, Seth, fights a never-ending battle for truth, justice and terrorizing my house!
Resistance is futile, you will be compiled . . . Please!
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
|