Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Add new file using Patch.


3 replies to this topic

Devang Parmar

Devang Parmar
  • Members
  • 64 posts

Posted 09 November 2001 - 12:06

Hello Friends,

I want to add new file using Patch. I am using Windows Installer 1.5 version. I have previous version and new version of my application. I added the new file by creating new feature and a new component under that new feature.

The log file of Patch says

Patch API could not create a small patch; using whole upgraded file. and lists the new file which I added.

This means new file have been there in update.exe, but when I run this patch on previous version this new file doesnot get install.

I did changed Package Code for making new msi.

Am I doing something wrong ?

Thanks,
Devang.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 November 2001 - 20:54

Did you follow the patching tips on this site? Namely not using REINSTALL=ALL but REINSTALL=<List of existing features> ADDLOCAL=NewFeature ?

Devang Parmar

Devang Parmar
  • Members
  • 64 posts

Posted 12 November 2001 - 10:54

Hello Stefan,

Here are the steps I followed :

1. Create installation with uncompressed option. (I have only two features - Xecute and Icons)
2. Added new feature and added one file which in effect created a new component under the new feature. (new feature is named - NewAdded)
3. Changed Package code and Product Version (from 1.00.011108 to 1.00.011109).
4. Prepared another installation with uncompressed option.
5. Created patch specifying these two msi files and chose not to create update.exe

Now I used following line

msiexec.exe /p AppPatch.msp REINSTALLMODE=voums REINSTALL=Xecute,Icons ADDLOCAL=NewAdded

This doesnot add the new file which is under the new feature.

Any idea ?

Devang.


Devang Parmar

Devang Parmar
  • Members
  • 64 posts

Posted 14 November 2001 - 13:49

Hello,

I am doing following steps to create my patch. Does anyone can guide me in this ?

I tried previous build with version number 1.0.0 and new build with 1.0.1

In new version I am adding new feature and to that new feature a new file.

The patch which I created doesnot add new file. Here are the steps I follow :

Create two different builds by changing package code and version number.
Newest build has new feature and new component added.

Create patch from the Windows Installer :

1. Welcome window : Press Next.
2. Patch creation proejct : Create a new patch giving path and name of the
patch file.
3. Previous Packages :
   File Name : Select the first msi file with version number 1.0.0
   Missing Source Files : Ignore while creating patch
   Version to check : Check major, minor and upgrade version
   Version relationship : New version >= Previous Version
   Match product code : Yes
   Match upgrade code: Yes
   Match language : No
   C++ symbol files :
4. Newer Package: Select new msi file with version number 1.0.1
5. Patch package identity : Select .msp file name and keep the GUID as it
is.
6. Previous Patches : As there are no previous patches
   Diskid - 2 and
   File sequece - 104 (supplied by Windows installer)
7. Patch creation settings :
   Allow version number to default and Allow product code  to differ and
previous versions I listed earlier is selected.

And I am creating patch.

Is there any thing I am doing wrong ?

Devang.