Re-Packaging an application which is overwriting installation files
I have a request for repackaging an application, which force installs the application once again, if it is already installed.
The requestor wants it to rather repair any corrupt files, instead of all of the application getting re-installed.
Is there a way to achieve this with Installshield?
Answers (4)
use the /f option if the excutable is an msi.
I'm not sure I undestand your goal with the repackaging. As I understand it you want to install an application and if the application get any problem with corrup files it should not be repaired but the install should be executed one more time? If this is the case I'm not sure exactly what to do but I guess that there are some actions under execute sequence that needs to be removed so that the msi product code is not registered. My guess is RegisterProduct, but I have never tested it, so it might be some other actions aswell.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa371162(v=vs.85).aspx
In Installshield I believe you can override the file version and give it something really high like 65550.0 or something to that effect. I have never tried it. I am not sure if I answered your question correctly so for doing a repair on corrupted files the file(s) need to be a key file in each component.
Run the origional install with a /r switch and it will repair the application.
Comments:
-
Based on the limited information you've provided, I think this is the only straightforward way to do what you're talking about... and you dont need installshield for it.
Was the app initially installed via setup.exe, a previously repackaged MSI, or vendor MSI?
This will determine how and if you can do this. - Moedius 12 years ago -
it is a setup.exe - adilrathore 12 years ago