You are here

I've been away too long, help me fix my blindness...

3 posts / 0 new
Last post
Bennieboj
Bennieboj's picture
Offline
Last seen: 4 years 10 months ago
Joined: 2010-09-16 07:28
I've been away too long, help me fix my blindness...

So, I wanted to make a new portableapp for the first time in 6 months or so.
Registry is bugging me, so I decided to create a SSCCE.

I created HKEY_CURRENT_USER\Software\AAA in the registry, to mess with. Under that key, I added the value "test" with value 1. I backed up the key, named it AAA.reg and moved it to \Data\settings.

Next, I made a small portableapp, filled the appinfo.ini and help.html with normal values, nothing important. AAAPortable.ini in \App\Appinfo\Launcher looks like this:
[Launch]
ProgramExecutable=AAA\AAA.exe
WorkingDirectory=%PAL:AppDir%\AAA
LaunchAppAfterSplash=true
SinglePortableAppInstance=true

[Activate]
Registry=true

[RegistryKeys]
AAA=HKCU\Sofware\AAA

Nothing too hard, right?
I put a compiled ahk script with a messagebox inside the \App\AAA folder. If you don't trust me, feel free to recompile the code ore insert your own temporary executable.

I let the launcher compile the code, no errors. I changed the value of "test" in the registry to 0, just to know if the registry restoration etc works.

When I run the app, the "0" value gets replaced by a "1". Then I changed the value to a "2" by hand, to simulate my "app" changed that value. I closed by message box and let the launcher close. I noticed 2 things:

  1. The "2" value stays put inside the registry.
  2. The "1" value stays put inside the registry file (\Data\settings\AAA.reg), the value change isn't getting backed up.

Here are my files.

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 5 months 2 weeks ago
DeveloperModerator
Joined: 2008-07-24 18:46
misspelled

You've misspelled Software in the RegistryKeys entry. That should fix it.

Bennieboj
Bennieboj's picture
Offline
Last seen: 4 years 10 months ago
Joined: 2010-09-16 07:28
Thanks!

Thanks, I was working too long on the same file, it seems.
The launcher really should check for these stupid typos Blum

Yes, I set the working directory!

Log in or register to post comments