阅读:2931回复:2
how to pack VB6application |
|
最新喜欢:wingma... |
沙发#
发布于:2007-03-02 19:31
一、需要加入VB的支持文件,可到
http://www.jrsoftware.org/download.php/vb6sp6sys.zip 下载。然后解压到本地文件夹vbfiles。 二、粘贴以下行到inno setup的项目文件中: ; begin VB system files ; (Note: Scroll to the right to see the full lines!) Source: "vbfiles\stdole2.tlb"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regtypelib Source: "vbfiles\msvbvm60.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver Source: "vbfiles\oleaut32.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver Source: "vbfiles\olepro32.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver Source: "vbfiles\asycfilt.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile Source: "vbfiles\comcat.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver ; end VB system files ;Installing OCXs Source: "ComCtl32.ocx"; DestDir: "{sys}"; Flags: restartreplace sharedfile regserver 三、设置管理员权限 [Setup] ... PrivilegesRequired=admin ... enjob! |
|
|
板凳#
发布于:2007-03-05 16:22
you ar right ,
but , the ComCtl32.ocx need manul find. Thanks. 你是如何理解如下文字的呢, Translating a SETUP.LST file created with the P&D wizard The following information was supplied by Michael Reitz. 1. Use the P&D wizard to generate the Setup.lst file. 2. Look through the Setup.lst file and do the following: o Use the suggested "VB system files" entries from above for the [Bootstrap Files] section. You don't need to include xxxSTKIT.DLL (i.e. VB6STKIT.DLL). The VB6xx.DLL (i.e. VB6DE.DLL) contains the "International Resources for Visual Basic Environment". You may include it in your installation for getting VB error messages and some VB standard dialogs in your native language. o Create [Files] section entries for all rows of the [Setup1 Files] section, translating the VB constants/flags using the following rules: $(AppPath) {app} constant $(WinSysPathSysFile) {sys} constant $(WinSysPath) {sys} constant $(DLLSelfRegister) regserver flag $(Shared) sharedfile flag $(TLBRegister) regtypelib flag $(MSDAOPath) {dao} constant $(EXESelfRegister) use the [Run] section for "MyApp.exe /RegServer" use the [UninstallRun] section for "MyApp.exe /UnregServer o 3. Check the REDIST.TXT files (which come with your developer tools) for information about which files you are allowed to redistribute. |
|