Unattended Installs

Discussion and support for the Windows family of operating systems.
Post Reply
Xiphan
Registered User
Posts: 1435
Joined: 27 Feb 2007, 02:00
Location: Durban, South Africa

Unattended Installs

Post by Xiphan »

Sup people,

At work we need to install (deploy) a small program to way more than just a few PCs. Fortunately the install file is an msi package so that means I can use msiexec.exe and switches to create an unattended install.

So far I have the following:

Code: Select all

msiexec.exe /i install.msi COMPANYNAME="Company Name" SERIALNUMBER=XXXXX-XXXXXX-XXXXXX-XXXX
What I would like to know is what property code do I use for Name (name of the person the software will be registered to) and can I use %USERNAME% to get the name from the system? :?:

Thanks in advance! ;)
Image
Xiphan
Registered User
Posts: 1435
Joined: 27 Feb 2007, 02:00
Location: Durban, South Africa

Re: Unattended Installs

Post by Xiphan »

Ok I think I came right, I just discovered I can use the following:

Code: Select all

USERNAME=Default
Image
Anthro
Moderator Emeritus
Posts: 5547
Joined: 21 Dec 2002, 02:00
Processor: i7 3770k
Motherboard: ASUS P8P67-Pro
Graphics card: 2xNvidia GTX670
Memory: 16 GB Gskill Sniper
Location: In SQL Space inserting 'null' on purpose
Contact:

Re: Unattended Installs

Post by Anthro »

Read the latest PCF mag, Killerbyte has compiled anice 'Slipstreaming tutorial, that might also be relevant to your interests..
Temporary Absence
Xiphan
Registered User
Posts: 1435
Joined: 27 Feb 2007, 02:00
Location: Durban, South Africa

Re: Unattended Installs

Post by Xiphan »

I highly doubt there's anything KB can teach me about Slipstreaming that I don't already know. Now I need to install the software onto PCs that already have Windows and it would be pointless to have this software incorporated into a Windows install when not every PC needs it.

However, what would've been helpful was if KB wrote an article on how to strip hardware IDs from Windows XP using sysprep then recommend a good ghosting program to make an image of the resulting OS...

Any idiot can run nLite and select SP > select updates > slipstream > Build ISO > OMGZ0R, I am 1337Z0R 'cause I make Slipstream Windows... :roll:
Image
DAE_JA_VOO
Registered User
Posts: 12310
Joined: 28 Nov 2005, 02:00
Location: That other place
Contact:

Re: Unattended Installs

Post by DAE_JA_VOO »

Xiphan wrote:I highly doubt there's anything KB can teach me about Slipstreaming that I don't already know.

Any idiot can run nLite and select SP > select updates > slipstream > Build ISO > OMGZ0R, I am 1337Z0R 'cause I make Slipstream Windows... :roll:
lol? :lol:

Sheesh... poor KB still getting nailed and he hardly even posts here anymore...
That guy that used to mod cases. Now I take photos. True story.
I34z1k
Registered User
Posts: 8142
Joined: 05 Dec 2003, 02:00
Location: Dry Ice factory

Re: Unattended Installs

Post by I34z1k »

I think he's like Mugabe... :P So many wrongs and people will attack you forevermore
DeathStrike
Registered User
Posts: 2663
Joined: 29 Jul 2004, 02:00
Location: hidden deep in the depths of the underworld is my home.
Contact:

Re: Unattended Installs

Post by DeathStrike »

Anthropoid wrote:Read the latest PCF mag, Killerbyte has compiled anice 'Slipstreaming tutorial, that might also be relevant to your interests..
is this the november mag? or the one that is still to come?

