Hi,
How to don't overwrite a file if this file exist (same name) ? My file don't have a version number but it is different from the old.
I try to use "Never Overwrite" property to Yes (components), but after the installation, the old file is overwriteen.
Thanks in advance.
Daniel Luxembourger
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.
Don't overwrite a file if it's exist
Started by
daner06
, Apr 21 2008 16:51
5 replies to this topic
Posted 21 April 2008 - 17:14
Is this a Major Upgrade?
Did you generate a log file?
Did you generate a log file?
Stefan Krüger
InstallSite.org twitter facebook
Posted 22 April 2008 - 08:28
It's a major upgrade.
It's a part of my log File :
00878: (Unknown): Action 09:15:32 : InstallFiles. Copie des nouveaux fichiers
00879: (Server): MSI (s) (64:50) [09:15:32:809]: Executing op: ProgressTotal(Total=6144,Type=0,ByteEquivalent=1)
00880: (Server): MSI (s) (64:50) [09:15:32:809]: Executing op: SetTargetFolder(Folder=C:\Program Files\My Company Name\My Product Name\)
00881: (Server): MSI (s) (64:50) [09:15:32:809]: Executing op: SetSourceFolder(Folder=1\PROGRA~1\MYCOMP~1\MYPROD~1\|program files\My Company Name\My Product Name\)
00882: (Server): MSI (s) (64:50) [09:15:32:809]: Executing op: ChangeMedia(MediaVolumeLabel=DISK1,MediaPrompt=Insérez le disque : 1,,BytesPerTick=32768,CopierType=0,,,,,,IsFirstPhysicalMedia=1)
00883: (Server): MSI (s) (64:50) [09:15:32:809]: Executing op: FileCopy(SourceName=CAR.CDX,SourceCabKey=CAR.CDX,DestName=CAR.CDX,Attributes=8192,FileSize=6144,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,,,InstallMode=58982400,HashOptions=0,HashPart1=1228160480,HashPart2=902234954,HashPart3=489682415,HashPart4=8408444,,)
00884: (Server): MSI (s) (64:50) [09:15:32:809]: File: C:\Program Files\My Company Name\My Product Name\CAR.CDX; Overwrite; Won't patch; Existing file is unversioned and unmodified - hash doesn't match source file
00885: (Server): MSI (s) (64:50) [09:15:32:809]: Source for file 'CAR.CDX' is uncompressed, at 'C:\InstallShield 2008 Projects\TestNeverOverwrite\Product Configuration 1\Release 1\DiskImages\DISK1\program files\My Company Name\My Product Name\'.
00886: (Unknown): InstallFiles: File: CAR.CDX, Directory: C:\Program Files\My Company Name\My Product Name\, Size: 6144
00887: (Server): MSI (s) (64:50) [09:15:32:809]: Re-applying security from existing file.
00888: (Server): MSI (s) (64:50) [09:15:32:809]: Verifying accessibility of file: CAR.CDX
00889: (Server): MSI (s) (64:50) [09:15:32:825]: Note: 1: 2318 2: C:\Program Files\My Company Name\My Product Name\CAR.CDX
00890: (Server): MSI (s) (64:50) [09:15:32:825]: File will have security applied from OpCode.
00891: (Server): MSI (s) (64:50) [09:15:32:825]: Executing op: CacheSizeFlush(,)
00892: (Server): MSI (s) (64:50) [09:15:32:825]: Executing op: InstallProtectedFiles(AllowUI=1)
00893: (Server): MSI (s) (64:50) [09:15:32:825]: Executing op: ActionStart(Name=RegisterUser,Description=Inscription de l'utilisateur,Template=[1])
00894: (Unknown): Action 09:15:32 : RegisterUser. Inscription de l'utilisateur
00895: (Server): MSI (s) (64:50) [09:15:32:841]: Executing op: UserRegister(Owner= ,,ProductId=none)
00896: (Unknown): RegisterUser: {F0D898AC-5F4F-4CCE-9D50-377C2C899BD5}
00897: (Server): MSI (s) (64:50) [09:15:32:841]: Executing op: ActionStart(Name=RegisterProduct,Description=Inscription du produit,Template=[1])
00898: (Unknown): Action 09:15:32 : RegisterProduct. Inscription du produit
Why the is "Overwrite" in the log file whereas I have the property in the projet at Yes (Nerver overwrite).
I have InstallShield 2008.
Thanks.
Daniel Luxembourger
It's a part of my log File :
00878: (Unknown): Action 09:15:32 : InstallFiles. Copie des nouveaux fichiers
00879: (Server): MSI (s) (64:50) [09:15:32:809]: Executing op: ProgressTotal(Total=6144,Type=0,ByteEquivalent=1)
00880: (Server): MSI (s) (64:50) [09:15:32:809]: Executing op: SetTargetFolder(Folder=C:\Program Files\My Company Name\My Product Name\)
00881: (Server): MSI (s) (64:50) [09:15:32:809]: Executing op: SetSourceFolder(Folder=1\PROGRA~1\MYCOMP~1\MYPROD~1\|program files\My Company Name\My Product Name\)
00882: (Server): MSI (s) (64:50) [09:15:32:809]: Executing op: ChangeMedia(MediaVolumeLabel=DISK1,MediaPrompt=Insérez le disque : 1,,BytesPerTick=32768,CopierType=0,,,,,,IsFirstPhysicalMedia=1)
00883: (Server): MSI (s) (64:50) [09:15:32:809]: Executing op: FileCopy(SourceName=CAR.CDX,SourceCabKey=CAR.CDX,DestName=CAR.CDX,Attributes=8192,FileSize=6144,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,,,InstallMode=58982400,HashOptions=0,HashPart1=1228160480,HashPart2=902234954,HashPart3=489682415,HashPart4=8408444,,)
00884: (Server): MSI (s) (64:50) [09:15:32:809]: File: C:\Program Files\My Company Name\My Product Name\CAR.CDX; Overwrite; Won't patch; Existing file is unversioned and unmodified - hash doesn't match source file
00885: (Server): MSI (s) (64:50) [09:15:32:809]: Source for file 'CAR.CDX' is uncompressed, at 'C:\InstallShield 2008 Projects\TestNeverOverwrite\Product Configuration 1\Release 1\DiskImages\DISK1\program files\My Company Name\My Product Name\'.
00886: (Unknown): InstallFiles: File: CAR.CDX, Directory: C:\Program Files\My Company Name\My Product Name\, Size: 6144
00887: (Server): MSI (s) (64:50) [09:15:32:809]: Re-applying security from existing file.
00888: (Server): MSI (s) (64:50) [09:15:32:809]: Verifying accessibility of file: CAR.CDX
00889: (Server): MSI (s) (64:50) [09:15:32:825]: Note: 1: 2318 2: C:\Program Files\My Company Name\My Product Name\CAR.CDX
00890: (Server): MSI (s) (64:50) [09:15:32:825]: File will have security applied from OpCode.
00891: (Server): MSI (s) (64:50) [09:15:32:825]: Executing op: CacheSizeFlush(,)
00892: (Server): MSI (s) (64:50) [09:15:32:825]: Executing op: InstallProtectedFiles(AllowUI=1)
00893: (Server): MSI (s) (64:50) [09:15:32:825]: Executing op: ActionStart(Name=RegisterUser,Description=Inscription de l'utilisateur,Template=[1])
00894: (Unknown): Action 09:15:32 : RegisterUser. Inscription de l'utilisateur
00895: (Server): MSI (s) (64:50) [09:15:32:841]: Executing op: UserRegister(Owner= ,,ProductId=none)
00896: (Unknown): RegisterUser: {F0D898AC-5F4F-4CCE-9D50-377C2C899BD5}
00897: (Server): MSI (s) (64:50) [09:15:32:841]: Executing op: ActionStart(Name=RegisterProduct,Description=Inscription du produit,Template=[1])
00898: (Unknown): Action 09:15:32 : RegisterProduct. Inscription du produit
Why the is "Overwrite" in the log file whereas I have the property in the projet at Yes (Nerver overwrite).
I have InstallShield 2008.
Thanks.
Daniel Luxembourger
Posted 22 April 2008 - 08:54
I want to specify it's an update but the first install is not a MSI Project.
Daniel Luxembourger
Daniel Luxembourger
Posted 23 April 2008 - 10:55
Setting the component for CAR.CDX to "never overwrite" also requires that CAR.CDX os the key file of this component.
Stefan Krüger
InstallSite.org twitter facebook