10-15-2009 06:17 AM
Hello,
i have made an installer with LV8.5.1. My problem is an ini. file that i want to install only if it is not installed in a former installation (Password file modified by the user. At the first instalation it should be installed at the update not).
It is possible?
greetings
Schwede
10-16-2009 08:42 AM
Hello Schwede,
normally it is the best way to update a older software version with a new installer such as application 1 is included in instaler 1.1 and also the ini file and application 1.1 is included in installer version 1.1 without such a ini file.There is no option which could be set to check if there is a formerly version of a ini file.
The best way would be to create a clear specification for installing your software and the included files. So that your "customer" know what to do for the first time and also the second installation and so on....
Best wishes.
10-16-2009 09:06 AM
Hi Schwede,
I am not sure if there is a way of checking for a specific file, but you can look for if a folder exists at a certain location.
Maybe you could edit the installer to put just the .ini file in a folder and then check for this folder name on the "update" Installer?
Hope this helps,
Darren.
10-16-2009 01:42 PM
Another option would be to create a seperate exe that the user runs only one time after the installation before running the main program. That exe would check for the existance of the ini file and create it if it does not exist. You would have to have some clear "readme first" instructions for the user, though.
Come to think of it, your main program could check for the existance of the ini file every time, and create it if it wasn't there. I know that is redundant and a poor use of computing resources, but it would work. Would there ever be a time when the ini file could get deleted? If so, then this method would solve it.