KaFu 295 Posted April 27, 2010 (edited) Hello Forum,together with Melba23 I wrote the ICU - Icon Configuration Utility. As this app accesses the desktop listview, it needs to be compiled in line with the @OSArch to be able to access the OS listview.For the next release I was thinking about adding a wrapper to include the x86 and the x64 exe in one file. I came up with the following solution:#NoTrayIcon #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_outfile=au3_x64_switcher.exe #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** If @OSArch = "X86" Then $sFilename = @ScriptDir & "\au3_32bit.exe" FileInstall("bins\au3_32bit.exe", $sFilename) Else $sFilename = @ScriptDir & "\au3_64bit.exe" FileInstall("bins\au3_64bit.exe", $sFilename) EndIf If Not FileExists($sFilename) Then _Exit("Could not extract temporary file to" & @CRLF & @CRLF & $sFilename) $iPID = RunWait(FileGetShortName($sFilename) & " " & $CmdLineRaw, @ScriptDir) $timer = TimerInit() While FileExists($sFilename) If TimerDiff($timer) > 5000 Then _Exit("Could not delete temporary extracted file" & @CRLF & @CRLF & $sFilename) EndIf FileDelete($sFilename) Sleep(250) WEnd Func _Exit($sMsg = "") If $sMsg Then MsgBox(16 + 262144, "Error", $sMsg) Exit EndFunc ;==>_ExitI would be glad about any feedback on possibilities to improve this simple one .Regards Edited April 27, 2010 by KaFu OS: Win10-1909 - 64bit - German, AutoIt Version: 3.3.14.5, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2019-Dec-21) BIC - Batch-Image-Cropper (2019-Dec-11) COP - Color Picker (2009-May-21) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2019-Dec-07) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Share this post Link to post Share on other sites