I am working on my own ultimate windows DVD. i have so far added OFFICE 2007 and Windows XP and avast and comodo firwall to it as well as a few other applications that i use often. i was just wondering how can i make the office installation automatic? cos at the momemnt i still need to go through all the windows to select options. like how do i enter serial and make silent install. at the moment i am using a runonce command to run the office setup after windows installs. this works great but i still must manually enter info.
Spoiler: (show)
Image
SIG by HMAN 8)
Member of The Pride Of Darkness
DeathStrike on Twitter
About me
Spoiler: (show)
Asus P5KPL-CM motherboard, 4 GIG RAM, Q6600 @ 2.88GHz (Thanks Anthro), GeForce 8600GT, Samsung 2333 23" + CRT 17" Monitors. 500GB + 1.5TB HDD, Compro TV tuner, 350 WATT PSU
KillerByte
G3AR Staff Member
Posts: 5790
Joined: 08 Mar 2003, 02:00
Location: PCFormat HQ
Contact:

Re: Unattended Installs

Post by KillerByte »

WOW, I have honestly never seen a thread go so pear shaped since the Great Pear-Shaped Thread of 2006.

I did not write the Slipstreaming article, that would be Brett Venter aka Drakonis.

And unfortunately I don't post all that much because I am usually busy and therefore only monitor the PCF section.
What I type has nothing to do with the people that employ me.
SBSP
Registered User
Posts: 3124
Joined: 09 May 2006, 02:00
Location: Centurion

Re: Unattended Installs

Post by SBSP »

Xiphan wrote:Sup people,

At work we need to install (deploy) a small program to way more than just a few PCs. Fortunately the install file is an msi package so that means I can use msiexec.exe and switches to create an unattended install.

So far I have the following:

Code: Select all

msiexec.exe /i install.msi COMPANYNAME="Company Name" SERIALNUMBER=XXXXX-XXXXXX-XXXXXX-XXXX
What I would like to know is what property code do I use for Name (name of the person the software will be registered to) and can I use %USERNAME% to get the name from the system? :?:

Thanks in advance! ;)
If you go to the command prompt and change to the directory where the MSI file is and you run it with switch /?
I.E

Code: Select all

C:\theinstaller.msi /?

It should give you what you need.
you get this in my case.

Code: Select all

Windows ® Installer. V 3.01.4001.5512 

msiexec /Option <Required Parameter> [Optional Parameter]

Install Options
	</package | /i> <Product.msi>
		Installs or configures a product
	/a <Product.msi>
		Administrative install - Installs a product on the network
	/j<u|m> <Product.msi> [/t <Transform List>] [/g <Language ID>]
		Advertises a product - m to all users, u to current user
	</uninstall | /x> <Product.msi | ProductCode>
		Uninstalls the product
Display Options
	/quiet
		Quiet mode, no user interaction
	/passive
		Unattended mode - progress bar only
	/q[n|b|r|f]
		Sets user interface level
		n - No UI
		b - Basic UI
		r - Reduced UI
		f - Full UI (default)
	/help
		Help information
Restart Options
	/norestart
		Do not restart after the installation is complete
	/promptrestart
		Prompts the user for restart if necessary
	/forcerestart
		Always restart the computer after installation
Logging Options
	/l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] <LogFile>
		i - Status messages
		w - Nonfatal warnings
		e - All error messages
		a - Start up of actions
		r - Action-specific records
		u - User requests
		c - Initial UI parameters
		m - Out-of-memory or fatal exit information
		o - Out-of-disk-space messages
		p - Terminal properties
		v - Verbose output
		x - Extra debugging information
		+ - Append to existing log file
		! - Flush each line to the log
		* - Log all information, except for v and x options
	/log <LogFile>
		Equivalent of /l* <LogFile>
Update Options
	/update <Update1.msp>[;Update2.msp]
		Applies update(s)
	/uninstall <PatchCodeGuid>[;Update2.msp] /package <Product.msi | ProductCode>
		Remove update(s) for a product
Repair Options
	/f[p|e|c|m|s|o|d|a|u|v] <Product.msi | ProductCode>
		Repairs a product
		p - only if file is missing
		o - if file is missing or an older version is installed (default)
		e - if file is missing or an equal or older version is installed
		d - if file is missing or a different version is installed
		c - if file is missing or checksum does not match the calculated value
		a - forces all files to be reinstalled
		u - all required user-specific registry entries (default)
		m - all required computer-specific registry entries (default)
		s - all existing shortcuts (default)
		v - runs from source and recaches local package
