One more thing. Hopefully the Last for a bit...
I got it to work with my Uninstaller with this Code:
!define MUI_CUSTOMFUNCTION_UNGUIINIT Un.componentsLeave
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE Un.componentsLeave
!insertmacro MUI_UNPAGE_COMPONENTS
If I install all Three It works well if all three
Components are unchecked However...
I Have a IfFileExists Function Happening that makes the
Component only show up to Uninstall if one of the files
are there that would Have been installed. So if SECTION1
Doesn't Get Installed only SECTION4 and SECTION5 Show up to
Uninstall. So the Person only sees what they Installed.
The Problem is,
If You only installed two Components and run the Uninstaller,
it lets You Uncheck the two that Shows up and For some
Reason you can Run the Uninstaller and get by with not
Choosing one...
This is the Code I use to Keep Someone from Leaving the
Uninstaller Components page without Choosing one.
Function Un.componentsLeave
SectionGetFlags "${SECTION4}" $0
IntOp $1 $0 & ${SF_SELECTED}
SectionGetFlags "${SECTION5}" $0
IntOp $0 $0 & ${SF_SELECTED}
IntOp $1 $1 + $0
SectionGetFlags "${SECTION6}" $0
IntOp $0 $0 & ${SF_SELECTED}
IntOp $1 $1 + $0
StrCmp $1 "0" 0 +3
MessageBox MB_OK|MB_ICONSTOP "You must select at least one Section."
Abort
FunctionEnd
The Installer Section uses the Same Code... Just I use
SECTION1, SECTION2, and SECTION3 for the Installer Section
Names and it all works Perfect...
Here is the Sections so You can Better Understand me.
SECTION1<---Install File1
SECTION2<---Install File2
SECTION3<---Install File3
SECTION4<---UnInstall File1
SECTION5<---UnInstall File2
SECTION6<---UnInstall File3
Can you be of help one more time on the Uninstaller?
-MichaelFlya-