Unattended Install Script for a .exe

By alxcsby ·
I'm looking for a simple way to write a script+batch file (or comparable setup) to auto-select options during an install. The idea is to create a "ready-to-run" installation file for end users to prevent confusion.
Any ideas?
As an example:
"Test.exe" is the installer. It has several modifications needed (new ports, display options, etc.). What would be used to auto select the proper options for end users?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

Depends on the Installer

by Bizzo In reply to Unattended Install Script ...

If this is an InstallShield package, you can create a response file.

Run the installation with the /r switch, and select your installation options as normal. Once installation is complete, you should have a setup.iss file in either c:\windows or c:\windows\system32. Copy this file to the same directory as the installation file.

You can now run the installation file silently using test.exe /s

A lot of .exe installers are "wrapped" installshield or MSIs, that generally expand to a temporary location, and run from there.

Run the installation as normal until it requests some interaction, then look in C:\temp, or wherever your temporary directory is, and it may have expanded itself there.

If it does, then copy the new folder to another location, as they get deleted when the installation completes.

If the contents contain an installshield package, then you can then follow the instructions above. If it contains an MSI, then your best bet would be to create a transform file (MST), and install using the MSI and the MST (not the exe).

As an aside, what is the installation for? If it's an off-the-shelf/downloaded package, the I might be able to give you specific instructions.

Collapse -

Try this one

by bart777 In reply to Unattended Install Script ...

There is a nice program called AutoIt. I've used it to create administrative installs for users who don't have admin rights. I haven't created a scripted install like you are trying to do but this program can do it from what I have read.

Give it a whirl and let us know what you think.

Collapse -

The tool to automate software installation

by alex-bav In reply to Unattended Install Script ...

Another useful tool is Silent install builder. It allows to fully automate installation of the software.

Related Discussions

Related Forums