
ykk1571.552491392979287E12 asked a question.
Replace files during Install
Hi All,
I am using Install Shield 12 for creating installers for my application.
I am facing a weird problem.
I have an installer (say Prog1) which copies few files (Dll's) on installation. Now my installer also copies some of the same files in the same location.
The default property of Install Shield is that it checks the version of the Dll file and the greater version remains.
But my requirement is that whatever may be the case, the original files needed to be replaced with the files from my installer.
For this, i have tried using the option REINSTALLMODE=amus but it works only with Repair. It does not work with fresh installation.
That means, on repair the files are getting replaced (irrespective of the file versions). But on fresh installation, it is not happening.
is there any way (or property) that all the files in the fresh installation also should replace the original files irrespective of the file version.
Thanks and Regards
YKK Reddy
" The REINSTALLMODE property is a string that contains letters specifying the type of reinstall to perform. Options are case-insensitive and order-independent. This property should normally always be used in conjunction with the REINSTALL property. However, this property can also be used during installation, not just reinstall. "
So, yes, the REINSTALLMODE property does work when installing, and I can confirm it does the job. If it doesn't then you are facing another problem. I would recommend you to produce a detailed log with the /Lv*x option to see what's going on with the files.
But I am not sure using the REINSTALLMODE property this is the way to go. You might want to use the "Always overwrite" flag for individual files instead of using such a global property.
On top of that, you must ask yourself why you need to use such a flag.
It is usually the symptom of a team that does not follow a strict versioning policy. And this should be your concern.
I hope that helps.
Regards