Menù Principale

Cerca
Login
Registrati
Link
<< Discussione precedente | Discussione successiva >>   
RunBefore section not working as I thought...

Autore Messaggio
autohost
lun 17 mar 2014 - 15:55
online
Utente registrato #41744
Registrato il: lun 17 mar 2014 - 15:36
Messaggi: 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
Torna ad inizio pagina

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

Salta:     Torna ad inizio pagina

RSS discussione: rss 0.92 RSS discussione: rss 2.0 RSS discussione: RDF
Powered by e107 Forum System