Question Locked

Unattended Install Script for a .exe

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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?

4 replies

by bizzo

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.

by bart777

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.

http://www.autoitscript.com/autoit3/

This discussion is closed to new replies.