I've been working with the registry features of PAL. I've been successful at creating and deleting keys using [RegistryKeys](from a .reg file), [RegistryCleanupIfEmpty] - pretty cool! I have a curious problem however:
Briefly: All registry key-branches from "appnameportable.reg", accept the (one) specified through the [RegistryKeys] section, are being deleted. When two [RegistryKeys] are specified(as bellow) only the second is kept.
- In the "\settings\appnameportable.reg" I have two different key-branches - one holds software registration information, the other holds window size/position information.
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\EzySoft\InstInvCashBk\Info] "Data"=hex:0a,...[censored]... [HKEY_CURRENT_USER\Software\EzySoft\InstInvCashBk\Screen] "SCR_HSize"="1115" "SCR_VSize"="680" "SCR_Top"="0" "SCR_Left"="63"
- My laucher.ini look like this:
[Launch] ProgramExecutable=InstantInvoiceCashBook\InstantInvoiceCashBook.exe SingleAppInstance=true [Activate] Registry=true [RegistryKeys] InstantInvoiceCashBookPortable=HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\EzySoft\InstInvCashBk\Info InstantInvoiceCashBookPortable=HKEY_CURRENT_USER\Software\EzySoft\InstInvCashBk\Screen [RegistryCleanupIfEmpty] 1=HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\EzySoft\InstInvCashBk 2=HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\EzySoft\ .......
- After running the program with above configurations the .reg file is modified to exclude the first key-branch.
- I have a solution in mind using [FileMove] from "\appnameportable" but its seems like an extra step I could be avoiding?
Thanks for any assistance,