Will MSI replace an existing File?
Suppose there is already a file in %programdata%\Microsoft\book1.xlsx . I have added a component in MSI which is installing this 'book1.xlsx' file (which I have modified and then embedded into a cab file in MSI.) in the same location. Will the MSI replace this file or will it skip installing it if it finds that there is already a file named 'book1.xlsx' in the location?
1 Comment
[ + ] Show comment
-
so finally it works... - jonsnow 7 years ago
Answers (5)
Please log in to answer
Posted by:
anonymous_9363
7 years ago
@jonsnow: Most questions here concern automated deployment, where there's no user sitting in front of the screen.
@rileyz: XLAs don't populate their headers with version information (more's the pity)
@OP: Why not use the RemoveFile table to remove it? The RemoveFiles action runs before InstallFiles so provided you use the correct attribute in the table (to trigger removal when installing as well as uninstalling), Bob's your uncle. You won't be asking what the correct attribute is, will you? We don't want to send more LMGTFY links.
@rileyz: XLAs don't populate their headers with version information (more's the pity)
@OP: Why not use the RemoveFile table to remove it? The RemoveFiles action runs before InstallFiles so provided you use the correct attribute in the table (to trigger removal when installing as well as uninstalling), Bob's your uncle. You won't be asking what the correct attribute is, will you? We don't want to send more LMGTFY links.
Comments:
-
+1 LMGTFY :-) - Pressanykey 7 years ago
Posted by:
jonsnow
7 years ago
Posted by:
rileyz
7 years ago
- Read this on MSDN.
- Drink some tea, have a ponder on the subject.
- Assign the file book1.xlsx a version whatever authoring tool you use, probably Installshield.
(:
Posted by:
Ishita Tripathi
7 years ago