Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi all,

I am developing an application in vb.net, Now i want to deploy my project in such a way
as it has to create a file in C:\windows at the time of installation.

and i want to write code for the content in file.

I tried custom actions but can't figure out properly.

Can anyone help me with this.
Thanks
Srinivas
Posted
Comments
Sergey Alexandrovich Kryukov 29-Sep-14 1:40am    
Bad idea. Why? why?!
And what do to with the system which don't have drive "C:"?
(I tired to repeat my answer: yes it can happen, easily. Don't worry).
—SA

1 solution

Do not attempt to write to the Windows or any other system directory. You can write to the user's program data directory or all users' program data directory.

What are you trying to accomplish?
 
Share this answer
 

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