I think this is possible only using an external soft.
For that we need :
For that, I wrote this code which do the work very fine.
At app start I hide Windows Start button and when exiting the app, I show it.
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="init(event)">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent
private const exe_name:String = 'StartKiller.exe'
private var native_process_startup_info:NativeProcessStartupInfo
private var exe_file:File = File.applicationDirectory.resolvePath(exe_name)
private var process:NativeProcess
private var process_args:Vector.<String> = new Vector.<String>()
protected function init(event:FlexEvent):void
{
// run our exe to hide start button
native_process_startup_info = new NativeProcessStartupInfo()
native_process_startup_info.executable = exe_file
process = new NativeProcess()
process.start(native_process_startup_info)
NativeApplication.nativeApplication.addEventListener(Event.EXITING, function(e:Event):void{
// exit our exe and show start button
native_process_startup_info = new NativeProcessStartupInfo()
native_process_startup_info.executable = exe_file
process_args = new Vector.<String>()
process_args.push('exit')
native_process_startup_info.arguments = process_args
process = new NativeProcess()
process.start(native_process_startup_info)
})
}
]]>
</fx:Script>
</s:WindowedApplication>
I created also an install if you want to test it before changing your code, you can download it here.
I hope all that can help you.