Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: how to zip then unzip files to different directories...

24 Oct 2014   #1
dtvonly

windows 7
 
 
how to zip then unzip files to different directories...

Hi. My final project has main.exe, config.txt and template.xlsx files. I would like to somehow zip all these into one installation file such that once the user double click on it, it will extract main.exe onto the desktop; config.txt in c:\ and template.xlsx in c:\...\Documents.

Please advise. Thank you.


My System SpecsSystem Spec
.
24 Oct 2014   #2
Tookeri

Windows 7 Pro 32
 
 

You could create a self extracting exe using 7-zip and include a batch file that you instruct the users to run after. The batch file would then move the files to their corresponding folders.

Or have the self extracting exe run the batch file automatically: windows - Is it possible to execute a file after extraction from a 7-Zip self-extracting archive (SFX) archive? - Super User

Haven't tested myself though.
My System SpecsSystem Spec
25 Oct 2014   #3
Alejandro85

Windows 7 Ultimate x64
 
 

Consider using something like NSIS to create a real installer instead, thus getting a .msi package that you then distribute. It can deploy all the files anywhere you want them and all necessary configurations. Using zip files for distribution is only good if your program is suitable for xcopy deployment (that is, everything together in a single location, or "portable" as people like to call it).

BTW, I think your desired paths are not a good choice. When deploying programs you should try to adhere to the standard of how Windows programs are installed. The main .exe goes into program files in its own folder, with a shortcut in desktop or start menu. Config file should never go into root folder (it's not user writable), it's better to put it under AppData in each user profile, and better to create it on first run instead of on-install (with the defaults parameters hardcoded into the exe for creating it). As for the templates, it depends on what purpose they serve and if they'll be modified. The program files folder or in AppData seems good places in each cases, but most likely my documents will only add clutter for the user.
My System SpecsSystem Spec
.

Reply

 how to zip then unzip files to different directories...




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
How to make Zip files NOT appear as directories?
Is there a way to make Explorer and other filemanagers NOT show zip files as though they are directories/folders. It's incredibly annoying having them in the folder list.
General Discussion
Everything is missing, Programs, Files, Directories
Here's what's going on: Had several programs open last night, Word, Firefox, iTunes. I had just downloaded some new music from amazon.com. Went to iTunes to "add a new folder" to search for music. When the dialog box opened to select the folder I noticed about half of my sub-directories...
General Discussion
Explorer only shows 10 directories/files
All of a sudden something has changed in my Windows 7. If I click on Documents in the Navigation window (left side) I then get a list of Directories but only the first 10 subdirectories are listed and I've got a link saying Show All ?? Objects. It doesn't matter which directory I select I...
General Discussion
Moving Users and Program Files Directories
Hi, I am new here and would like some advice with moving the Users and Program Files directories on a clean installation of Windows 7 Ultimate. My computer has a 60Gb SATA2 Solid State Drive which I am installing the OS and I have 2 640Gb SATA3 hard drives, one of which I want to use for both...
Installation & Setup
Unzip rar Files without Password
Hi there. I have a Problem, i got some Rar Files, but they need a Password. But i forgot what the password is, is there a way to unzip it without a Password?:(
Software
Can't figure out how to unzip files to my start menu
What I want to do is extract files from a zip file to a folder in my start menu. If anybody could help me out with this that would be great. Thanks
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 13:12.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App