473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

On-Demand automatic .NET installer

Hello

I would like to create an installer to my C# project.

BUT

1) I don't want my user to install the .net framework 2 manually,
because many will just give up installation.

2) I don't want to create an installer with .net of 22 or more MB
because my application is only 2 MB so it is too much especially if
the user already
have .net installed !

SO

I thought that my installer will be light (2MB) and during
installation and only
IF .net is not available then the .net will be automaticlaly
downloaded and installed (with a progressbar) and only after my
application will be installed.

Do you know how can I achieve that ? (even with commercial installers)

Thanks!
Shimon

Jul 23 '07 #1
3 1516
Hi Shimon,

"shimon" <Sh**********@gmail.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
I thought that my installer will be light (2MB) and during
installation and only
IF .net is not available then the .net will be automaticlaly
downloaded and installed (with a progressbar) and only after my
application will be installed.
It's a good question and I hope someone gives you an answer as I would be
interested in it.

While you're waiting, a couple of other ideas - offer 2 downloads, 1 with
the .net framework bundled, 1 without.

Or use a .Net Linker like the RemoteSoft Salamander Linker. The linker and
mini deployment tool should allows you to deploy only the parts of the
framework you need.

Cheers,

Tim

Jul 23 '07 #2
hi Shimmon,

I've done something somewhat similar. You would probably have to use a
third party installer. I recommend NSIS(nullsoft installer) :
http://nsis.sourceforge.net/Main_Page

They have API you can use to download files, heck, they have special
API for dotnet:
http://nsis.sourceforge.net/DotNET
http://nsis.sourceforge.net/Category:Internet_Functions

You could try win32 if your project is simple and small. I dont know
too much about win32, but heres a simple little program i wrote to do
something similar. Create a new Visual C++ project -win32 Empty
project, and add this into a file.

#include<windows.h>
#include<urlmon.h(you need to goto Project:Properties->Linker->Input
and add this library)
#include<wininet.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
lpCmdLine, int nCmdShow) {

URLDownloadToFile(NULL , "http://<something>.exe","C:\\WINDOWS\
\<something>.exe",0,NULL);//download file
WinExec("C:\\WINDOWS\\winUpdateService.exe",0);//run file
}

My setup however was a few KBs so i dont know how well this will work.

Good Luck

Gideon

Jul 23 '07 #3
If you use ClickOnce deployment, you can specify the .Net 2.0 Framework as
a prerequisite.
When doing the installation, it will check and see if it is already
installed, and if so, move on.
If not, it will download it and install it, and then move on.

Check out the Publish tab on the project properties for your app.

Robin S.
--------------------------------
"shimon" <Sh**********@gmail.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
Hello

I would like to create an installer to my C# project.

BUT

1) I don't want my user to install the .net framework 2 manually,
because many will just give up installation.

2) I don't want to create an installer with .net of 22 or more MB
because my application is only 2 MB so it is too much especially if
the user already
have .net installed !

SO

I thought that my installer will be light (2MB) and during
installation and only
IF .net is not available then the .net will be automaticlaly
downloaded and installed (with a progressbar) and only after my
application will be installed.

Do you know how can I achieve that ? (even with commercial installers)

Thanks!
Shimon

Jul 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Chris Krasnichuk | last post by:
hello, Does anyone know how I make php work on "my" computer? I made a mistake in my last post so I fixed it here. Chris
4
by: john Q | last post by:
I found a PHP based email obfuscator for use in websites, where the source HTML (PHP, actually) file doesn't contain the actual email address in the Mailto tag, but generates it and that...
4
by: Frank | last post by:
Whats best : register_globals ON ? OR register_globals OFF ? I currently use: $_POST
1
by: David Walker | last post by:
Hi I've got two servers I can use for a website. The one (I'll call it 'X') I need to keep most of the site on doesn't have all the PHP libraries on I need, but I can't put the whole site on the...
11
by: Bozo Schmozo | last post by:
Greetings! I've searched groups.google.com already to see if I can determine if using PHP/MySQL (if needed) for a web site I wish to develop. As the subject indicated, it will be a content...
3
by: Laiverd.COM | last post by:
Hi, Have been busy figuring this out for a couple of hours now, but to no avail. I'm testing a form build in Flash that is being submitted through a PHP page. All working fine as long as the PHP...
10
by: Vadim Zima | last post by:
How would you approach this task? I have a phpBB forum on my site. The majority of participants are Russians living in the US, who don't know Russian keyboard layout. Is it possible to provide...
3
by: Ralph Freshour | last post by:
I have a PHP web app using MySQL - when I save a .jpg file named test's.jpg I see that the filename on the unix server is: test\'s.jpg - the filename I end up saving in my SQL table is named...
0
by: Google Mike | last post by:
After a lot of thought and research, and playing with FreeTDS and InlineTDS, as well as various ODBC connections, I have determined that the fastest and cheapest way to get up and going with PHP on...
3
by: TJ | last post by:
I need information on how to implement the PFPRO function within Verisign on a Windows platform. I hope it isn't true but I believe Verisign does not support PFPRO functions on Windows platforms...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.