--
Chen Drori ch...@pelicansecurity.com
Pelican Security http://www.pelicansecurity.com
Tel: +972-3-6488454 ext.124
Fax: +972-3-6488453
"Chen Drori" <ch...@pelicansecurity.com> wrote in message
news:3ac0...@12.41.20.38...
--
Robert M. Dickau
Senior Technical Trainer
InstallShield Software Corp.
www.installshield.com/training
"Robert M. Dickau (InstallShield)"
<i_wish_i_had_time_to_answer_individual_questions_through_e-mail_but_i_don't
@installshield.com> wrote in message news:3ac2...@12.41.20.38...
prototype msi.MsiCloseHandle(HWND);
export prototype HideFeature(HWND);
function HideFeature(hMSI)
HWND hDB, hView, hRecord;
begin
hDB = MsiGetActiveDatabase(hMSI);
MsiDatabaseOpenView(hDB,
"SELECT * FROM `Feature` WHERE `Feature`=FeatureName",
hView);
MsiViewExecute(hView, 0);
MsiViewFetch(hView, hRecord);
MsiViewModify(hView, 6, hRecord); // 6 = delete
MsiRecordSetInteger(hRecord, 5, 0); // Display field of Feature record
MsiViewModify(hView, 7, hRecord); // 7 = insert temp
MsiViewClose(hView);
MsiCloseHandle(hRecord);
MsiCloseHandle(hView);
MsiCloseHandle(hDB);
end;
"Chen Drori" <ch...@pelicansecurity.com> wrote in message
news:3ac2...@12.41.20.38...
> That's exactly what I want to do - conditionally hide a feature.
> I do NOT want to set it's installlevel to 0, because that would uninstall
it
> if it was installed. I just want to make it invisible in the treecontrol
of
> the CustomSetup dialog. How do I get it to be invisible without playing
> around with the installlevel?
>
> "Robert M. Dickau (InstallShield)"
> <i> wrote in message news:3ac2...@12.41.20.38...
TIA,
Stefan Krueger
"Robert M. Dickau (InstallShield)"
<i_wish_i_had_time_to_answer_individual_questions_through_e-mail_but_i
_don't...@installshield.com> schrieb im Newsbeitrag
news:3ac3...@12.41.20.38...
I have tried doing the same thing for each of the sub-features before doing
the top-level feature, but I still get the error (sub-features OR top-level
features that don't contain other features hide just fine).
Any ideas?
Thanks,
Paul L.
"Robert M. Dickau (InstallShield)"
<i_wish_i_had_time_to_answer_individual_questions_through_e-mail_but_i_don't
@installshield.com> wrote in message news:3ac3...@12.41.20.38...
Has anybody solved this before? I'd rather not recreate the wheel.
Thanks,
Paul
"Paul Little" <pli...@acbs.com> wrote in message
news:3afa2911$1...@12.41.20.38...
--
Stefan Krueger - Independent Setup Consultant
Visit InstallSite at http://www.installsite.org to download
free code samples, tips, tools and more...
For information about individual support and consulting services
please send a blank mail to the autoresponder at in...@installsite.org
Stefan Krueger and the InstallSite.org web site are not affiliated
with InstallShield Software Corporation.
"Paul Little" <pli...@acbs.com> schrieb im Newsbeitrag
news:3afabd2e$1...@12.41.20.38...
-Paul
"Stefan Krueger" <nws...@installsite.org> wrote in message
news:3afbc4a2$1...@12.41.20.38...