diff --git a/Source/exehead/components.c b/Source/exehead/components.c index b1ef5032..45d32863 100644 --- a/Source/exehead/components.c +++ b/Source/exehead/components.c @@ -91,6 +91,8 @@ void NSISCALL RefreshSectionGroups() { _RefreshSectionGroups(0, 1); } +#ifdef NSIS_CONFIG_COMPONENTPAGE + void NSISCALL SetInstType(int inst_type) { unsigned int i = 0; @@ -146,3 +148,5 @@ unsigned int NSISCALL GetInstType(HTREEITEM *items) { return i; } + +#endif//NSIS_CONFIG_COMPONENTPAGE diff --git a/Source/exehead/components.h b/Source/exehead/components.h index b5a93497..870f2acb 100644 --- a/Source/exehead/components.h +++ b/Source/exehead/components.h @@ -3,7 +3,9 @@ void NSISCALL SectionFlagsChanged(unsigned int index); void NSISCALL RefreshSectionGroups(); +#ifdef NSIS_CONFIG_COMPONENTPAGE void NSISCALL SetInstType(int inst_type); unsigned int NSISCALL GetInstType(HTREEITEM *items); +#endif//NSIS_CONFIG_COMPONENTPAGE #endif//!___COMPONENTS_H___