You are here

Want to make System Internals Autoruns portable. Stuck at 1st step.

4 posts / 0 new
Last post
X
Offline
Last seen: 5 years 2 months ago
Joined: 2010-07-01 02:59
Want to make System Internals Autoruns portable. Stuck at 1st step.

I want to learn how to make portable apps for personal use and I thought I would start with Autoruns. This app only needs to set these registry entries...

Windows Registry Editor Version 5.00

; autoruns
[HKEY_CURRENT_USER\Software\Sysinternals\AutoRuns]
"EulaAccepted"=dword:00000001
"onlinesearchcommand"="http://www.google.com/search?hl=en&q="
"shownomicrosoft"=dword:00000001

I read Creating A Portable App: A Guerilla Field Guide but I don't understand this section:

Become familiar with the launchers available. For instance:

* X-Chat Portable redirects the Path, and GTK directories.
* Notepad++ Portable Moves files and then adjusts them so that any open files from your flash drive will now open on your new host.
* 7-Zip Portable deals with the registry entries made by 7-zip.
* PNotes Portable Passes a command line variable to the program.

7-Zip seems similar to Autoruns in that it only deals with registry entries. Can someone explain what he means by launcher there and offer any tips on how to portablize Autoruns?

Thanks in advance

Jimbo
Offline
Last seen: 4 years 10 months ago
Joined: 2007-12-17 05:43
The guerilla guide has ben somewhat superceeded

since the guerilla guide was written, there has been work done on a generic launcher, which makes it far simpler to make most apps portable, and I would strongly recommend that you use that instead now. (The advice in the guide is still good, but there is now a new way to do the implementation bit).

You can find the launcher at https://portableapps.com/apps/development/portableapps.com_launcher - there is a link to download it, and also a link to the manual for its use further down the page.

For the app that you describe, you will need a launcher.ini file that is something like

[Activate]
Registry=true

[Launch]
ProgramExecutable=Autoruns\autoruns.exe

[RegistryKeys]
autoruns=HKEY_CURRENT_USER\Software\Sysinternals\AutoRuns

[RegistryCleanupIfEmpty]
1=HKEY_CURRENT_USER\Software\Sysinternals

Disclaimer: I have not tested the above ini file in any way, it is just an approximation of the fields that you would need

X
Offline
Last seen: 5 years 2 months ago
Joined: 2010-07-01 02:59
Thanks Jimbo

Hooray! I finally made it. I was pulling my hairs out there for a while with some errors but I discovered my mistakes in the end.

Thanks for pointing me in the right direction.

Now I gotta try one that writes to %AppData%

OliverK
OliverK's picture
Offline
Last seen: 3 years 6 months ago
Developer
Joined: 2007-03-27 15:21
There's already a package

There's already a package available.

My bad, there was a package. I don't seem to have it up anymore. I might have a copy to upload though, later.

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

Log in or register to post comments