Hello Catalin,
Firstly please accept my apologies for delay in reply.
As you suggested, I have created sample AIP project similar to our existing project. You can go through AIP project which generates xml file to save needed data, dumps some dll in installation directory & has XML search which we require for
MSI Modify & Upgrade
XML search works fine for MSI Modify for both cases mentioned below.
But when we perform Repair(through Right Click on MSI) for Case 1, configuration file changes. As AI properties which are set empty in .aip project takes empty node values causing change in previously saved data.
We don't want our xml data to be changed on Repair which we are storing while
First Time Install
You can follow below test cases for MSI Repair issue.
Case 1 - XML Search Path is
[ApplicationFiles_Dir]TestApplicationService.exe.config
Steps:
1)Set File Path as
[ApplicationFiles_Dir]TestApplicationService.exe.config in XML Search Tab
2)Build the MSI
3)Install MSI by providing information on New Dialog(Dlg containing server related info)
4)Perform MSI Modify for which XML search works fine.
5)Go to installation folder copy generated
TestApplicationService.exe.config
6)Right Click MSI. Select Repair option.
7)Go to installation directory copy
TestApplicationService.exe.config.
8)
Compare two files you will find change in xml nodes. (
*We don't to want change data saved on installation*)
9)Please refer
ApplicationFilesPath.PNG &
APPDIR_XMLFile.PNG
- ApplicationFilesPath.PNG (55.92 KiB) Viewed 10767 times
- APPDIR_XMLFile.PNG (46.21 KiB) Viewed 10767 times
Case 2 - XML Search Path is
C:\Program Files\TestCompony\TestApplicationService\ApplicationFiles\TestApplicationService.exe.config
Steps:
1)Set File Path as
C:\Program Files\TestCompony\TestApplicationService\ApplicationFiles\TestApplicationService.exe.config in XML Search Tab
2) Steps 2-7 are same as Case1
7)
Compare two files you will find both XMLS are same.
8)Please refer
CDrive_XMLFile.PNG &
CDrivePath.PNG/b] from attached zip.
Why xml data changes for Case 1 & not for Case 2 ?
We want to implement the Case -1 for which xml should not be changed after Repair as user may select any installation directory but,
How can we restrict xml change on MSI repair through Right Click as well as Repair through Maintenance Dlg ?
Please find attached project files for reference. (There was one dll in ApllicationsFiles folder that I had removed due file size issue)
Please go through attached file and suggest a solution so that first time install xml data remains same on both Repair cases(R Click Repair & Maintenance Repair)
Thanks & Best Regards,
Vishal