1.) How can i (i.e.) execute MDAC.EXE or so, only if the OS is 9x ?
2.) The Help says it is better not to use the SelfRegister function for DLL´s. But how or where can i find information what else i have to do, to register the DLL?
To run a program only on Win9X use the condition "Version9X". But you can also use MDAC.EXE to run as a prerequisite by going to "Media" - "Prerequisites" -> and pressing the "New..." button. Select your MDAC.EXE file and then set the "Target OS" drop-down list box to: "Windows 95/98/ME".
As for the second thing you may:
- find information about how to register your .dll from the producer of the .dll .
or
- use a tool that can monitor all the registry access (maybe from SysInternals), then self-register that .dll and see what keys had been created. You then import those keys in Advanced Installer, and you will have to modify any key/value that is machine-dependent using MSI properties.