尖锐的自解压包 [英] csharp & self extracting package

查看:74
本文介绍了尖锐的自解压包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我用C#制作了项目,它包含4个文件:
selfintall.exe
sysdomino.exe
d.exe
as.dll
文件selfinstall.exe会将文件复制到:
sysdomino到"c:\ windows \ sysdomino.exe
d和as.dll转换为"c:\ file \"
文件是目录,它在复制文件之前就存在"
所以我使用内置的Windows IExpress向导制作了程序包
然后选择selfinstall.exe作为安装程序"

当我运行程序包时,会出现selfinstall窗口,当我在selfinstall.exe中按按钮复制文件时,它给了我错误:
sysdomino.exe和as.dll文件中的找不到文件",但它会复制文件d.exe

这样任何人都可以帮助我
我希望我能以良好的方式解释问题.

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

推荐答案

如果在C#中,为什么没有清单文件?

如果找不到文件,则它们一定不存在.您是在查找应用程序正在运行的目录,还是只是假设该目录为当前目录?您需要Application.ExecutingDirectory或类似的东西.

此外,即使在以管理员身份运行的情况下,也很难在Vista和Windows 7等系统上将文件复制到c:\ windows中.
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.


这篇关于尖锐的自解压包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