I just started experimenting with the PA platform a couple of days back. I can successfully move files, dirs and registry entries pretty well, but now I'm stuck and I see no way of resolving this.
The program I'm working on is Drug Lord 2 (http://www.geekhideout.com/druglord2.shtml) and it's the silliest thing. The "installer"/executable just copies itself to the program files folder and writes a few registry entries. The settings and scores don't seem to be a problem, but there's one for the uninstaller in HKLM\software\microsoft\windows\currentversion\uninstall\drug lord 2\UninstallString and this is the interesting part.
Seems to me that at runtime, the program looks for that key, which contains the full path to itself after installation, and if the executable is anywhere else, it turns back into installer mode LOL.
So basically the value of that key has to be the current location of the executable. So, the question is: is there a way of using [RegistryValueWrite] to write a key value with the current location?
The answer was staring right at me from the manual. The correct answer is:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Drug Lord 2\UninstallString=REG_SZ:%PAL:AppDir%\Drug Lord 2\druglord2.exe -r
Thanks for playing