PDA

View Full Version : Disable Event based on SYSINFO return



thansen
09-09-2003, 04:47 PM
HELP

I need to know if there is a way to disable an event from happening in ComponentEvents.rul based on OS information from SYSINFO.

Is this possible?

Thanks in Advance!

Tony

niranbhimaiah
09-09-2003, 11:41 PM
Which events do you want to disable?

Regards
Niran Bhimaiah

thansen
09-10-2003, 09:58 AM
I have an event that is copying a self-registering file and then the file gets registered. It is not compatable with 95 or 98 so I need to tell it that if it is either of those two OS's not to fire and copy the file. Any Ideas?

magicclaw
09-10-2003, 12:41 PM
You could just use the OS featue in the file groups pane. Have a seperate filegroup that includes the files in question only. Then select all the OS's EXCEPT Win95 and Win98 as the "Operating System(s)" applicable to that file group. Voila.

Good luck.

thansen
09-10-2003, 12:46 PM
Thanks for all the Help! In Installshield 6.12, if you select all OS's except 95 and 98 how do you select ME and XP to support when they are not listed?

Thanks again

Tony

magicclaw
09-10-2003, 05:15 PM
Sorry, dude. I haven't used any version of InstallShield prior to 6.31. I don't know what your best course of action would be. Good luck!

TsungH
09-11-2003, 01:09 AM
Events will get executed regardless. One approach is to have a condition check in the event in question.
Function SomeEvent()
begin
// if (95 or 98) then
// do not do this
// else
// copy and register files
// endif;
end;