In an InstallShield Basic MSI project I have some features and component but I wan't to add some features at run time that will be displayed in the CustomSetup dialog without any associated components. Is that possible ?
I have been trying this code in InstallScript:
hDB = MsiGetActiveDatabase(hMSI);
MsiDatabaseOpenView(hDB, "SELECT * FROM `Feature`", hView);
hRec = MsiCreateRecord(6);
MsiRecordSetString (hRec,1,"TEST");
MsiRecordSetString (hRec,3,"TEST");
MsiRecordSetInteger(hRec,5,2);
MsiRecordSetInteger(hRec,6,1);
MsiRecordSetString (hRec,7,INSTALLDIR);
MsiRecordSetInteger(hRec,8,0);
MsiViewModify(hView, MSIMODIFY_INSERT_TEMPORARY, hRec);
MsiCloseHandle(hRec);
MsiCloseHandle(hRec);
MsiCloseHandle(hView);
MsiCloseHandle(hDB);