I have to disagree with Glenn here. - I do prefer to use UNC paths, but like Glenn pointed out some apps may not like that. So test them before you deploy. I don't like mapping a drive to do so because many installers will then reference back (MSI files most commonly) to the mapped drive that will (by good practise) be removed after installation. The UNC path will always exist. Also like Glenn Pointed out if \\stingray if replaced my \\manataray, so instead use a DFS share, so you can always replace servers without having to rename the servername in the script. Now thats the official way I would put it. The unofficial way I would do is make an Alias for the \\Manataray server in the DNS called Stingray adn everything is fine and dandy :P
- Reboot, I would check if an app needs a reboot, then wait till the end of the script, check the variable if a reboot is neccesary then reboot. In that case all apps ARE installed and the reboot that was neccesary for the app that set the reboot variable did good for other apps that might have needed the reboot too.
|