Conditional Install ? ? ?

Started by johnmax, March 26, 2007, 06:17:46 AM

Previous topic - Next topic

johnmax

Flag onlyifdestfileexists  
 
Many thanks


johnmax

I understand that, I just don't know what to write which is why I asked for someone to post an example that I can learn from - please

Randem

You will have to write code in the [Code] section to do that.

johnmax

Now you learn something every day, but I perhap's did not explain myself.
 
I want to halt the install if a file with the same name does not exist on the computer which is getting the install

Randem

I don't understand exactly what you mean. Inno Setup takes care of instances where a file already exist when you don't use the ignoreversion flag on the source statement in the [Files] Section. It automatically does not overwrite the file and skips the installation of the file in the installation package if the one on the computer is the same version or greater.

johnmax

I just need an example of the script for a conditional install if a file is already on the computer - Please!