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

removal of already installed components in basic msi project


3 replies to this topic

sanjeevbishnoi

sanjeevbishnoi
  • Full Members
  • 30 posts

Posted 15 July 2014 - 04:46

Hi,

 My project is of basic msi type.I have create a executable in exe format and installed.

But for some minor changes i have upgrade setup and run exe again in that case exe reinstall same components but uninstall custom folder

that were created when application run.

For example:

 

First i installed application have one component that include following folder:

1.lib

2.src

 

now i run my application and application create some file and now in destination following folder exist:

1.lib

2.src

3.file(created by application)

 

because of some changes i create minor upgarde and installed exe again on same location and that installed following components:

1.lib

2.src

and remove .file(created by application)

 

why this problem occur deletion of file file(created by application) folder

 

Please suggest.


Edited by sanjeevbishnoi, 15 July 2014 - 05:11.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 15 July 2014 - 09:45

Check the RemoveFile table in your msi, maybe there's an entry to delete the folder. Or generate a log during the update to see who/what is deleting the folder.



sanjeevbishnoi

sanjeevbishnoi
  • Full Members
  • 30 posts

Posted 15 July 2014 - 11:12

Thank you  for quick reply.

There is no entry of delete folder in RemoveFile table.

I have also trying with XCOPY for copying folder that also include subfolders command but it's failed.

 

XCopyFile ("C:\\Program Files (x86)\\TISWebRTMService\\RTMServer\Common\\DTCOData","C:\\Sanjeev", COMP_UPDATE_DATE | INCLUDE_SUBDIR);

 

it throws -2147024894 error


Edited by sanjeevbishnoi, 17 July 2014 - 13:16.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 18 July 2014 - 13:47

Generate a log during the update to see who/what is deleting the folder.