AutoRun LWMenu

If you are currently developing portable freeware or planning to do so, use this forum to discuss technical implementation, seek out like-minded developers for partnership, or solicit interested users for beta testing.
Message
Author
-ElCoyot-
Posts: 98
Joined: Thu Sep 02, 2021 4:42 am

Re: AutoRun LWMenu

#106 Post by -ElCoyot- »

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.

lwc
Posts: 213
Joined: Tue Jun 26, 2012 10:40 pm
Contact:

Re: AutoRun LWMenu

#107 Post by lwc »

-ElCoyot- wrote: Mon Jan 22, 2024 11:51 am And then the jamb. Writes Autorun.inf was not found.
Please clarify what is "the jamb"? What states "Autorun.inf was not found"? What do you run inside autorun.inf and what happens?

-ElCoyot-
Posts: 98
Joined: Thu Sep 02, 2021 4:42 am

Re: AutoRun LWMenu

#108 Post by -ElCoyot- »

When trying to download a torrent through a browser. The browser is configured to open files
.torrent through my portable program.
2024-1-27 17-3-31.png
2024-1-27 17-3-31.png (6.91 KiB) Viewed 2370 times
2024-1-27 17-9-10.png

lwc
Posts: 213
Joined: Tue Jun 26, 2012 10:40 pm
Contact:

Re: AutoRun LWMenu

#109 Post by lwc »

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:
  1. The one mentioned in the command line (e.g. AutoRun_x64.exe c:\foobar\)
  2. 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.
So you need to either add a command line to the the association or define a working folder in it. How to do so is based on the browser or OS.
First answer what your browser and let's take it from there.
Attachments
command line.png
shortcut start in.png

-ElCoyot-
Posts: 98
Joined: Thu Sep 02, 2021 4:42 am

Re: AutoRun LWMenu

#110 Post by -ElCoyot- »

https://www.centbrowser.com / collected using your program

lwc
Posts: 213
Joined: Tue Jun 26, 2012 10:40 pm
Contact:

Re: AutoRun LWMenu

#111 Post by lwc »

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:
  1. Save the following as a VBS filename like test.vbs:

    Code: Select all

    msgbox CreateObject("WScript.Shell").CurrentDirectory
  2. Temporarily associate it in CentBrowser (or probably the OS) to open .torrent files
  3. Open a .torrent file inside the browser
  4. Tell me the output, which will be the working folder

-ElCoyot-
Posts: 98
Joined: Thu Sep 02, 2021 4:42 am

Re: AutoRun LWMenu

#112 Post by -ElCoyot- »

2024-2-5 0-29-26.png
2024-2-5 0-29-26.png (1.24 KiB) Viewed 1788 times
I noticed that if you put this content in %Temp%, then everything works.
Screenshot_240205_201710.png
Screenshot_240205_201710.png (2.32 KiB) Viewed 1672 times
Although it works without utorrent.exe

lwc
Posts: 213
Joined: Tue Jun 26, 2012 10:40 pm
Contact:

Re: AutoRun LWMenu

#113 Post by lwc »

-ElCoyot- wrote: Sun Feb 04, 2024 1:30 pm Although it works without utorrent.exe
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%).

-ElCoyot-
Posts: 98
Joined: Thu Sep 02, 2021 4:42 am

Re: AutoRun LWMenu

#114 Post by -ElCoyot- »

uTorrent.7z
(427.25 KiB) Downloaded 1058 times
Here is the utorrent Yap. Located on the way "D:\TCPU68\Programm\uTorrent ". It works great.
Try to build utorrent with your program and check it yourself. Everything you wrote is incomprehensible to me. I don't have any options.

lwc
Posts: 213
Joined: Tue Jun 26, 2012 10:40 pm
Contact:

Re: AutoRun LWMenu

#115 Post by lwc »

I can't reproduce it unless you reveal how you associate it to .torrent files. Maybe record a video of it.

-ElCoyot-
Posts: 98
Joined: Thu Sep 02, 2021 4:42 am

Re: AutoRun LWMenu

#116 Post by -ElCoyot- »

Video
Last edited by -ElCoyot- on Tue Feb 13, 2024 9:54 pm, edited 1 time in total.

lwc
Posts: 213
Joined: Tue Jun 26, 2012 10:40 pm
Contact:

Re: AutoRun LWMenu

#117 Post by lwc »

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.

-ElCoyot-
Posts: 98
Joined: Thu Sep 02, 2021 4:42 am

Re: AutoRun LWMenu

#118 Post by -ElCoyot- »

[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.
Last edited by -ElCoyot- on Tue Feb 13, 2024 9:54 pm, edited 1 time in total.

lwc
Posts: 213
Joined: Tue Jun 26, 2012 10:40 pm
Contact:

Re: AutoRun LWMenu

#119 Post by lwc »

Just to be sure, which folder opens up for you if you click "Browse Folder" inside the launcher?

-ElCoyot-
Posts: 98
Joined: Thu Sep 02, 2021 4:42 am

Re: AutoRun LWMenu

#120 Post by -ElCoyot- »

I'm sorry, I didn't quite understand you. You can do it step by step.

Post Reply