Compressing the Lync Client (cont...)
You will now have a folder called Microsoft_Lync_2013_x86_01 containing:
- This is now the source folder we will point our SCCM package to.
- You will now need to create a program in the package and point it to the TSINSTALL.bat
Creating the Task Sequence
There were several factors involved in my choice to use a task sequence to do this. Mainly because we can run command lines directly from the TS rather than having to come up with a massively long boring script.
- Create a new task sequence under the Operating System Deployment section of SCCM
- Choose "create a new custom task seqeunce"
- Name it Install Lync 2013 x86 and click finish
- Add an Install Software step and call it Install Microsoft Lync 2013 x86
- Choose the package and program you created earlier (an assumption)
- Create a run command line step to kill of the Communicator process. Name it Kill Communicator Process and use the command: taskkill /im communicator.exe /f
- Create a run command line step to kill of the Outlook process. Name it Kill Outlook Process and use the command: taskkill /im outlook.exe /f
- Create a run command line step called Remove Live Meeting with the command: MsiExec.exe /X{A98AFBC7-D5A7-46A1-8795-EABE2F55A7D6} /qn REBOOT=ReallySuppress
- Create a run command line step called Remove OCS 2007 with the command: MsiExec.exe /X{E5BA0430-919F-46DD-B656-0796F8A5ADFF} /qn REBOOT=ReallySuppress
- Create a run command line step called RemoveOutlook Plugin using the command: MsiExec.exe /X{1DE3088D-E607-4EB0-9223-106E7B5AF2F1} /qn REBOOT=ReallySuppress
- Create a run command line step called Delete Source Files with the command del c:\lync2013x86 /F /Q - run this step with an admin account as per the tick box at the bottom.
Your Task Sequence should look this this. |
*I ticked "Continue on error" in the options tab on every step EXCEPT the install Lync step.
Click OK to save the Task Sequence.
Now advertise the task sequence out to a collection - I advise not populating the collection yet - just test this on 1 computer for now and then add a few more once your happy it's working the way it should. Tailor the advertisment in as way to suit you; Silently or with an on screen prompt etc. ASAP or a timed schedule...
I AM NOT RESPONSIBLE FOR YOUR CHOICES OF TARGET - DON'T BLAME ME IF YOU TRASH YOUR ESTATE WITH THIS METHOD!!!
This is what will happen.
- Target computer will recieve policy from SCCM
- TS will launch and copy over source folder
- Program will run which will create the extract source, extract the 7z install and run setup.exe
- Once Lync has installed the TS will kill off OCS & Outlook
- It will remove Live Meeting, OCS and the Outlook Plugin
- Source files are deleted.
I really hope this works for people and I welcome any constructive comments....
docN
thanks man, i am starting packaging right now, your above ts, i have used in the past with other software, that i had to kill running process etc.
ReplyDeleteCool - we go live next week - it's been piloted in the IT Dept and at 2 live sites and it seemed to go ok.
DeleteWe're hitting ~4000 users with it next week !!!
Wish me luck haha