Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a xml file in the setup folder of a windows application. Now during the installation how do i copy this file to my application's folder so that it can be copied to this path C:\Program Files (x86).......

I can not add the file to the application folder in the setup project because the content of file might change after build of setup project.

Its an external xml file in located inside set up folder. and I want to copy this file on installation path(C:/Program Files...) during installation. I will give this file with msi installer in side installer folder.

Please provide any idea if someone have....
Posted
Comments
[no name] 1-Nov-14 11:53am    
A compiled executable constructed into an installer by InstallShield for example; is where you would amend this operation. When building your installer; almost all installers give options for adding files with your application executable to the install directory, along with alterations to Windows registry etc...

Since your installer is MSI already, you can't do this. For example sake; you would need to recompile your installer with that setting to add a file during install from the likes of InstallShield.

What compiler are you using to build the installer?
VipinKumar Maurya 2-Nov-14 22:11pm    
I am using Visual Studio to build my installer
Subramanyam Shankar 7-Mar-15 1:50am    
you need to over ride the installer class and have a code to copy the xml file from your folder during installation to the destination folder.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900