jaja714 Posted November 19, 2019 Share Posted November 19, 2019 Because I am sharing code with other members of my team, I'm reluctant to hard-code the icon location here. While %scriptdir% works with #AutoIt3Wrapper_outfile, #AutoIt3Wrapper_Run_Before and #AutoIt3Wrapper_Run_after, it does not seem to work for #AutoIt3Wrapper_Icon. Should I continue looking for solutions or am I stuck? For example; #AutoIt3Wrapper_Run_Tidy=Y ; run tidy before compile/build #AutoIt3Wrapper_outfile=%scriptdir%\temp.exe ; build temp exe first #AutoIt3Wrapper_Icon=%scriptdir%\Win7IconPack\Windows 7 (58).ico ; include this icon #AutoIt3Wrapper_Run_Before=del "%out%" ; delete temp exe #AutoIt3Wrapper_Run_After=move/y "%out%" "%scriptdir%\%scriptfile%.exe" ; move temp exe to real exe Link to comment Share on other sites More sharing options...
Developers Jos Posted November 19, 2019 Developers Share Posted November 19, 2019 You do realize that this directive is solely used at compilation time to tell aut2exe which Icon to add to the target exe? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Zedna Posted November 19, 2019 Share Posted November 19, 2019 (edited) Just omit %scriptdir% and result will be the same (relative path to scriptdir) #AutoIt3Wrapper_Icon=Win7IconPack\Windows 7 (58).ico ; include this icon Edited November 19, 2019 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
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