LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

install file only if it`s not there

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

0 Kudos
Message 1 of 4
(2,901 Views)

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.

Jan Kniewasser | Applications Engineer | Tel.: +49 89 7413130 | Fax: +49 89 7146035

»
Message 2 of 4
(2,867 Views)

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.

Message 3 of 4
(2,862 Views)

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.

0 Kudos
Message 4 of 4
(2,847 Views)