

Sometimes because of a failed install or the whole script not executing or the ghastly 'I set the install job 2 hours ago and still no sign of it. Why do you ever need to run an msi/mst from a network share - for testing purposes of course. there is NO backslash ( \ ) between %~dp0 and the filename afterwards when you enclose the whole variable/filename in quotation marks (as above), you can have spaces in the path and/or the msi file name without any troubles.ģ. %~dp0 - returns the current path where this very bat file is (and where the msi and the mst files are too.)Ģ. Msiexec /i "%~dp0MyMsiInstall.msi" TRANSFORMS="%~dp0MyTransform.mst"ġ. Option 2: Silent Install Download the MSI installer for the version of Snagit you are trying to install. Right-click on the installer file and choose Run as administrator. Instead, I always create this simple bat file and keep it together with the Off Option 1: Reboot and Run as Administrator Reboot the computer.

Msiexec /i \MyInstall.msi /t \MyTransform.mst Normally I'd need to browse to the network share and manually enter (or drag/drop) in Start/Run: The following is more useful when you have and MSI and an MST that are giving you hassle.Įvery now and again I need to execute an MSI and an MST from a previously unknown network location - for instance SMS distribution share, Altiris deployment server etc.
