Unattended Installation of an EXE (Without user interaction) - windows

Is there any scripting language available for creating Silent Installation (without giving input and clicking next, agree and finish)...? I want to do unattended installation of NewsGator.exe application in windows server, which scripting would be best..? Thanks in Advance for your reply.

NSIS provides the very simple /S flag for running installers.
It's also extremely easy to create a dead simple installer.

All the MSI installers can support silent installations supplying the input parameters thru the command line in the form of:
installer.exe /v/qn"PARAMETER=VALUE PARAMETER=VALUE"

try autoit, here is an example of how to automate a WinZip install :
http://www.autoitscript.com/autoit3/docs/tutorials/winzip/winzip.htm
I have used it to automate several installs in the company i work with, its pretty straight forward.

Related

Automate package installs with Chef on Windows

I'm new to the Chef world, and I'm trying to come up with a solution to automate the installation of a few programs. I've found that installers can be run with the windows_package command, but that seems to only provide automation when the installer has a silent option. Is there a way to provide a series of clicks or a list of the buttons that should be pressed during the installation to automate those installers that do not have a silent mode.
There is nothing specifically in Chef for this. You would have to use a tool that does this like AutoIt. Chef can run AutoIt, but it doesn't implement those features itself.

How to I create a Windows service from a script, run as administrator

I have a Windows installer script for a Windows application I'm delivering to customers. I want to have the application installed as a Windows service.
I've been reading up on various ways to do this. The closest I've found that can do this from a command is sc.exe as described in Create windows service from executable here at Stackoverflow, but this command requires running it as administrator, which as far as I can tell, also requires submitting an administrator's password.
In my build script, there's no way to right-click and "run as administrator".
Is there any way to do this from a build script (I'm using my company's installation packager to do this, which uses Ant-like XML build files with an command and statements -- so, much like running at the Windows command line). If I could figure out a command-line implementation that my customers can use I could give them this package.
Thanks for any tips.
Scott

Automating Adobe Media Server install

everyone! I'm making an installer that is going to set a machine up for use of a piece of software. Adobe Media Server is one of the software requirements. I'm wondering if there's any way to automate the installation of it. I can, of course, open the wizard through a command line, but at that point, the user needs to be there to continue installation. I'm really looking for more of a "set it and forget it" type of solution. If anybody knows of any way this is possible, please tell me. I'm not finding anything online so far.
I'm assuming you are doing this on a Windows server, in which case you will have to do some heavy integration with the Adobe Media Server installer. A good open source tool for installer bundling would be Inno Setup. This is much easier to accomplish on a linux server, where you could execute a function within a script that downloads the installer, and extracts it with defined parameters. I believe the package name for a YUM install on linux is: AdobeMediaServer_5_LS1_linux64.tar.gz
You can search for any installers building tool which supports adding prerequisites and add the Adobe Media Server as a prerequisite to your installer. Also, you should configure your Adobe Media Server prerequisite to be installed with a silent/unattended command line.

Install multiple softwares with one installer (install wrapper?)

I'm looking for a solution to run multiple setup files (.exe and .msi) in sequence without any user input. The idea is to have everyone in my workgroup to have the same development tools (eclipse, python, cygwin, etc) by running one installer. Besides creating a batch script, is there a software out there that could create such a wrapper of installers?
Thanks!
From my knowledge there aren't any tools which create this type of wrappers, or if there are they are not MSI-based. This is because Windows Installer is very restrictive when it comes to running multiple installers simultaneously.
You can try using a setup authoring tool which supports package prerequisites. This way you can create a dummy package which installs nothing, but still handles all the applications you want installed.
If you want some suggestions don't hesitate to contact me.

How to launch a program as as a normal user from a UAC elevated installer

I'm writing an NSIS installer and the setup program elevates "as administrator" as needed on Windows 7 / vista.
I need to run the installed program at the end of the install and don't want to launch it with the same privileges as the installer.
The regular NSIS exec commands run the child process with the same permissions as the installer.
There is a UAC plugin for NSIS, but the documentation on it isn't great and it seems v. new; I'd prefer not to use that plugin.
Ideally, I'm looking for a small .exe I can include that'll launch the target program without UAC elevation. Does this exist?
Any other suggestions?
Thanks!
You only have two options:
Uncheck and remove the run checkbox (When running on NT6+)
Use the UAC plugin (It is not that new, but it is a pain to use, so I would suggest you just go for the first option)
There is no external program you can use since it is impossible to get back to the original user from a elevated process (You can try, and get pretty close, but it will not get the correct user in every case)
I found the following, which could be wrappered into a a simple command line utility:
http://brandonlive.com/2008/04/27/getting-the-shell-to-run-an-application-for-you-part-2-how/
It only took about an hour to get that code working for my project, and it works flawlessly so far. ;)

Resources