Jump to content

Recommended Posts

Posted (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 by TN27
  • Developers
Posted

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.
  :)

Posted (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 by Jos
  • Developers
Posted (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 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.
  :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...