[InnoSetup]Check for previous installation
pls i want to know if there is a way of telling inno setup to check for previous version of the app that is about to be installed?
say for like checking the Program Files directory for a folder that has the name of the app.
:confused: :confused: :confused:
Re: [InnoSetup]Check for previous installation
What do you mean by check for previous installation? Inno Setup already knows if a previous installation has been installed. It does not check the program files location but a registry entry. It is controlled by AppId which default value is AppName.
Re: [InnoSetup]Check for previous installation
what i mean is, can InnoSetup check if the program have been installed before?
in a situation where by AppName have been installed before and am trying to install it again, i want InnoSetup to prompt me that AppName have been installed already and leave an option to continue or exit installation.
Re: [InnoSetup]Check for previous installation
You will probably have to check in the code section for the registry entry with the name of your AppId to determine if it was intalled already then do what you want to do.
Re: [InnoSetup]Check for previous installation
Quote:
Originally Posted by randem
You will probably have to check in the code section for the registry entry with the name of your AppId to determine if it was intalled already then do what you want to do.
how do i do that?
can you pls show me(because i don't do Pascal/Delphi)
Re: [InnoSetup]Check for previous installation
Neither do I. Check with Kleinma. He does Pascal code for Inno Setup.