KaFu Posted April 27, 2010 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-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now