Setting Public Properties
	[PROPERTY=PropertyValue]

Consult the Windows ® Installer SDK for additional documentation on the
command line syntax.

Copyright © Microsoft Corporation. All rights reserved.
Portions of this software are based in part on the work of the Independent JPEG Group.
Sorry for the long post mods.
The above might not give everything you need. You might also want to use.

msiexec.

Below is aimed at symantec msi installers but some of the stuff will be relivant to all installers.
I think it depends on how the installer was made and what the Variables were called.
these installers was written with some microsoft installer like you get an Installshield compiler or
nulsoft scriptable install system.

Here some more on Ms stuff
http://support.microsoft.com/kb/227091




http://service1.symantec.com/SUPPORT/gh ... enDocument
Anthro
Moderator Emeritus
Posts: 5547
Joined: 21 Dec 2002, 02:00
Processor: i7 3770k
Motherboard: ASUS P8P67-Pro
Graphics card: 2xNvidia GTX670
Memory: 16 GB Gskill Sniper
Location: In SQL Space inserting 'null' on purpose
Contact:

Re: Unattended Installs

Post by Anthro »

KillerByte wrote:WOW, I have honestly never seen a thread go so pear shaped since the Great Pear-Shaped Thread of 2006.

I did not write the Slipstreaming article, that would be Brett Venter aka Drakonis.

And unfortunately I don't post all that much because I am usually busy and therefore only monitor the PCF section.
The picture is of YOU infront of that slipstreaming in progress...
Temporary Absence
KillerByte
G3AR Staff Member
Posts: 5790
Joined: 08 Mar 2003, 02:00
Location: PCFormat HQ
Contact:

Re: Unattended Installs

Post by KillerByte »

no, its actually brett
What I type has nothing to do with the people that employ me.
Xiphan
Registered User
Posts: 1435
Joined: 27 Feb 2007, 02:00
Location: Durban, South Africa

Re: Unattended Installs

Post by Xiphan »

DeathStrike wrote:I am working on my own ultimate windows DVD. i have so far added OFFICE 2007 and Windows XP and avast and comodo firwall to it as well as a few other applications that i use often. i was just wondering how can i make the office installation automatic? cos at the momemnt i still need to go through all the windows to select options. like how do i enter serial and make silent install. at the moment i am using a runonce command to run the office setup after windows installs. this works great but i still must manually enter info.
Slipstreaming won't actually incorporate the software you want into the actual install. What you want to be looking into is the Sysprep tool.

Other links:
How to use the Sysprep tool to automate successful deployment of Windows XP
Windows XP Service Pack 3 Deployment Tools
ODIN - Free Disk Imager for Windows
KillerByte wrote:WOW, I have honestly never seen a thread go so pear shaped since the Great Pear-Shaped Thread of 2006.
It's because you were mentioned that's why! :twisted:
Anthropoid wrote:The picture is of YOU infront of that slipstreaming in progress...
Seriously, PCF has to put pictures of hot females on the cover just to get it off the shelf, what do you think a picture of KB's ugly mug in the mag will do? People will never touch it again, no matter how hot the chick! :twisted:
Image
DeathStrike
Registered User
Posts: 2663
Joined: 29 Jul 2004, 02:00
Location: hidden deep in the depths of the underworld is my home.
Contact:

Re: Unattended Installs

Post by DeathStrike »

thanx Xiphan :D
Spoiler: (show)
Image
SIG by HMAN 8)
Member of The Pride Of Darkness
DeathStrike on Twitter
About me
Spoiler: (show)
Asus P5KPL-CM motherboard, 4 GIG RAM, Q6600 @ 2.88GHz (Thanks Anthro), GeForce 8600GT, Samsung 2333 23" + CRT 17" Monitors. 500GB + 1.5TB HDD, Compro TV tuner, 350 WATT PSU
Post Reply