08-01-2002 02:15 PM
08-01-2002 03:05 PM
03-11-2011 06:42 AM
Does this problem still exist in LV2009 and later?
I did not find a solution except calling a batch file containing xcopy commands, called by the installer:
Build Installer - Properties - Advanced - run executable at end of installation.
A rather old fashioned method!
Thanks for any hints
Klaus
03-06-2018 11:52 PM
+1 Even a few years later. Using 2016 I'm struggling to find a solution to this issue. The post-build actions doesn't help either since the installer has already decided not to replace the files by then.
Have anyone found a nice solution for this yet?
03-07-2018 06:21 AM
I haven't had to work with this, but here are my thoughts from the outside looking in on how to do it.
What if the configuration files were given another name from the usual? Then on a post install action, the program deletes the existing files and renames the new replacements back to the original name?
03-07-2018 06:23 AM
@FredCirr wrote:
Have anyone found a nice solution for this yet?
No matter what the installer does (replace the ini files or it keep the originals) it will offend someone.
So a DIY solution based on a per project basis seems like the only solution to me.
For instance... The program starts. Check if there is a fresh installer ini file. If so, copy\merge\replace with modified ini file and save it as a modified ini file. Delete the installer ini file. Next time it won't be there, so use the modified ini file. You'd need some scheme to tell the application what to do with keys: delete it, modify it, add it, etc...
03-07-2018 08:11 AM
For our issues, setting the source file settings for the specific files to "Vital" did the trick.
04-18-2019 10:28 AM
Changing the source file setting to "Vital" didn't fix this for me. Nor do I think it should since, according to the help, "Vital" is not a "force overwrite". It just means that the installation will fail if the file fails to install. When I make my INI "vital", the installation runs and still doesn't overwrite the INI file. I ended up using an NI Package to install the INI file. Packages have their own set of issues, but at least this wasn't one of them.
10-07-2024 10:57 AM
Posting here since I'm annoyed there STILL isn't an option in the installer creator to "overwrite existing" and to hopefully scrounge some Kudos for a couple ideas...
Have Post/Pre Build VI For Installers (yes, you can run an executable after installing, but a VI would be nice since it could be baked in)
Source File Setting Choosing to Overwrite