写了一个SDK小程序,现在打算用setup factory7把它制作成安装程序,有好多地方不懂?
主要是安装程序要包含哪些文件
以下是我在调试窗口中看到的改程序需要加载的dll“永字牌POKER.exe”: 已加载“D:\study\过五关\Release\永字牌POKER.exe”,已加载符号。
“永字牌POKER.exe”: 已加载“C:\Windows\System32\ntdll.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\kernel32.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\user32.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\gdi32.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\advapi32.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\rpcrt4.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91\msvcr90.dll”,已加载符号。
“永字牌POKER.exe”: 已加载“C:\Windows\System32\imm32.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\msctf.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\msvcrt.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\lpk.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\usp10.dll”
“永字牌POKER.exe”: 已加载“C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 2010\mzvkbd3.dll”
“永字牌POKER.exe”: 已加载“C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 2010\kloehk.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\uxtheme.dll”
“永字牌POKER.exe”: 已加载“D:\QQDoctor\TSVulMon.DAT”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\ole32.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\oleaut32.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\shlwapi.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\psapi.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\System32\version.dll”
“永字牌POKER.exe”: 已加载“C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll”
“永字牌POKER.exe”: 已卸载“C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 2010\kloehk.dll”
线程 'Win32 线程' (0x149c) 已退出,返回值为 0 (0x0)。
“永字牌POKER.exe”: 已卸载“C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 2010\mzvkbd3.dll”
线程 'Win32 线程' (0x14a0) 已退出,返回值为 0 (0x0)。请问是不是以上dll,都必须包含在我的安装程序中?(我觉得有一些是系统自带的就不用包含了吧)
另外除了这些文件还要包含哪些?(可执行文件我知道要包含的,但是资源文件我不确定)
麻烦高人指点下

解决方案 »

  1.   

    打包时,把你程序要用到的.dll也加进去,即使你打包成功,别人安装时,如果他的电脑里面又没有这个.exe要用的DLL,肯定出错。其次,可以用你的VC 6.0里面自带的depends查看它用到的DLL
      

  2.   

    系统的dll不用打包,你只打包你自己制作的dll和你的exe还有资源文件
      

  3.   

    “永字牌POKER.exe”: 已加载“D:\study\过五关\Release\永字牌POKER.exe”,已加载符号。 
    “永字牌POKER.exe”: 已加载“C:\Windows\System32\ntdll.dll” 
    “永字牌POKER.exe”: 已加载“C:\Windows\System32\kernel32.dll” 
    “永字牌POKER.exe”: 已加载“C:\Windows\System32\user32.dll” 
    “永字牌POKER.exe”: 已加载“C:\Windows\System32\gdi32.dll” 
    “永字牌POKER.exe”: 已加载“C:\Windows\System32\advapi32.dll” 
    “永字牌POKER.exe”: 已加载“C:\Windows\System32\rpcrt4.dll” 
    ........
    LZ,这些又不代表有错,而且都已经包含在你项目中了
    永字牌POKER.exe”: 已卸载“C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 2010\kloehk.dll” 
    线程 'Win32 线程' (0x149c) 已退出,返回值为 0 (0x0)。 
    “永字牌POKER.exe”: 已卸载“C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 2010\mzvkbd3.dll”这儿该是有问题了。可能有包冲突或者看看可能有帮助 http://support.microsoft.com/kb/187684/zh-cn
      

  4.   

    根据这个..你的安装程序需要:* 你的程序和你的程序使用的资源
    * Windows Installer 3.1 Redistributable (download.microsoft.com 下载)
    * Visual C++ 2008 Redistributable Package (x86) (download.microsoft.com 下载)