Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi every one ,
i made project in c# and it contains 4 files :
selfintall.exe
sysdomino.exe
d.exe
as.dll
the file selfinstall.exe will copy files to :
sysdomino to "c:\windows\sysdomino.exe
d & as.dll to "c:\file\"
"file is directory and its exist before copy files"
so i made package by using builtin windows IExpress wizard
and choose selfinstall.exe as the "installprogram"

when i run the package the selfinstall window appears and when i pressed the buttom in selfinstall.exe to copy files it gave me errors :
"file couldn't be found " to files sysdomino.exe and as.dll but it copy the file d.exe

so any one can help me
i hope that i explained the problem in goodway
Posted

1 solution

If it's in C#, why are there no manifest files ?

If it can't find the files, they must not be there. Do you look up the directory your app is running in, or just assume that is the current directory ? Application.ExecutingDirectory or something like that is what you need.

Also, you're going to have a tough time copying files into c:\windows on systems like Vista and Windows 7, even running as admin.
 
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