Hi drini,
In your code snippet, the parameters are:
1. @"F:\test\daemon\daemon4304-lite"
2. @"F:\test\daemon\daemon4304-lite.exe�/span>
The first parameter is the rar file path and the second parameter is the files which need to be packaged. So we need to change the first parameter to
@"F:\test\daemon\daemon4304-lite.rar"
Please read the reply I posted at Thursday, July 30, 2009 7:19 AM which includes some examples in this thread: http://social.msdn.microsoft.com/Forums/en-US/winformsapplications/thread/a34c88be-1174-4899-9ff1-039098257d85.
Let me know if this does not help.
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.