AutoRun LWMenu
Re: AutoRun LWMenu
I've just updated my post, please download again and try. Do you see a prompt?
Re: AutoRun LWMenu
No prompt. Just the Array dialog and nothing else.
Re: AutoRun LWMenu
To rephrase, I meant the dialog.
So now that we know the specific calls need a bypass too, here's a version that does it.
Please test if it finally works for you:
[temp link removed]
So now that we know the specific calls need a bypass too, here's a version that does it.
Please test if it finally works for you:
[temp link removed]
Last edited by lwc on Mon May 29, 2017 1:52 pm, edited 1 time in total.
Re: AutoRun LWMenu
Good, I'm glad I got it bypassed. Thanks for your patience!
I hope you'll consider voting to make it public now (see the OP).
Is there anything else before I release it as a new version?
I hope you'll consider voting to make it public now (see the OP).
Is there anything else before I release it as a new version?
Re: AutoRun LWMenu
Nothing else. Will consider that.
Re: AutoRun LWMenu
New version released.
Re: AutoRun LWMenu
Just updating that it's now open source. The file listing was updated accordingly, please consider voting to make it public.
-
- Posts: 1212
- Joined: Wed Jul 18, 2007 5:45 pm
Re: AutoRun LWMenu
Hey lwc, came across your LWMenu when you mentioned it as a possible yaP replacement in this topic - viewtopic.php?p=105101.
I checked the [BUTTON5] example from autorun.inf and the parameters I'm interested in the most are:
registry=HKCU\Software\advanced +HKCU\Software\advanced,accept,1
deletefolders=data +dataempty
deletefiles=program.tmp
So it looks like we can back up registry options and we can delete folders and files after a program has run, but there doesn't seem to be an option to backup a 'directory' or 'file'. Is there a parameter to backup a directory or file in LWMenu? If not, would it be possible to implement it? This would help bring LWMenu closer to yaP.
I checked the [BUTTON5] example from autorun.inf and the parameters I'm interested in the most are:
registry=HKCU\Software\advanced +HKCU\Software\advanced,accept,1
deletefolders=data +dataempty
deletefiles=program.tmp
So it looks like we can back up registry options and we can delete folders and files after a program has run, but there doesn't seem to be an option to backup a 'directory' or 'file'. Is there a parameter to backup a directory or file in LWMenu? If not, would it be possible to implement it? This would help bring LWMenu closer to yaP.
is it stealth?
Re: AutoRun LWMenu
On a marginal note, it would be great if someone would come up with an updated portability utility to succede yaP...
Re: AutoRun LWMenu
If you think it will stop comments like Midas', I might just do itfreakazoid wrote: ↑Sun Jul 09, 2023 10:53 pm So it looks like we can back up registry options and we can delete folders and files after a program has run, but there doesn't seem to be an option to backup a 'directory' or 'file'. Is there a parameter to backup a directory or file in LWMenu? If not, would it be possible to implement it? This would help bring LWMenu closer to yaP.
You can see the explanations in the same autorun.inf:
In other words, if you manually save a backup then yes, you can restore it using the + options, but it's partial:;use registry= to delete registry keys after the program exists or create(+) them before launching it
;use deletefolders= to delete folders after the program exists or create(+) them before launching it
;use deletefiles= to delete files after the program exits
- Registry is the most complete because you can actually restore specific values if you want. It's just basic textual words to store.
- Folder just creates an empty folder in advance. It's because some programs (I've spotted it with VLC's VLSub which was since fixed) won't start without the existence of a certain folder.
- File doesn't have a + option because adding it means storing the contents of an entire (probably binary) file inside autorun.inf. Likewise for folders if you expect more than an empty folder. It's because the original idea was having everything in text file (autorun.inf).
The alternative is creating a PortableApps launcher, which does a live backup of everything (after existing the original program) in a dedicated backup folder. But it's way overkill for casual launcher creation and more fitted for pre-existing launchers that others do for you and constantly maintain them in a public place that auto pushes them to you.
-
- Posts: 1212
- Joined: Wed Jul 18, 2007 5:45 pm
Re: AutoRun LWMenu
Thanks for the explanation, lwc.
Similar to the PortableApps launcher, yaP is able to backup directories to a filepath of your choosing and is able to restore that directory when yaP launches so apps can run more steathy. This is most notable for apps that write to %localappdata% or %appdata%. You can view a few example configuration files on the yaP site such as AbleWord and Audacious to name but a few.
Based on what you wrote, the backup and restore feature is probably overkill for LWMenu.
Similar to the PortableApps launcher, yaP is able to backup directories to a filepath of your choosing and is able to restore that directory when yaP launches so apps can run more steathy. This is most notable for apps that write to %localappdata% or %appdata%. You can view a few example configuration files on the yaP site such as AbleWord and Audacious to name but a few.
Based on what you wrote, the backup and restore feature is probably overkill for LWMenu.
is it stealth?
Re: AutoRun LWMenu
Fair enough, I'll just pipe it down, then...lwc wrote: ↑If you think it will stop comments like Midas', I might just do it
I won't try to answer this, only report something that may prove useful (or not...):lwc wrote: ↑How does (or should I say did?) yaP do a backup?
There's an old post mentioning Nirsoft's nircmd (viewtopic.php?p=21622#p21622), which I believe has the power to do everything required. Although its not built with AHK, its source could provide further insights. But then again, I wouldn't know...
Let me just state that I'm mostly satisfied with yaP as it stands; my main gripe is its lack of UTF-8 support for its configurations -- it only seems to understand ANSI...
Re: AutoRun LWMenu
Well, it's not overkill now that it's a new working feature.freakazoid wrote: ↑Mon Jul 10, 2023 4:02 pm Based on what you wrote, the backup and restore feature is probably overkill for LWMenu.
It took a bit longer than I thought but I think I've managed to cover all bases.
Please try it so I can make it official.
Inside the included autorun.inf is a real example of setting the new freeware game Space Quest 3D to restore and backup.
I chose it because the game's author went AWOL without replying why can't the game be portable.
Testing is easier than you might think due to the also new feature of simulation mode.
You can run the launcher with /simulate or just add simulate=1 under the program you like to backup/restore. This will avoid any risks of accidentally creating/deleting something you didn't anticipate.
Proof of concept with Sandboxie:
- I've installed Space Quest 3D inside Sandboxie
- Open the game, change some setting and make a game save.
- I've moved the sandbox' %ProgramFiles%\Space Quest 3D to let's say c:\games\sq3d
- I've moved the sandbox' %USERPROFILE%\AppData\LocalLow\Turbo Chimp to real computer in the same path
- I've moved the sandbox' %USERPROFILE%\Documents\Turbo Chimp to real computer in the same path
- I've opened the sandbox' regedit and exported HKCU\SOFTWARE\Turbo Chimp into 0.reg and put 0.reg in c:\games\sq3d
- I've emptied the sandbox.
- Install Space Quest 3D
- Open the game, change some setting and make a game save.
- Copy %ProgramFiles%\Space Quest 3D to let's say c:\games\sq3d
- Copy %USERPROFILE%\AppData\LocalLow\Turbo Chimp elsewhere
- Copy %USERPROFILE%\Documents\Turbo Chimp elsewhere
- Open regedit and export HKCU\SOFTWARE\Turbo Chimp into 0.reg and put 0.reg in c:\games\sq3d
- Uninstall Space Quest 3D
- Copy from elsewhere back into 4 & 5
Note you can also prepare the backup manually in advance, but (other than registry with 0.reg), it's much easier to enjoy the initial auto backup.
P.S.
This whole backup/restore could have been avoided altogether for this game with:
Code: Select all
set_variable=USERPROFILE
set_string=%backuppath%
Re: AutoRun LWMenu
Well, I have to say I'm disappointed multiple people gave no feedback at all for the feature you asked for (including an additional simulation feature you'll find nowhere else).
So I've went ahead and turned the beta into a stable version. Hope eventually you will try it and enjoy the backup/restore feature.