PDA

View Full Version : سوال: ایجاد ستاپ کم حجم در c#



syntiberium
شنبه 28 فروردین 1389, 15:24 عصر
سلام . می خواستم بدونم می شه وقتی مخواهیم ستاپ درست کنیم فقط dll های مورد نیاز را داخل ستاپ بگذاریم ؟ آخه به صورت عادی ستاپ کل .net را که حجمش 196 مگا بایت هست را به ستاپ اضافه می کنه و حجمش را به شدت بالا می بره .
با تشکر .

babak.h
شنبه 28 فروردین 1389, 15:53 عصر
اگر منظورتون اینه که DotNet Framework رو به setup اضافه می‌کنه راهش اینه (در Visual Studio 2005) :

- روی عنوان پروژه Setup در Solution explorer کلیک راست کنید و Properties را انتخاب کنید
- در پنجره باز شده روی دکمه Prerequisites کلیک کنید
- در پنجره باز شده در قسمت پایین حالت
Download Prerequisites From the component vendor's web site رو انتخاب کنید (گزینه اول)

نکته : در صورت انتخاب گزینه دوم ٬ تمام پیش نیاز ها (از جمله دات نت) به پکیج نصب شما اضافه می شود

موفق باشید

syntiberium
شنبه 28 فروردین 1389, 17:19 عصر
این ها رو همشو خودم می دونم و بلدم چجوری ستاپ بسازم فقط می خوام وقتی برنامم روی کامپیوتر کاربر نصب شد نه مجبور باشه .net رو از اینترنت دانلود کنه نه از توی سی دی . من می خوام کاری کنم که فقط و فقط dll های استفاده شده داخل فایل ستاپ گذاشته بشه چون 196 مگابایت .net هم با سرعت اینترنت ایران جور نیست هم برای نصب آن از روی سی دی خیلی طول می کشه .

mahmoodramzani
شنبه 28 فروردین 1389, 17:47 عصر
این ها رو همشو خودم می دونم و بلدم چجوری ستاپ بسازم فقط می خوام وقتی برنامم روی کامپیوتر کاربر نصب شد نه مجبور باشه .net رو از اینترنت دانلود کنه نه از توی سی دی . من می خوام کاری کنم که فقط و فقط dll های استفاده شده داخل فایل ستاپ گذاشته بشه چون 196 مگابایت .net هم با سرعت اینترنت ایران جور نیست هم برای نصب آن از روی سی دی خیلی طول می کشه .
یعنی برنامه با دات نت نوشته بشه و کاربر دات نت نداشته باشه و نه دات نت رو از اینترنت دانلود و نصب کنه و نه از سی دی؟!!
راهش اینه که برنامه رو با دات نت ننویسی:لبخند:

syntiberium
شنبه 28 فروردین 1389, 18:57 عصر
آخه دات نت کلی dll داره که ما هیچ کدومشون رو استفاده نمی کنیم و من می خوام اونایی رو که استفاده نمی کنیم توی فایل ستاپ نباشه . اگه راهی هست بگید و گرنه که مجبورم دات نت 194 مگا بایتی رو به خاطر یه برنامه ی کوچولو روی سیستم کاربر ها نصب کنم . ( لطفا اگه در این موردی که من دارم راجع بهش حرف می زنم چیزی می دونید بگید)

mahmoodramzani
شنبه 28 فروردین 1389, 19:51 عصر
به نظرم نصب دات نت گزینه بهتریه اما خوب جهت اطلاع:
http://www.xenocode.com/

mahmoodramzani
شنبه 28 فروردین 1389, 19:56 عصر
Xenocode app virtualization technology


Supported platforms and technologies

The Xenocode microkernel supports the Windows XP, Windows 2000, 2003, 2008 and later, Windows Server, Windows Vista, and Windows 7 operating systems. Virtual Application Studio creates 32-bit executables, which can be run under 32-bit mode on x64 platforms. Xenocode supports common runtime environments such as the .NET Framework 1.1, 2.0, 3.0, and 3.5, Silverlight, Java 5.0 and 6.0, Flash, and Shockwave.



How is Xenocode different from hardware virtualization?

Unlike hardware virtualization and hypervisor systems such as Microsoft Virtual PC, Hyper-V, and VMware, the Xenocode virtualization system works at the application level and virtualizes only those operating system features required for application execution. This allows virtualized applications to operate extremely efficiently, with essentially the same performance characteristics as native executables.
Advantages of Xenocode virtualization over hardware virtualization include:


Extremely high performance: Xenocode virtual applications execute at essentially the same speed as applications running natively against the host hardware, with only a small additional memory footprint. On the other hand, applications running within hardware-virtualized environments experience significant slowdowns and impose a large memory footprint because the virtual machine includes and virtualizes an entire host operating system.
Reduced licensing costs: Because Xenocode virtual applications do not contain a host operating system, it is not necessary to purchase separate operating system licenses to use a Xenocode virtual application. hardware virtualization systems require a host operating system in order function, possibly imposing additional licensing costs and restrictions.
Dramatically reduced application size: Xenocode virtual applications only require a disk footprint proportional to the size of the virtualized application, data, and included components. As a result, Xenocode virtual applications are typically small enough to be conveniently and quickly downloaded by end-users. Because hardware virtualization requires inclusion of an entire host operating system image, including many basic subsystems which will already present on the end-user device, hardware virtualization typically requires gigabytes of storage per virtual machine.
Ability to run dozens of virtualized applications: Because of its low-overhead characteristics, it is easily possible to run dozens of concurrent Xenocode virtual environments per processor. Conversely, due to the high overhead of hardware virtualization, it is generally possible only to run a very small number of hardware-virtualized environments per processor.

However, hardware virtualization is appropriate in certain specialized scenarios:


Non-Windows operating systems: Xenocode virtual applications currently execute only on the Windows operating system. Hardware virtualization can execute any operating system compatible with the underlying virtualized hardware, such as Linux.
Kernel mode virtualization: The Xenocode virtual machine only virtualizes user-mode operating system features, whereas hardware virtualization systems emulate the entire OS stack, including kernel mode components. Applications requiring device drivers or other non-user-mode software may require a hardware-virtualized environment to function properly.

http://www.xenocode.com/Technology/