/build/static/layout/Breadcrumb_cap_w.png

Batch file for self extracting files

Hello,

I need to create a batch file to automate an install.

First I will run an msi file which is fine but then 2 self extracting .exe files need to run. Are there any commands that I can use that will run the .exe files and let me specify the destination folder to extract the files to?

I could extract the files manually and copy them via a script but i'd rather just run the .exe files

Thanks

0 Comments   [ + ] Show comments

Answers (8)

Posted by: dunnpy 11 years ago
Red Belt
0
As you don't mention what the self extracting files are, it is impossible to say what switches you could use on them - it depends on what they were created with.

The standard one to try is /?, which may give you a list of command-line switches available. The standard Microsoft one for extracting is /x.

Can you open them with Winzip/7Zip/Winrar, and extract the files that way?

When you run the executable it probably extracts itself to the %temp% variable, so have a look in there to see if you can grab them.

Is this an installation and patches? The executable may just be extracting another MSI, or an MSP (patch file) - which you could install as normal.

Why not repackage the executables and then include them in an MST with the main MSI installer?

Hopefully you've got some things to be going on with there...

Thanks,

Dunnpy
Posted by: anonymous_9363 11 years ago
Red Belt
0
That depends on how the EXE was built. Some will accept arguments, others won't. Your best option is to ask the vendor. Their response will determine whether you can automate that or not.

Having dealt with vendors over the years, I can more or less guarantee that you will have had time to build your script (or, better, to have captured the EXEs to an MSI) by the time you get a meaningful response.
Posted by: server_guy 11 years ago
Senior Yellow Belt
0
The msi installs a program and then there are 2 self extracting .exe files. When you run these manually they extract a few files (mainly xml files) and copy them into various folders of the installation directory.
Posted by: anonymous_9363 11 years ago
Red Belt
0
I'd just build a transform which includes those files.Oh and then offer the vendor the chance to purchase a properly-authored MSI.
Posted by: dunnpy 11 years ago
Red Belt
0
So you could snapshot the file delivery into an MSI for easy deployment and forget about the self extracting files altogether.

Or do what Ian says - he beat me to a response [:D]
Dunnpy
Posted by: server_guy 11 years ago
Senior Yellow Belt
0
ORIGINAL: VBScab

I'd just build a transform which includes those files.Oh and then offer the vendor the chance to purchase a properly-authored MSI.



What would I need to do to build the files into a transform file?

Sorry, still learning [&:]
Posted by: anonymous_9363 11 years ago
Red Belt
0
You would use an MSI authoring tool like Wise or InstallShield. You *can* use the free tools like InstEdit or Orca but these are hard-core utilities and not for the faint-hearted, especially for newcomers and those without knowledge of Windows Installer fundamentals.

Going back a step, you say that the EXEs extract the files into folders beneath the installation's target folder: if that's your intended target, why bother trying to find out if you can direct the output elsewhere? If it's not, then perhaps the scripted approach might be better in your case.
Posted by: server_guy 11 years ago
Senior Yellow Belt
0
ORIGINAL: VBScab

Going back a step, you say that the EXEs extract the files into folders beneath the installation's target folder: if that's your intended target, why bother trying to find out if you can direct the output elsewhere? If it's not, then perhaps the scripted approach might be better in your case.



Yes they extract and I don't want to direct the output elsewhere.

My issue is I need this to run silently. When you run the self extracting .exe files it comes up and waits for you to click unzip. I've tried running "selfextractingfile.exe /silent" but with it being self extracting rather than an installer it doesn't seem to pickup the switches

Thanks
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