Im a noob so please forgive me if i'm in the wrong place.

I need some help in installing apps, such as flash, msn, quicktime etc. unattended.

In my network i have about a 100 computer that needs to be updatet once in awhile, with the lates software.
All computer have 2 profiles, admin and a guest user.
After the update has been installet the computer needs to reboot and copy the guest profil into the default user profil, so all the users that logs on the computer gets the same setup.

We have no sms, ris or other fancy program to do it with.

So fare i got help to make this batch.

@echo off
for /f %%a in (computerlist.txt) do (
net use \\%%a\c$ /user:administrator
copy c:\programmer\chrome.msi \\%%a\c$\programmer
psexec \\%%a -i -u administrator -p pword msiexec.exe /i c:\programmer\chrom.msi
)


It will copy a app to a computer, but NOT install it.

So I put this code in the batch start c:\programmer\chrome.msi
It should start a installation on the target computer/computers, but it only starts a installation on the "push" computer and then it does it twice.??

The problem with the batch is that it ofcause only installs 1 program at a time, and i need to change it every time i need to push out a new update.

I'm i doing it all wrong, is there a better and easyer way to do it.?
Maybe a small program that can do it for me.

I am awear that copying the guest profil into the default user profil, may be a problem.
But if i could do a unattended installation of the new updates on all computer a once, that would be a big help.

any help would be appreciatet [:D]
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

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

Answers

0
from your first script:

msiexec.exe /i c:\programmer\chrom.msi is the correct command to start a msi installation. if it's not working and that code if your actual script it might be not starting because of the typo in the msi name? (missing an e, judging from start c:\programmer\chrome.msi)

to make installations unattended, you can add some flags and/or parameters to the msiexec command line. if you'll do a little search on the internet one of the first hits you get is:
Technet article about the msiexec command line

for specific parameters or deployment methods to each vendor msi you can search the package kb on appdeploy.


if you do a little more research on your own I think most of your questions will be answered. and if you have any mroe specific questions left by then I'm sure people here are more than willing to help you further.


good luck!
Answered 11/06/2009 by: Rheuvel
Brown Belt

Please log in to comment
0
It will copy a app to a computer, but NOT install it. Your command line looks OK so, if you add the argument to create a verbose log for the install, the resulting log ought to tell you why the install failed.
psexec \\%%a -i -u administrator -p pword msiexec.exe /i c:\programmer\chrom.msi /l*v %SystemRoot%\temp\chrom.log
Answered 11/06/2009 by: VBScab
Red Belt

Please log in to comment
0
If you want an unattended install you can add /qn (completely silent) or /qb- (progress dialog only) to your msiexec command line
If you don't I'm guessing you'll just get to the first installer window and be stuck there...
Answered 11/06/2009 by: pjgeutjens
Red Belt

Please log in to comment
0
Good point, Pieter. In fact, for the PSExec command line part, it might be better to also remove the '-i' argument and add '-s', i.e. Execute As System.
Answered 11/06/2009 by: VBScab
Red Belt

Please log in to comment
0
just a thought I'm having ...

if you're working with a whole bunch of MSI's that need to be installed, why not work the other way around?
What I mean is instead of copying the msi to the target machines, why not make one central "repository" and execute all your MSI's from there

so you'd trigger a psexec \\%%a -s msiexec.exe /i \\REPOSITORY\MSIFOLDER\MyMSI.msi /qb-
I don't think all in all your network traffic will differ too much between these approaches.
Just make sure all machines have read access to the share.

like I said, just a thought...

PJ
Answered 11/06/2009 by: pjgeutjens
Red Belt

Please log in to comment
0
Good idea, save for the fact that the System account has no network access :)
Answered 11/06/2009 by: VBScab
Red Belt

Please log in to comment
0
well, it's not that it doesn't have network access... you can actually map network locations under system credentials and then you'll have access.
Also I'm pretty sure granting read access to DOMAIN\Domain Computers group will make it so the share can be reached by the system account
Answered 11/08/2009 by: pjgeutjens
Red Belt

Please log in to comment
0
Im sorry i have not return sooner, but my work (library) had a major network breakdown, so i need to take care of the first.

pjgeutjens: very good idea, but im in a workgroup, not sure if you idea is gonna work in a workgroup.

VBScab: i change the -i and replace it with a -s, and it seem to have done the trick, now it seems to install on the target computer.
But the /l*v %SystemRoot%\temp\chrome.log didn't seem to create any log.

BTW. I'm i mistaken or are these http://www.appdeploy.com/packages/ for download, cause i can't find the download link.
Answered 11/10/2009 by: denmyos
Yellow Belt

Please log in to comment
0
But the /l*v %SystemRoot%\temp\chrome.log didn't seem to create any log.Weird...I can't imagine how the System account wouldn't have access to %SystemRoot%\TEMP...did you drop the Username and Password arguments when using the System account argument? BTW. I'm i mistaken or are these http://www.appdeploy.com/packages/ for download, cause i can't find the download linkThat page is an index to knowledgebase articles about the named packages. There's nothing to download.
Answered 11/10/2009 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity