Again I've checked the app Drago Portable, which I've made portable. Regarding some entries in the registry I received the following result with Regshot:
HKLM\SOFTWARE\Cygwin HKLM\SOFTWARE\Cygwin\Installations HKLM\SOFTWARE\Cygwin\Program Options HKU\S-1-5-21-1202660629-515967899-725345543-1005\Software\Cygwin HKU\S-1-5-21-1202660629-515967899-725345543-1005\Software\Cygwin\Program Options
Accordingly I pasted the following code in the file DragoPortable.ini:
[Activate] Registry=true [RegistryKeys] Cygwin1=HKLM\SOFTWARE\Cygwin Cygwin2=HKLM\SOFTWARE\Cygwin\Installations Cygwin3=HKLM\SOFTWARE\Cygwin\Program Options Cygwin4=HKCU\Software\Cygwin Cygwin5=HKCU\Software\Cygwin\Program Options
Now I've executed the file DragoPortable.exe. But during the execution of the app I can't detect any of the above mentioned registry keys. Has anyone an explanation for this strange behavior?
Perhaps you somehow accidently ran Cygwin when testing?
Previously known as kAlug.
It should be noted that there is overlap with other apps if you're doing that whole hierarchy. Also, if you do HKLM\SOFTWARE\Cygwin alone, that emcompasses the keys in HKLM\SOFTWARE\Cygwin\Installations and HKLM\SOFTWARE\Cygwin\Program Options.
A better option would be to specifically check for any keys/values specific to the app and then treat it as cleanups in this order:
[RegistryCleanupIfEmpty]
1=HKLM\SOFTWARE\Cygwin\Installations
2=HKLM\SOFTWARE\Cygwin\Program Options
3=HKLM\SOFTWARE\Cygwin
4=HKCU\Software\Cygwin\Program Options
5=HKCU\Software\Cygwin
Sometimes, the impossible can become possible, if you're awesome!
I've now detected, that the Launcher DragoPortable.exe creates all the above mentioned registry entries. This conclusion is derived as follows.
First I started the base app "Drago.exe" and closed it again and I got the following results with Regshot:
Afterwards I started the Launcher "DragoPortable.exe" and closed it again and I got the following results with Regshot:
Accordingly I've adapted the file DragoPortable.ini with respect to these registry entries as follows:
This research has also shown me that it is not enough, that I check the base app with Regshot. It is also necessary to test the launcher again with Regshot.
If the base app doesn't write the cygwin keys, than you don't need to have the launcher write them either.
I have to correct my previous description. The registry entries, which I have mentioned above, are generated by the base app and not from the Launcher. Here are the results of Regshot in connection wit the base app Drago.exe:
Associated with file associations here also appears the registry entry "HKLM\SOFTWARE\Classes\Drago.Document".
Accordingly it seems necessary,that I adapted the section [RegistryKeys] as follows:
But I have found that it is sufficient if I write the section [RegistryKeys] without the third entry as follows:
But why is that possible?