Randem Systems Support Board

InnoScript => InnoScript - General Questions, Report Bugs, Problems etc... => Topic started by: johnmax on March 26, 2007, 06:17:46 AM

Title: Conditional Install ? ? ?
Post by: johnmax on March 26, 2007, 06:17:46 AM
I just need an example of the script for a conditional install if a file is already on the computer - Please!
Title: Conditional Install ? ? ?
Post by: Randem on March 26, 2007, 05:20:56 PM
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.
Title: Conditional Install ? ? ?
Post by: johnmax on March 27, 2007, 01:22:36 AM
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
Title: Conditional Install ? ? ?
Post by: Randem on March 27, 2007, 08:52:15 AM
You will have to write code in the [Code] section to do that.
Title: Conditional Install ? ? ?
Post by: johnmax on March 27, 2007, 11:19:09 AM
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
Title: Conditional Install ? ? ?
Post by: Randem on March 27, 2007, 05:32:34 PM
Try looking here Inno Setup - Assimilation Report (http://is-ar.webhop.org/)
Title: Conditional Install ? ? ?
Post by: johnmax on March 28, 2007, 06:18:45 AM
Flag onlyifdestfileexists  
 
Many thanks