An improved process for preparing 4-[(3-chloro-4-fluorophenyl)amino]-6-{[4-(N,N-dimethylamino)-1-oxo-2-buten-1-yl]amino}-7-((S)-tetrahydrofuran-3-yloxy)-quinazoline and related aminocrotonyl compounds and the preparation of a suitable salt of 4-[(3-chloro-4-fluorophenyl)amino]-6-{[4-(N,N-dimethylamino)-1-oxo-2-buten-1-yl]amino}-7-((S)-tetrahydrofuran-3-yloxy)-quinazoline for use as a pharmaceutically active substance.