TN27 Posted May 26, 2020 Posted May 26, 2020 (edited) Hi, I am extremely new to autoIT scripting. Below is a part of my script, whick should fetch message from an ini file. As per the ini file, 123 means Installation in progress. but it is returning STRINGNOTFOUND123. Help me correct my syntax. Thanks in advance $InstallCmd = '"' & $InstallEXE & '" ' & $InstallOpt $iRet = _RunWaitProgress($InstallCmd , _strFromResource(123)) Edited May 26, 2020 by TN27
Developers Jos Posted May 26, 2020 Developers Posted May 26, 2020 Moved to the appropriate forum, as the AutoIt Example Scripts forum very clearly states: Quote Share your cool AutoIt scripts, UDFs and applications with others. Do not post general support questions here, instead use the AutoIt Help and Support forums. Moderation Team 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.
Developers Jos Posted May 26, 2020 Developers Posted May 26, 2020 Post something runnable so we can see what is going wrong. 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.
TN27 Posted May 26, 2020 Author Posted May 26, 2020 (edited) #AutoIt3Wrapper_Res_File_Add=Tools\Resources.ini, RT_STRING $InstallEXE = @ScriptDir & '\Disk1\InstData\VM\STARCCMPLUS.exe' _LogMsg(_strFromResource(400) & $InstallEXE) $InstallOpt = '-i silent -DPRODUCTEXCELLENCEPROGRAM=0' $InstallCmd = '"' & $InstallEXE & '" ' & $InstallOpt $iRet = _RunWaitProgress($InstallCmd , _strFromResource(400)) _LogMsg($InstallEXE & _strFromResource(420) & $iRet, 0) Return $iRet INI File content- [9] 123=Installation Help 124=Command line options for %s 202=/silent (/s) : Silent mode 203=/unattended (/u) : No user interaction 204=/uninstall (/x) : Uninstall application 420=successful Edited May 26, 2020 by Jos
Developers Jos Posted May 26, 2020 Developers Posted May 26, 2020 (edited) This is still not a runable script .. so have no clue what the issue could be. Be sure to provide all required information! .... but i highly doubt that _strFromResource() will retrieve and INI field from the PE Header resource. Edited May 26, 2020 by 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.
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