(Optional) Creating the FlexApp One Tray Helper Deployment Script
To allow the user to stop a FlexApp One, you can use the FlexApp One Tray Helper application. Create an IntuneWin package from this script and the FAOneTray.exe and optional FAOneTray.yaml file. This script will be the command line launch point and the other files will be relocated and run at each login. In the next chapter, you will create an IntuneWin package of this script.
Note: This script name will be used below in the App information section, where you are asked to enter the app name. For this example, we will give this script the name FAOneTray-686.cmd.
Copy
@echo off
if /i A%1A==AuninstallA reg delete HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v FaOneTray /reg:64 /f
if /i A%1A==AuninstallA taskkill /IM FAOneTray.exe
if /i A%1A==AuninstallA del "C:\ProgramData\FaOneTray\FaOneTray.exe"
if /i A%1A==AuninstallA del "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\FlexApp\FaOneTray.lnk" & goto end
md "C:\ProgramData\FaOneTray" >nul 2>&1
copy faonetray.exe "C:\ProgramData\FaOneTray\faonetray.exe" >nul 2>&1
copy faonetray.yaml "C:\ProgramData\FaOneTray\faonetray.yaml" >nul 2>&1
md "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\FlexApp" >nul 2>&1
copy faonetray.lnk "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\FlexApp" >nul 2>&1
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v FaOneTray /d "C:\ProgramData\FaOneTray\FaOneTray.exe" /reg:64
:end
