ICEM12
ICEM12 controleert of in een ModuleSequence-tabel standaardacties volgnummers hebben en aangepaste acties BaseAction- en After-waarden hebben.
Deze ICEM is beschikbaar in het Mergemod.cub-bestand dat wordt geleverd in de Windows Installer 2.0 SDK en hoger. Zie Windows SDK-onderdelen voor Windows Installer-ontwikkelaarsvoor meer informatie.
Resultaat
ICEM12 plaatst een fout in de volgende gevallen:
- De module bevat een standaardactie zonder een volgnummer.
- Er wordt vastgesteld dat een standaardactie waarden bevat die zijn ingevoerd in de velden BaseAction of After van de tabel ModuleAdminUISequence, ModuleAdminExecuteSequence-tabel, Tabel ModuleAdvtExecuteSequence, tabel ModuleInstallUISequenceof tabel ModuleInstallExecuteSequence.
- De module bevat een aangepaste actie zonder waarden die in de reeks zijn ingevoerd. BaseAction- of After-velden van de tabel ModuleAdminUISequence, tabel ModuleAdminExecuteSequence, tabel ModuleAdvtExecuteSequence, ModuleInstallUISequence-tabelof tabel ModuleInstallExecuteSequence.
ICEM12 plaatst een waarschuwing als er een aangepaste actie wordt gevonden waarvoor een reeksnummer is opgegeven, maar geen waarde in de velden BaseAction of After.
Houd er rekening mee dat alle acties in de CustomAction-tabel als aangepaste acties worden beschouwd. Alle andere acties worden beschouwd als standaardacties.
Voorbeeld
ICEM12 plaatst de volgende foutberichten en waarschuwingsberichten voor een module die de databasevermeldingen bevat die hieronder worden weergegeven:
Error. Custom actions should use the BaseAction and After fields and not use the
Sequence field in the Module Sequence tables. The custom action 'Action1' uses the Sequence field
and does not use the BaseAction and After fields in the ModuleInstallExecuteSequence table.
Error. Custom actions should not leave the Sequence, BaseAction, and After fields
of the Module Sequence tables all empty. The custom action 'Action3' leaves the Sequence,
BaseAction, and After fields empty in the ModuleAdminExecuteSequence table.
Error. Standard actions should not use the BaseAction and After fields in Module
Sequence tables. The standard action 'Action2' has a values entered in the BaseAction
or After fields of the ModuleAdminExecuteSequence table.
Error. Standard actions must have a entry in the Sequence field of Module Sequence
tables. The standard action 'Action2' does not have a Sequence value in the
ModuleExecuteSequence table.
Actie | Type | Bron | Doel |
---|---|---|---|
Actie1 | 30 | bron1 | target1 |
Actie3 | 30 | bron3 | doel3 |
Actie | Volgorde | BaseAction | Na | Conditie |
---|---|---|---|---|
Actie2 | Actie1 | 1 | waar | |
Actie3 | waar |
Actie | Volgorde | BaseAction | Na | Conditie |
---|---|---|---|---|
Actie1 | 1 | waar |
Probeer het volgende om deze fouten op te lossen:
- Verwijder het volgnummer voor de aangepaste actie Action1 en gebruik in plaats daarvan de velden BaseAction en After.
- Voer waarden in de velden Sequence, BaseAction of After voor de aangepaste actie3 in. Laat de velden BaseAction en After leeg voor standaardactie Action2.
- Laat het veld Reeks niet leeg voor standaardactieActie2.
Verwante onderwerpen