This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Component Issue
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 11, 2011
09:25 PM
Component Issue
I have an issue with the xml file. It always get overwritten even if I have set the property of the component not to overwrite. I have a Custom action which copies the old xml into the folder below MoveFiles in installation sequence.
Requirements:
1. Custom action copies the old xml file from a location on the computer to InstallDir. It runs after folder creation
2. Using XML File changes I add an entry in the existing xml file
3. If the xml file exists, then the installer should not over write is. Xml compoenent has following properties: Permanent= Yes, Never overwrite: Yes, Shared: Yes. I also added a condition on this component but it is still overwritten!
Msi log:
MSI (s) (78:90) [14:06:25:149]: Executing op: FileCopy(SourceName=MYINST~1.XML|MyInstallerConfig.xml,SourceCabKey=MyInstallerConfig.xml,DestName=MyInstallerConfig.xml,Attributes=16384,FileSize=920,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,,,InstallMode=58982400,HashOptions=0,HashPart1=1306479969,HashPart2=-2047967510,HashPart3=1994943320,HashPart4=642583378,,)
MSI (s) (78:90) [14:06:25:159]: File: C:\Program Files\MyInstaller\MyInstallerConfig.xml; Overwrite; Won't patch; Existing file is unversioned and unmodified - hash doesn't match source file
MSI (s) (78:90) [14:06:25:159]: Source for file 'MyInstallerConfig.xml' is compressed
InstallFiles: File: MyInstallerConfig.xml, Directory: C:\Program Files\MyInstaller\, Size: 920
MSI (s) (78:90) [14:06:25:159]: Re-applying security from existing file.
MSI (s) (78:90) [14:06:25:159]: Verifying accessibility of file: MyInstallerConfig.xml
Thanks in advance for you help.
Requirements:
1. Custom action copies the old xml file from a location on the computer to InstallDir. It runs after folder creation
2. Using XML File changes I add an entry in the existing xml file
3. If the xml file exists, then the installer should not over write is. Xml compoenent has following properties: Permanent= Yes, Never overwrite: Yes, Shared: Yes. I also added a condition on this component but it is still overwritten!
Msi log:
MSI (s) (78:90) [14:06:25:149]: Executing op: FileCopy(SourceName=MYINST~1.XML|MyInstallerConfig.xml,SourceCabKey=MyInstallerConfig.xml,DestName=MyInstallerConfig.xml,Attributes=16384,FileSize=920,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,,,InstallMode=58982400,HashOptions=0,HashPart1=1306479969,HashPart2=-2047967510,HashPart3=1994943320,HashPart4=642583378,,)
MSI (s) (78:90) [14:06:25:159]: File: C:\Program Files\MyInstaller\MyInstallerConfig.xml; Overwrite; Won't patch; Existing file is unversioned and unmodified - hash doesn't match source file
MSI (s) (78:90) [14:06:25:159]: Source for file 'MyInstallerConfig.xml' is compressed
InstallFiles: File: MyInstallerConfig.xml, Directory: C:\Program Files\MyInstaller\, Size: 920
MSI (s) (78:90) [14:06:25:159]: Re-applying security from existing file.
MSI (s) (78:90) [14:06:25:159]: Verifying accessibility of file: MyInstallerConfig.xml
Thanks in advance for you help.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 14, 2011
03:26 AM
Try reading file versioning rules.
http://msdn.microsoft.com/en-us/library/aa368599(v=vs.85).aspx
This might help.
http://msdn.microsoft.com/en-us/library/aa368599(v=vs.85).aspx
This might help.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)