Changes between Version 3 and Version 4 of Ticket #3987, comment 10


Ignore:
Timestamp:
04/12/24 01:11:14 (7 months ago)
Author:
mLipok
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3987, comment 10

    v3 v4  
    11> If I change:
    2 > {{{
     2> {{{#!autoit
    33> Global $TempDir = _WinAPI_ExpandEnvironmentStrings(IniRead($AutoIt3WapperIni, "Other", "TempDir", ""))
    44> If Not FileExists($TempDir) Or $TempDir = "" Then
     
    99> }}}
    1010> to
    11 > {{{
     11> {{{#!autoit
    1212> Global $TempDir = _WinAPI_ExpandEnvironmentStrings(IniRead($AutoIt3WapperIni, "Other", "TempDir", ""))
    1313> MsgBox("", "", $TempDir)
     
    2929>
    3030> Also, I think
    31 > {{{
     31> {{{#!autoit
    3232> If Not FileExists($TempDir) Or $TempDir = "" Then
    3333> }}}
    3434> should be changed to
    35 > {{{
     35> {{{#!autoit
    3636> If $TempDir <> "" And FileExists($TempDir) And Not FileExists($TempDir & "\AutoIt v3\Aut2exe") Then
    3737>       DirCreate($TempDir & "\AutoIt v3\Aut2exe")
     
    4343Guess I could change that to the following, so the defined tempdir in the INI is created when missing:
    4444
    45 {{{
     45{{{#!autoit
    4646If Not FileExists($TempDir) Or $TempDir = "" Then
    4747        If $TempDir = "" Then $TempDir = @LocalAppDataDir & "\AutoIt v3\Aut2exe"