Msiexec: Deploy Scripts that Run at Pre/Post-Connect, and Pre-Disconnect Events


msiexec.exe /i GlobalProtect.msi PREVPNCONNECTCOMMAND="%userprofile%\pre_vpn_connect.bat c: test_user" PREVPNCONNECTCONTEXT="user" PREVPNCONNECTTIMEOUT="60" PREVPNCONNECTFILE="C:\Users\test_user\pre_vpn_connect.bat" PREVPNCONNECTCHECKSUM="a48ad33695a44de887bba8f2f3174fd8fb01a46a19e3ec9078b0118647ccf599" PREVPNCONNECTERRORMSG="Failed executing pre-vpn-connect action." POSTVPNCONNECTCOMMAND="c:\users\test_user\post_vpn_connect.bat c: test_user" POSTVPNCONNECTCONTEXT="admin" POSTVPNCONNECTFILE="%userprofile%\post_vpn_connect.bat" POSTVPNCONNECTCHECKSUM="b48ad33695a44de887bba8f2f3174fd8fb01a46a19e3ec9078b0118647ccf598" POSTVPNCONNECTERRORMSG="Failed executing post-vpn-connect action." PREVPNDISCONNECTCOMMAND="%userprofile%\pre_vpn_disconnect.bat c: test_user" PREVPNDISCONNECTCONTEXT="admin" PREVPNDISCONNECTTIMEOUT="0" PREVPNDISCONNECTFILE="C:\Users\test_user\pre_vpn_disconnect.bat" PREVPNDISCONNECTCHECKSUM="c48ad33695a44de887bba8f2f3174fd8fb01a46a19e3ec9078b0118647ccf597" PREVPNDISCONNECTERRORMSG="Failed executing pre-vpn-disconnect action."