减少C#中的设置文件大小 [英] Reduce setup file size in C#

查看:104
本文介绍了减少C#中的设置文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我已经完成了一个基于社区的软件,它是一个完整的基于桌面的独立应用程序。我需要在机智应用程序中分发大量数据。我使用SQL compact DB作为后端。数据大小约为250 MB。



我的问题是,当我创建安装程序文件时,安装文件将达到265 MB,这非常大。因此,想要在不影响任何数据丢失的情况下减少设置文件大小。



我期待的空闲大小为100 MB。有人可以帮我解决这个问题吗?





谢谢。



我尝试过的事情:



没有想法如何实现这一要求。

Hi,

I have completed a community based software and it is a complete desktop based stand alone application. I need to distribute lots of data along wit application. I am using SQL compact DB as backend. Data is about 250 MB in size.

My issue is, when i am creating Setup file setup file is coming to 265 MB which is very big. Hence, wanted to reduce setup file size without compromising any data loss.

Idle size i am expecting is 100 MB. Can anybody help me how i can acheive this?


Thanks.

What I have tried:

No Idea how to acheive this requirement.

推荐答案

如果您的数据大小为250MB,那么除非您可以压缩它(并且您可能需要尝试SQL Compact Compacting(维护数据库(SQL Server Compact) [ ^ ]),ZIP等等,你不会有任何明显的缩小规模。 />


老实说,除非您的数据库中有大量冗余信息,否则减少50%以上的大小是非常不可能的 - 这在很大程度上取决于您的数据是什么类型的数据存储它。
If your data size is 250MB then unless you can compress that (and it may be possible you'd have to experiment with SQL Compact Compacting (Maintaining Databases (SQL Server Compact)[^]), ZIP, and suchlike you aren;t going to get any appreciable reductyion in size.

To be honest, unless there is a lot of redundant info in your DB, a reduction of over 50% in size is very unlikely - it will depend hugely on what your data is and what type of data you store it as.


抱歉拒绝这个。我已经看到类似的产品,附带100 MB的安装文件,并在设置后显示在程序文件中是400 MB。





< a href => 共享相册 - Iam Lucky - Google相册 [ ^ ]

共享相册 - Iam Lucky - Google相册 [ ^ ]
Apologies for refusing this. I have seen similar product which came with 100 MB of setup file and after setup it is showing in Program Files is 400 MB.


Shared album - Iam Lucky - Google Photos[^]
Shared album - Iam Lucky - Google Photos[^]


这篇关于减少C#中的设置文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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