Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Distribute application with Visual Basic Express Edition 2008
 

Distribute application with Visual Basic Express Edition 2008

Hi there!

I'm trying to distribute my application to my colleagues. Theircomputers must have the dot net framework installed.

Is there a way to install the dot net framework during the application set up? or VB express edition 08 is limited and I have to require my colleagues to manually install it?

Thanks,

Charly

Charly23  Monday, September 29, 2008 6:07 PM

Hi David,

I redownloaded the dotnetfx file and followed again the process described at http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B66-9B31-9205C3F22252/VS2008SP1Readme.htm

2.3.1.1 Enable Samesite for the .NET Framework 3.5 SP1 bootstrapper package

and removed the spaces between the < and the P in PackageFile.

I finally could publish my application!!!!!

Thanks a lot

Charly
Charly23  Friday, October 03, 2008 6:56 PM

I think if you make some searches about ClickOnce and .NET Framework you'll find something that may be the answer for your question.

I did this using InnoSetup, but i did it because it dont know to use very well ClickOnce. Try to search more documentation about ClickOnce and i'm sure you can resolve this problem.

Alex_dotNET  Monday, September 29, 2008 8:19 PM

Only the full commercialedition of Visual Studio allows you to create redistributable programs. With the Express editions, you will have to install the framework manually, if it's not already there.

Solitaire  Monday, September 29, 2008 8:42 PM

Solitaire,

I couldn't find out if you were right so I guess it is actually possible to include a dot net framework to an application with VB express edition 08. Let me know if youcan find a documentationdescribing this limitation though.

Alex_dotNET,

I had a look at ClickOne especially this documentation availableat the help: It is named "Closer Look: Including Prerequisites with Your Program" ms-help://MS.VSCC.v90/MS.msdnexpress.v90.en/dv_vbcnexpress/html/839add0c-a2f2-457f-8622-9757c2280a5d.htm

I tried to include the .net framework 3.5 SP1. For this purpose I downloaded the Full Redistributable Packageand pasted it at the same locationas my application. I checked on the Prerequisites dialog box the .net framework 3.5 and selected the option 'Download prerequisites from the same location as my application'
Then when publishing I got this kind of error

Error3The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\aspnet.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information.MiniLightMix

I don't get it.

Thanks for your posts.

Charly

Charly23  Tuesday, September 30, 2008 12:28 AM

Hi Charly23

Please take this article for reference, it describe the prerequisit in MSI.

How to: Install Prerequisites in Windows Installer Deployment

If you have any question, don’t hesitate to tell me.

Sincerely,

Kira Qian

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Kira Qian  Thursday, October 02, 2008 3:25 AM
Solitaire wrote:

Only the full commercialedition of Visual Studio allows you to create redistributable programs. With the Express editions, you will have to install the framework manually, if it's not already there.

Solitaire is partially correct. the Setup and Deployment project template does not ship with any Express Edition. that means that Kira's link to How to: Install Prerequisites in Windows Installer Deploymentwill not work.

however you do have ClickOnce available to you in Express Editions, so you can create a setup.exe that will check for the .NET Framework and install it if it's not there already. see ClickOnce Deploymentand ClickOnce Deployment for Windows Forms Applications.

Charly - by default, the .NET FX 3.5 SP1 is web-install only. you need to follow the instructions at

http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B66-9B31-9205C3F22252/VS2008SP1Readme.htm

See: 2.3.1.1 Enable Samesite for the .NET Framework 3.5 SP1 bootstrapper package

in order to include the .NET Framework with your installer. it's somewhat crazy, but you only have to do it once.

m.

Mary Lee - MSFT  Thursday, October 02, 2008 6:19 PM

Hey Mary,

I followed the instructions at http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B66-9B31-9205C3F22252/VS2008SP1Readme.htm2.3.1.1 Enable Samesite for the .NET Framework 3.5 SP1 bootstrapper package

Update the Package Data

I pasted the following into the < PackageFiles > element:

<PackageFiles CopyAllPackageFiles="IfNotHomeSite">
< PackageFile Name="TOOLS\clwireg.exe" />
< PackageFile Name="TOOLS\clwireg_x64.exe" />
< PackageFile Name="TOOLS\clwireg_ia64.exe" />
<PackageFile Name="dotNetFX20\aspnet.msp" PublicKey="3082010A0..........

.....

.....

</PackageFiles>

and modified the 2 PublicKey values.

Download and Extract the Core Installation Files

The folder structureI gotresembles the following:
o DotNetFx35SP1 (folder)

  • dotNetFX20 (folder)
  • dotNetFX30 (folder)
  • dotNetFX35 (folder)
  • dotNetMSP (folder)
  • en
  • dotNetFx35setup.exe (file)
  • product.xml

Icouldn't generate the "TOOL" folder with the 3 exe (clwireg.exe, clwireg_x64.exe and clwireg_ia64.exe). When I select the .net framework 3.5 SP1 on the prerequisite box I can see a tiny warning icon meaning that "prerequisite could not be found for bootstrapping"

When I try to publish my application I get the following error

Warning1Item 'Microsoft.Net.Framework.3.5.SP1' could not be located in 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\'.

Did I miss something? Where can I get clwireg.exe, clwireg_x64.exe and clwireg_ia64.exe?

Thanks for your post

Charly

Charly23  Friday, October 03, 2008 12:02 AM

You will need to get the Tools folder. I've heard of one other instance of this not working right, and re-downloading the dotnetfx file and re-extracting it seemed to solve the problem. I'm asking around to see if anyone knows why the tools folder might not be getting extracted, I can't get that problem to reproduce.

Once you have the Tools folder, you need ot remove the spaces between the < and the P in PackageFile for the elements you added. (There's a bug in the ReadMe that we are fixing ASAP).

I hope that clarifies a few things for you!

David Guyer MSFT  Friday, October 03, 2008 5:10 AM

Hi David,

I redownloaded the dotnetfx file and followed again the process described at http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B66-9B31-9205C3F22252/VS2008SP1Readme.htm

2.3.1.1 Enable Samesite for the .NET Framework 3.5 SP1 bootstrapper package

and removed the spaces between the < and the P in PackageFile.

I finally could publish my application!!!!!

Thanks a lot

Charly
Charly23  Friday, October 03, 2008 6:56 PM
yep, follow the steps described in the VS2008SP1Readme.htm file and make sure you remove the spaces in the tags, open the file with visual studio, it will be easier to see than using notepad. If you don't remove the space it won't work, no matter what, trust me, I spent days trying to figure it out.


< PackageFile Name="TOOLS\clwireg.exe" />
< PackageFile Name="TOOLS\clwireg_x64.exe" />
< PackageFile Name="TOOLS\clwireg_ia64.exe" />



IT Engineer
ureyes84  Tuesday, September 01, 2009 7:50 PM

You can use google to search for other answers

Custom Search

More Threads

• Modifying VS 2005 Setup Projects dialogs
• Difference between using publish.htm and the .exe?
• DSOFramer deployment
• Clickonce is forcing an update
• app.config
• running an .exe before Uninstallation process
• Converting VDPROJ to WIX
• InstallerClassExtensions.InstallState file not removed by Add/Remove Programs
• Custom Click Once Actions
• Attaching an Icon to an application