the same section for installer and uninstaller
hi,

I have some components, installer and uninstaller.
For better management I think about a section, that be used by installer and uninstaller.
If uninstaller run, I can add "un." to some sections,
and in the section get a name of this section.
if name doesn't start with "un." it's installer,
and a component will be installed,
if starts with "un." the component will be uninstalled.
Is it a good way?

Section "App" sec_id0
; get the name of this section
;if(name doesn't starts with "un."
; Install part
;else
; Uninstall part
;endif
SectionEnd

Function un.onInit
; add "un." to the name of section with ID = sec_id0
FunctionEnd

Thanks!

corrected:
I forgot, that uninstaller be created to run-time.
It's not possible.
please delete thread (I can't).