PDA

View Full Version : Component/File "Always Overwrite"?



NewsArchive
12-04-2001, 01:00 AM
In the old Installshield Professional, there was an "always overwrite"
option for file installation that would basically override any file
versioning or date considerations.

I need to use this since my developers are more than somewhat handicapped.

Is there any way to do this with IS Developer? I tried using the MoveFile
action to simply move the old file to a backup location first, but since my
file to install is of lesser version than the one that exists, it must have
already decided not to install the file. Basically:

If I manually delete the existing file, and then run the installation, it
will install the new file (lesser version).

If I have MoveFile move the file out of the installation directory during
installation, it will move the old file but not install the new file.

Any info would be appreciated. Thanks

NewsArchive
12-04-2001, 01:00 AM
This is a limitation of MSI technology. It won't let you always overwrite a
newer version file with a lesser version.

Look at XCopyFile. This is an InstallScript function. If this is a
Standard project, you will have to call it in the main script-setup.rul.

If a Basic project, you can create an InstallScript custom action and call
the function.

Hope this helps a little.

Kent

"Mike" <MNacey@TeleTracking.Com> wrote in message
news:3c0cd1bf$1@news.installshield.com...
> In the old Installshield Professional, there was an "always overwrite"
> option for file installation that would basically override any file
> versioning or date considerations.
>
> I need to use this since my developers are more than somewhat handicapped.
>
> Is there any way to do this with IS Developer? I tried using the MoveFile
> action to simply move the old file to a backup location first, but since
my
> file to install is of lesser version than the one that exists, it must
have
> already decided not to install the file. Basically:
>
> If I manually delete the existing file, and then run the installation, it
> will install the new file (lesser version).
>
> If I have MoveFile move the file out of the installation directory during
> installation, it will move the old file but not install the new file.
>
> Any info would be appreciated. Thanks
>
>

NewsArchive
12-04-2001, 01:00 AM
repost:

You can always overwrite a file using ORCA (maybe direct editor)
open the msi file
in the table RemoveFile add a row
with the file and folder (each folder have a component name)

then the file is deleted before the new is installed....

"Mike" <MNacey@TeleTracking.Com> wrote in message
news:3c0cd1bf$1@news.installshield.com...
> In the old Installshield Professional, there was an "always overwrite"
> option for file installation that would basically override any file
> versioning or date considerations.
>
> I need to use this since my developers are more than somewhat handicapped.
>
> Is there any way to do this with IS Developer? I tried using the MoveFile
> action to simply move the old file to a backup location first, but since
my
> file to install is of lesser version than the one that exists, it must
have
> already decided not to install the file. Basically:
>
> If I manually delete the existing file, and then run the installation, it
> will install the new file (lesser version).
>
> If I have MoveFile move the file out of the installation directory during
> installation, it will move the old file but not install the new file.
>
> Any info would be appreciated. Thanks
>
>

NewsArchive
12-05-2001, 01:00 AM
I would simply change the file property (version) to a very high value. This
way is more selective.



Regards

George Furnell

Development Bank of Southern Africa



"Mike" <MNacey@TeleTracking.Com> wrote in message
news:3c0cd1bf$1@news.installshield.com...
> In the old Installshield Professional, there was an "always overwrite"
> option for file installation that would basically override any file
> versioning or date considerations.
>
> I need to use this since my developers are more than somewhat handicapped.
>
> Is there any way to do this with IS Developer? I tried using the MoveFile
> action to simply move the old file to a backup location first, but since
my
> file to install is of lesser version than the one that exists, it must
have
> already decided not to install the file. Basically:
>
> If I manually delete the existing file, and then run the installation, it
> will install the new file (lesser version).
>
> If I have MoveFile move the file out of the installation directory during
> installation, it will move the old file but not install the new file.
>
> Any info would be appreciated. Thanks
>
>