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

Remove Files with Patch from Patch Design


6 replies to this topic

julienpec

julienpec
  • Full Members
  • 36 posts

Posted 30 July 2014 - 12:43

Hi,

 

I guess it's should be possible to remove a file installed with Patch Design but it doesnt work for me.

 

I have built 2 releases :

 

- The older has the files

- The 2 nd doesnt have the files.

 

My RemoveFile Table is completed.

 

Patch Design compares the 2 releases to build and generate the patch.

 

I install the 1st release on the computer and then i lauch the Patch.

 

The file i want to remove is still here.

 

What am i missing ?

 

"Ignore missing files" is unchecked.

The MSI Command line is : REINSTALLMODE=omus REINSTALL=ALL

 

In "Latest1" i didnt put anything in "Include Whole File" because, as i said, the file is removed in my release.

 

Well, i am lost :(

 



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 30 July 2014 - 13:00

Did you also remove the Components associated with these files? Are there any errors in the log?



julienpec

julienpec
  • Full Members
  • 36 posts

Posted 30 July 2014 - 14:55

No i didnt remove the component, it seems i've made mistakes, i'm going to remake the creation of my patch.


Edited by julienpec, 30 July 2014 - 15:13.


julienpec

julienpec
  • Full Members
  • 36 posts

Posted 30 July 2014 - 15:43

If i remove the component, the config on the RemoveFile Table is removed as well, that generates errors when i build the patch.

 

Maybe it's better to use an upgrade to delete a file i dont know.



julienpec

julienpec
  • Full Members
  • 36 posts

Posted 30 July 2014 - 15:56

It seems that the patch doesnt "know" that a file has been removed between the 2 releases.

 

The files which is removed is called hostname.txt (in ALLotherfiles6) .

 

When i read the end of the PatchCreation.log, nothing about it appears :(

 

  PERF INFO: File Info Lookup Time:  0 ms
INFO Comparing Files: C:\InstallShield 2013 Projects\DIGIMAX AVL_SERV 2.3.0\Product Configuration 1\2.3.000\DiskImages\DISK1\Tetra\PalierActif\Exe\Avl\Agents\GFRT_SNMP.reg C:\InstallShield 2013 Projects\DIGIMAX AVL_SERV 2.3.0\Product Configuration 1\2.3.001\DiskImages\Disk1\Tetra\PalierActif\Exe\Avl\Agents\GFRT_SNMP.reg...
INFO Comparing bytes...
  PERF INFO: File Info Lookup Time:  0 ms
  PERF INFO: C:\InstallShield 2013 Projects\DIGIMAX AVL_SERV 2.3.0\Product Configuration 1\2.3.000\DiskImages\DISK1\DIGIMAX AVL_SERV 2.3.0.msi 130 ms
  PERF INFO: C:\InstallShield 2013 Projects\DIGIMAX AVL_SERV 2.3.0\Product Configuration 1\2.3.001\DiskImages\Disk1\DIGIMAX AVL_SERV 2.3.0.msi 133 ms
  SCHEMA: Table: Patch has mismatched schema (or missing column) for: Header
  PERF INFO: Time spent generating the patch transform:  97 ms
  INFO: Phase IV:    Entering Generate Payload.
  PERF INFO: Time spent generating the payload:  92 ms
  INFO: Phase V:    Entering Generate MSP.
  INFO:          Generating Patch Metadata.
  PERF INFO: Time spent stuffing everything into the MSP:  11 ms
  INFO: Temporary folder is about to be cleaned out and deleted: C:\Windows\Temp\ISP403.tmp
  INFO: Patch created successfully.
  PERF INFO: Total Patch Creation Time:  379 ms
 



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 31 July 2014 - 14:45

Sorry if my post was misleading: you cannot remove a component. If you did so, this would result in problems, such as orphaned files.

 

Usually, the contents of a component should not be modifed. If you remove a file (which is not the key file) from a component, the file gets orühaned. You can use the removeFile table to delete sch a file, but I don't think it takes effect during an update, only during install or uninstall.



julienpec

julienpec
  • Full Members
  • 36 posts

Posted 31 July 2014 - 16:04

Ok thanks a lot Stefan,

 

I'll use minor or major upgrade to remove files.

Patch'll be used for update fileS or add files. .