将文件包装在一个可执行文件包中 [英] Wrap files in one executable package

查看:127
本文介绍了将文件包装在一个可执行文件包中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在一个可执行文件包中包装一堆文件(一个.exe,一个.xml,一些图片)。当用户启动这个可执行文件包时,包含在这个可执行文件包中的.exe应该运行。这可能是在Windows平台上的第一个地方?

我不是在寻找一个自解压zip或安装程序,因为他们都实际上移动新文件到硬盘。



为什么我要这个?我希望用户只有一个文件,以便它很容易分发。



提前致谢

Bart






感谢您的回答。我不得不承认,我不是一个应用程序开发人员,所以这对我来说有点新鲜。我实际上是一个Flash开发人员。我想要更具体些,并解释你们实际上正在做的事情:



我开发了以下文件:



$ ul
viewer.exe(一个flash独立查看器,通常这是一个编译的.swf文件,但是这个文件类型确实需要一个浏览器插件播放器来显示它自己。独立版本不)
$ content $
  • 具有不同种类图像的图像文件夹

  • >

    viewer.exe加载content.xml,使用content.xml中定义的内容(包含指向images文件夹中不同图像的链接)构建演示文稿。



    我的客户不太喜欢所有不同文件的完整结构,因为分发这些文件并不容易。所以我试图把所有的文件都包装在一个.exe或其他文件中:)

    我希望我更清楚一点。

    >

    如果您的解决方案之一仍然可以创建这种类型的包,请随时纠正和教育我:)

    Bart

    解决方案

    是否有任何理由不能使用嵌入式资源来处理XML /图像文件? $ b

    I'd like to wrap a bunch of files (an .exe a .xml, some images) in 1 executable package. When the user launches this executable package the .exe included in this executable package should run. Is this possible in the first place on the windows platform?

    What I'm not looking for is a self extracting zip or an installer because both of them actually move the new files to the harddisk.

    Why do I want this? I want the user to have just one file so that it is easily distributed.

    Thanks in advance

    Bart


    Thanks for your answers. I have to admit that I'm not an application developer so this is all a bit new to me. I'm actually a Flash developer. I'd like to be a bit more specific and explain you guys what I'm actually trying to do:

    I developed the following files:

    • viewer.exe (a flash standalone viewer, normally this is a compiled .swf, but this file type does need a browser-plugin-player to show itself. The stand alone version doesn't)
    • content.xml
    • images folder with different kinds of images

    The viewer.exe loads the content.xml, builts a presentation using the defined content in the content.xml (with links to different images in the images folder).

    My client doesn't really like the complete structure with all the different files because it isn't easy to distribute those files. So I'm trying to 'wrap' all the files in one .exe or something else :)

    I hope I'm a little bit more clear.

    If one of your solutions can still create this kind of package, please feel free to correct and educate me :)

    Bart

    解决方案

    Is there any reason you couldn't use embedded resources for your XML/image files?

    这篇关于将文件包装在一个可执行文件包中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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