Fix failure when executing cinst after install.