Main menu

Search
Login
Signup
Links
<< Previous thread | Next thread >>   
RunBefore section not working as I thought...

Author Post
autohost
Mon 17 Mar 2014 - 15:55
online
Registered Member #41744
Joined: Mon 17 Mar 2014 - 15:36
Posts: 1

X-Launcher v1.5.3

[FileToRun]
PathToExe=M:\$AppName$\$AppName$.exe


[Options]
RunWait=true

[RunBefore]
RunFile="C:\Program Files\SoftPerfect RAM Disk\ramdiskws.exe" /mount:M


Note that the M: drive letter IS NOT available until after the RunBefore RunFile executes.

When the portable program is run, I see error message saying M:\(path and exe) not found.

In debug file:
2014-03-11 14:31:31 : ================ App Name here Portable === application started ================
2014-03-11 14:31:31 : Setting Global Preferences
2014-03-11 14:31:31 : Setting User Preferences
2014-03-11 14:31:31 : [Options] : about to execute
2014-03-11 14:31:31 : --> DeleteTemp=true
2014-03-11 14:31:31 : --> MultipleIstances=false
2014-03-11 14:31:31 : --> FixAppData=false
2014-03-11 14:31:31 : --> RunWait=true
2014-03-11 14:31:31 : --> ShowSplash=false
2014-03-11 14:31:31 : --> ShowTrayTip=false
2014-03-11 14:31:31 : --> WriteLog=true
2014-03-11 14:31:31 : --> HideShellWindow=true
2014-03-11 14:31:31 : --> FirstRun=false
2014-03-11 14:31:31 : --> Java=false
2014-03-11 14:31:31 : --> Debug=true
2014-03-11 14:31:31 : [Options] : executed
2014-03-11 14:31:31 : Javacheck : executing
2014-03-11 14:31:31 : >>>>>> Stopped - File To Run Error=M:\AppName\AppNameHere.exe


It appears in the source that some file checks are done on the PathToExe before the RunBefore section is executed, resulting in the above error as the drive letter is not yet available.

As a workaround, I suppose I could point PathToExe to a batch file, which would contain the M:\ path and exe name. But that doesn't sound ideal.

In the x-launcher.au3 source, I could try moving the RunBefore section above the PathToExe part of the code and see what happens, but I have not programmed in AutoIt before.

I realize that in X-Launcher, this situation may not have occurred before.

Any ideas? Thanks
Back to top

Moderators: Danix, Taf, Rcs, Energy, zandet2, ZioZione, Admin, LordJim60

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System