Hi,
Today I encounter some issue when making a portable application.
There is a path storing in registry, and I use ConfigWrite to modify the path.
However, the registry imported is only the old one. The path is changed, but only changed in the file, instead of the real registry. When I close the application, the old registry values are exported to the registry file. Then the entire ConfigWrite doesn't work.
How can I write data first, and after that, import registry?
Here is the launcher.ini I used:
[Launch]
AppName=JPEGsnoopPortable
ProgramExecutable=JPEGsnoop\JPEGsnoop.exe
SingleAppInstance=true
DirectoryMoveOK=yes
[Activate]
Registry=true
[FileWrite1]
File=%PAL:DataDir%\settings\JPEGsnoop.reg
Type=ConfigWrite
Entry="UserDbPath"=
Value="%PAL:DataDir:DoubleBackslash%\\JPEGsnoop"
[RegistryKeys]
JPEGsnoop=HKCU\Software\ImpulseAdventure\JPEGsnoop
[RegistryCleanupIfEmpty]
1=HKCU\Software\ImpulseAdventure
Thanks for helping.