AutoRun LWMenu
Re: AutoRun LWMenu
I don't know if it's important or not, but. I have practically no programs installed in the system. I built a portable uTorrent. There are no associations in the system. Opens in the browser as "open these types of files". And then the jamb. Writes Autorun.inf was not found. If you collect via Yap, everything works. It's a small thing, but...
try it at home.
try it at home.
Re: AutoRun LWMenu
When trying to download a torrent through a browser. The browser is configured to open files
.torrent through my portable program.
.torrent through my portable program.
Re: AutoRun LWMenu
So I assume you meant you associated .torrent files inside your browser to open in my program.
Which browser do you use? Because some browsers like Chrome just use the OS level file associations (see this question), meaning you associated your OS, not your browser.
In any case, AutoRun looks for autorun.inf inside of either 2 folders:
First answer what your browser and let's take it from there.
Which browser do you use? Because some browsers like Chrome just use the OS level file associations (see this question), meaning you associated your OS, not your browser.
In any case, AutoRun looks for autorun.inf inside of either 2 folders:
- The one mentioned in the command line (e.g. AutoRun_x64.exe c:\foobar\)
- If it's not specified then within the working folder, which is decided by the program that launched AutoRun. For example, if this was a Windows shortcut, then it would be the "Start in" folder.
First answer what your browser and let's take it from there.
Re: AutoRun LWMenu
https://www.centbrowser.com / collected using your program
Re: AutoRun LWMenu
It's Chromium Based so I assume it uses the OS associations (the ones in Choose defaults by file type, which might posses a challenge as to how to either give them a command line parameter or a working folder statement.
To begin with:
To begin with:
- Save the following as a VBS filename like test.vbs:
Code: Select all
msgbox CreateObject("WScript.Shell").CurrentDirectory
- Temporarily associate it in CentBrowser (or probably the OS) to open .torrent files
- Open a .torrent file inside the browser
- Tell me the output, which will be the working folder
Re: AutoRun LWMenu
I noticed that if you put this content in %Temp%, then everything works.
Although it works without utorrent.exe
Re: AutoRun LWMenu
What do you mean without it?
Anyway, the program expects the presence of autorun.inf and if the working folder is %temp%, how can it be expected to guess you actually put autorun.inf in another random location?
You wrote yaP manages it, but I don't get how would yaP randomly guess where is the INI file. Or maybe does it scan the entire drive for it?
When you associated test.vbs did you associate it through the browser or through Windows? Either way you must find a way to add either a command line parameter or define the working folder (so it won't be %temp%).
Re: AutoRun LWMenu
Try to build utorrent with your program and check it yourself. Everything you wrote is incomprehensible to me. I don't have any options.
Re: AutoRun LWMenu
I can't reproduce it unless you reveal how you associate it to .torrent files. Maybe record a video of it.
Re: AutoRun LWMenu
Video
Last edited by -ElCoyot- on Tue Feb 13, 2024 9:54 pm, edited 1 time in total.
Re: AutoRun LWMenu
So I see there's no association, you just tell Windows to open my program on the downloaded file.
Can you copy and paste here the contents of your autorun.inf? There was a screenshot earlier, but I need it in text to try it.
Can you copy and paste here the contents of your autorun.inf? There was a screenshot earlier, but I need it in text to try it.
Re: AutoRun LWMenu
[CUSTOM CD MENU]
hidetrayicon=1
skiptobutton=3
[BUTTON3]
buttontext=utorrent
relativepathandfilename=App\utorrent.exe
deletefolders=dlimagecache
backuppath=App
If you tie it up .torrent via Windows (open this type of files in ...) that's exactly the same thing. He only additionally asks what to open through. Through the launcher or directly through torrent.exe . Which doesn't make sense without a launcher.
hidetrayicon=1
skiptobutton=3
[BUTTON3]
buttontext=utorrent
relativepathandfilename=App\utorrent.exe
deletefolders=dlimagecache
backuppath=App
If you tie it up .torrent via Windows (open this type of files in ...) that's exactly the same thing. He only additionally asks what to open through. Through the launcher or directly through torrent.exe . Which doesn't make sense without a launcher.
Last edited by -ElCoyot- on Tue Feb 13, 2024 9:54 pm, edited 1 time in total.
Re: AutoRun LWMenu
Just to be sure, which folder opens up for you if you click "Browse Folder" inside the launcher?
Re: AutoRun LWMenu
I'm sorry, I didn't quite understand you. You can do it step by step.