# IE Toggle.mscr


IEStatus = RegRead ( "HKLM", "Security\Internet Explorer", "MSHTML" )

#stop browser
close ( "Internet Explorer" )

# ask which browser they want 
Choice( "IE Toggle","Which Browser do you want to run?     Changes wont take effect until browser is restarted.","IE6","PIE","Cancel" )
Case( 1 )
RegWriteDWord "HKLM", "Security\Internet Explorer",MSHTML,1
Run( "\Windows\iexplore.exe" )
Case( 2 )
RegWriteDWord "HKLM", "Security\Internet Explorer",MSHTML,0
Run( "\Windows\iexplore.exe" )
Case( 3 )
Exit
Case( 0 )
Message( "Cancel" )
Exit
EndChoice

