Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

Lync 2013 won't change to Skype4B when deployed using OCT

$
0
0

This week we published the following article:

Changing back to Lync 2013 Icon after the April 2015 update
http://blogs.technet.com/b/uclobby/archive/2015/06/09/changing-back-to-lync-2013-icon-after-the-april-2015-update.aspx

Even though it covers most of Lync/Skype4B deployments, still we found out that there is a scenario where the icon isn't changed to Skype for Business after the April 2015 update.

skype4bicon01

The Start Menu shortcut was also Lync 2013:

skype4bicon02

While troubleshooting the issue, we discovered that the C:\Windows\Installer\{91150000-0011-0000-1000-0000000FF1CE}\ folder contained two different files with Lync and Skype4B icons:

skype4bicon03

After testing it, we discovered that the root cause for this issue was due to Lync 2013 being installed with a customized shortcut using Office Customization Tool (OCT):

skype4bicon04

If we don't change the shortcut location in OCT, we will only get the lyncicon.exe in the Windows Installer folder. Also, this issue happens with Office 2013 and Lync 2013 Standalone.

A good alternative to OCT is to use a config.xml in order to customize the installation, but with this method, however, we cannot change the shortcut location:

Config.xml file reference for Office 2013
https://technet.microsoft.com/en-us/library/cc179195.aspx

To solve this issue we can use a workaround by changing the icons files. We can do it manually or use the following PowerShell cmdlets (requires elevated permissions):

$shortcutLocation = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Office 2013\"
$oldShortcut = "Lync 2013.lnk"
$newShortcut = "Skype for Business 2015.lnk"
$iconComment = "Connect with people everywhere through voice and video calls, Skype Meetings, and IM."

# Create a copy of the Shortcut:
Rename-Item $shortcutLocation$oldShortcut $newShortcut

# Change the new shortcut settings
$shell = New-Object -COM WScript.Shell
$shortcut = $shell.CreateShortcut($shortcutLocation+$newShortcut)
$shortcut.Description = $iconcomment
$shortcut.Save()

#Get the Icon Name and Folder
$iconlocation = $shortcut.IconLocation
$tempInd = $iconlocation.indexof("Icon")

$iconName = $iconlocation.substring($tempInd,$iconlocation.indexof(".exe")-$tempInd )
$iconFolder = $iconlocation.substring(0,$tempInd)

#Change the icon:
Rename-Item $iconFolder$iconName".exe" $iconFolder$iconName"_old.exe"
Copy-Item  $iconFolder"lyncicon.exe" $iconFolder$iconName".exe"  -force

skype4bicon05

This script is different from the one in the previous article because we need to keep the same location for the shortcut icon.

Now we have the Skype for Business 2015 icon:

skype4bicon06

And also the Skype for Business 2015 shortcut in the Start Menu:

skype4bicon07

Considerations

As mentioned before, this is a workaround in which the icon will only rollback to Lync 2013 if we install the Lync/Skype4b update or repair the Office/Lync 2013 installation.
Note that this issue may be fixed in future updates.


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>