编辑预先存在的cab文件/安装程序文件 [英] editing pre-existing cab files/installer files

查看:218
本文介绍了编辑预先存在的cab文件/安装程序文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试为CD制作一个下载/安装文件,我从来没有这样做过,也没有写过任何类型的编码,所以我有点失落。当我们上次创建一个安装程序包(我还没有工作)时,我们使用了InstalShield,但是几十年前,我们无法再支付500美元的价格。

I'm currently trying to make a download/install file for a CD, and I've never done this or written any type of coding before so I'm somewhat at a loss. When we last created an installer package (I wasnt employed yet) we used InstalShield, but that was decades ago, and we cant aford the 500$+ price to get it again.

目前我正在努力解决我们拥有的旧的下载包。有Windows Installer软件包(由InstalShield制造)称为CD Cat v6.msi,然后是另一个名为CDcatv6.exe的文件(将为客户浏览选项启动一个窗口),然后是一个名为Data.cab的文件,其中包含所有文件中的整个目录。

Currently I'm trying to work off the old download package we have. There is the Windows Installer Package (made by InstalShield) called CD Cat v6.msi, and then another file called CDcatv6.exe (wich launches a window for the customer to browse options) and then a file called Data.cab which has all the files for the entire catalog in it.

我在想,也许我可以用现有的信息替换很多这些文件。使用我的v7.exe文件替换CDcatv6.exe文件(但是更改名称以使其CDcatv6.exe),然后将Data.cab文件中的所有文件替换为当前文件。但这是一个巨大的问题。

I was thinking perhaps I can just replace a lot of those files with the current information. Replace the CDcatv6.exe file with my v7.exe file (but change the name so its CDcatv6.exe) and then replace all the files in the Data.cab file with the current ones. But thats turning out to be a huge issue.

我做了一些搜索来了解.cab文件是什么,并下载了Cab File Maker 2.0(经过相当多的搜索!)。我有一个困难的时候使用它,虽然,因为它想要所有的文件,我把它使.cab在.ddf格式。我不知道这是什么,更不用说如何做到。我尝试使用另存为来执行,但是由于我需要的所有文件都是PDF格式的,所以我不能选择它,我也不能将文件导出到它。

I did a bit of searching to learn what a .cab file was, and downloaded the Cab File Maker 2.0 (after quite a bit of searching!). I'm having a difficult time using it though, as it wants all the files that I put in it to make the .cab to be in .ddf format. I have no idea what that is, much less how to make it. I tried using 'save as' to do it, but since all the files I need are PDF's theres no option for it and I cant export the files to it either.

我尝试着查看别人制作Cab文件的其他方式,但我不知道他们谈论的许多文件类型或程序。我不是一个程序员,但我必须快速学习,所以任何有关如何做这些的信息将会有所帮助。甚至可以无缝地替换所有文件并使其正常工作吗?或者是否有更简单的方法来创建客户可以点击并将其下载到桌面的填充?

I tried looking at other ways that people made Cab files, but I dont know many of the file types or programs their talking about. I'm not a programmer by any means, but I have to learn quick I guess, so any information on how to do this will help greately. Is it even possible to replace all the files seamlessly and have it work properly? Or is there an easier way to create a fill that the customer can click on and have it download to their desktop?

提前感谢。

推荐答案

我不认为Data.cab的简单编辑将会工作。安装程序逻辑存储在其他InstallShield文件中。它可以工作,当且仅当文件集是相同的,我的意思是没有文件更改其名称,没有新的文件添加,没有新的注册表项要求等。

I don't think simple editing of Data.cab will work. There is installer logic stored in other InstallShield files. It could work if and only if the file set is the same, I mean no files changed its names, no new files added, no new registry entries required etc.

创建一个CAB文件,使用 cabarc.exe 从Microsoft Windows SDK。

To create a CAB file, use cabarc.exe from Microsoft Windows SDK.

创建全新的安装程序可能是一个更好的选择。看看这个工具来创建安装程序:

Creating a brand new installer may be a better option. Look at this tools for creating installers:

  • Advanced Installer
  • NSIS
  • WiX toolset (with tutorial)

这篇关于编辑预先存在的cab文件/安装程序文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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