PDA

View Full Version : SB 6.9: Hiding / disabling a feature based on OS



NewsArchive
09-29-2008, 01:44 AM
Hey Folks,

I have an SB Feature that should not be available on Vista. It creates a
shortcut to a tray program in CSIDL_STARTUP. Preventing shortcut creation in
SB on Vista is easily handled, but I don't see a straightforward means of
hiding / disabling the offering of the feature itself from within the script.

It occurs to me that I could wrap the Define Feature script item in a
condition that tests the OS, but Friedrich inserts a caution against modifying
SB_FEATURESID, so I don't want to indirectly mess anything up.

Has anyone done anything like this, or know if it's safe in SB>

Thanks.

--
Best regards,

Mark

-------------------------------------------------------------------
Why waste time learning when ignorance is instantaneous?

NewsArchive
09-29-2008, 01:45 AM
You might take a look at the attached.
It illustrates showing/hiding an entire dialog screen and showing/hiding a
single checkbox on a dialog screen.

Jane

NewsArchive
09-29-2008, 01:46 AM
>You might take a look at the attached.
>It illustrates showing/hiding an entire dialog screen and showing/hiding a
>single checkbox on a dialog screen.

Jane,

Thanks. Mine is a bit different, and may not work because of a display side
effect of playing with it at runtime. The feature I would like to hide /
disable has a parent. If I conditionally do not define it on Vista, I get an
artifact node marker in the feature tree.

May be something for SB7.

Thanks again for the help.

--
Best regards,

Mark

-------------------------------------------------------------------
Why waste time learning when ignorance is instantaneous?