Results 1 to 11 of 11

Thread: C# Build program for non VS.NET users not working

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    The Netherlands
    Posts
    96

    C# Build program for non VS.NET users not working

    I created a program in C#.

    When I try and distribute it to people who don't have the .NET framework or VS the program is not working...

    They get a `Can't initialise app` Error right when they start the app....

    Is the Framework required when distributing apps?

    I am distributing both my .lib and .exe.

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Is the Framework required when distributing apps?
    yes.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    The Netherlands
    Posts
    96

    Package and Deployment Wizard

    So I guess I need to use a Package and Deployment Wizard...just like in VB6?

    I can't find it in my menu...has it been renamed?

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Just tell the user they must have the .net framework installed to use your application. Make it known that they can visit Windows Update and obtain it.

    I don't include it in my apps I distribute, but I make it known that the .net framework is required to run my application. I provide a link to windows update to help them get to it quicker. Plus, these people should be updating their windows anyway!

    I am sure there is some reg key you can look at to see if the framework is installed when you are running a setup. If it isn't there, you can provide a custom message to the user stating that their computer needs the .net framework installed to run this app, then you can open explorer and automatically go to the windows update page or something...
    Just a thought...

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    The Netherlands
    Posts
    96
    Think of LAN-parties...you can't use windows update when you aren't connected to the internet...that's a big disadvantage.

  6. #6
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476
    If you want to create a setup package just open Visual Studio, and go to new Project, then choose "SETUP and DEPLOYMENT Projects".

    Hope I could help

    Stephan
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

  7. #7
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476
    Heres an tutorial on how to do it:

    http://www.c-sharpcorner.com/Code/20...upProjects.asp

    Hope I could help,
    Stephan
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    The Netherlands
    Posts
    96
    Thanks..I look into it!

  9. #9
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Norwich, UK
    Posts
    405
    you can also rollout the .net framework/app using active directory

  10. #10
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346
    There is something on Microsoft's site, cleverly named .Net Bootstrap. Not sure the link. That will allow the user to install .NET if it is not present and then install your app.
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


  11. #11
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    This is more detailed on how to create VS.NET setup packages .
    http://www.vijaymukhi.com/documents/...snet/chap4.htm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width