jrsoftware.org // Jordan Russell's Software


-Inno Setup







visitors since
Jan. 1998

Inno Setup Knowledge Base
Return to index

FAQ: Why does Setup register files when they aren't replaced?

Article Created: 2004-07-02 21:35 GMT by Jordan Russell
Last Updated: 2004-07-02 21:38 GMT by Jordan Russell

When a file has the regserver flag, Setup will try to register the file even if it wasn't replaced during the installation (e.g., if the existing file was a newer version).

This behavior might on the surface seem superfluous, but in fact it's quite necessary. Whoever installed the file in the first place may not have registered it. Or, the existing file may somehow have gotten unregistered without being deleted. If Setup only registered files that were replaced, then in both of these cases the file would remain in an unregistered state at the end of installation, and your application wouldn't work.

Site contents Copyright © 1997-2020 Jordan Russell. All rights reserved.
Portions Copyright © 2000-2020 Martijn Laan. All rights reserved.