enable the user to install the .net 2.0 & crystal reports for .net 2.0 runtimes through my a

Hi, I have a question regarding how to install prerequisites using ClickOnce on a client PC not having the required runtimes installed.

How can I enable the user to install the .net 2.0 & crystal reports for .net 2.0 runtimes through my application as prerequisite automatically ?

In my publish tab, i selected: Download prerequisites from same location as my application. But when i run the URL: htp://enigma/publish.thm it gives me a page saying to install the prerequisites & a link to INSTALL. when i click install, it only installs the EXE. It doesnt install the .NET 2.0 framework & crystal for .net 2.0 files. I can see package directories being created for Crystal Reports & .net 2.0 in my deployment server.

Alex

[774 byte] By [AlexDcosta] at [2007-12-25]
# 1

HI,

On client PC, I cannot see the MSI install dialog to install PREREQUISITES (.NET 2.0 & CR.NET 2.0) if they aren't already present on the PC.

I've checked all my packages in the prequisites dialog. And of course I choose the "download from same location as application". And after the package is built, all my installpackages are copied to the location of the setup.exe

When I start the setup.exe it can't find any of my added files. That means that it' is not even looki in the sema location as the application is. It just installs my .exe application & Thats' IT !!!

The .exe installs correctly but why can't it launch the .NET 2.0 & CR.NET 2.0 installers ?

Pls. Help !!

Alex

AlexDcosta at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 2

if you selected to download from same location as application, you need to bundle in the packages in your application. To make things easier overall, best to leave it to the default value, to download it from the vendor's website.

However if you still want to include the installers in your setup project and install it, check out these links:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/redistdeploy.asp

http://support.microsoft.com/kb/324733/

http://www.codersource.net/csharp_installer_projects.html

ahmedilyas at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 3

Hi Ahmed,

How do i create bootstrappers of .net 2.0 & CR for .NET 2.0 to be included in my PUBLISHED web server ?

Also, note that i do not want to create the SETUP project as follows:

  1. On the File menu, click New and then click Project.
  2. In the New Project dialog box, expand Other project types and then click Setup and Deployment.
  3. In the templates list, double-click Setup Project.

I just want to deploy my application by PUBLISHING MY APPLICATION ON A WEB SERVER WHERE EMPLOYEES can download the latest .exe if it is updated or to install the PREREQUISITES automatically. As i see in my virtual directory, there exists folders named "dotnetfx" & crystalreports with their appropriate installer packages. I guess that the packages are being created in the right place alongwith the setup file, application manifest and publish.html. I cannot see any settings.ini file

Then, why dont the Installer packages launch ?

Alex

AlexDcosta at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 4
ok so you are talking about clickonce?
ahmedilyas at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 5

First, are you sure the the Pre-reqs are not already on the test machine? If they are, then we won't download them or install them. If we can't download for any reason, the installation will fail, it won't launch the final app. So, this leads me to think the pre-reqs are already on the machine.

You can get at the install log by going to the Temp directory. Then, look for the newest VSD* directory, and open the Install.log. It will describe the checks and installs it tried to do. This can help you (and us) diagnose what is going on.

DavidGuyerMS at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 6

Yes David,

You may be right here. Yes, i did install the application through a SETUP created by "Setup & Deployment Projects" in VB 2005 and added the Crystal reports for VS 2005 merge modules. This way, my application worked fine. But before installing the .exe thru a SETUP created by CLICKONCE, i uninstalled the previous SETUP.

Now, now i am trying to install the .exe thru CLICKONCE so that users will have access to download the updated .exe every time there is a change to it.

Alex

AlexDcosta at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 7
Yep, m talking abt CLICKONCE
AlexDcosta at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 8

I have a problem which is somewhat similar except that my setup ignores the fact that I have said download from same location as my EXE and always wants to download it from the web. I have followed all instructions as on the MSDN website but can't get it to install from the local directory. The .Net Framework 2.0 is where it should be.

Anybody got any ideas?

John

mcgilluri at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 9

The best way for me to help figure this out is to look at the install log file. It will explain whether the bootstrapper is looking to install the pre-reqs, whether it thinks its already installed, where it's downloading from.

Another thing to check, when you are looking at the link on the publish.htm page, is to see where the link is going to... it should be going to setup.exe...

DavidGuyerMS at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...