Jump to content

C# setup wizard in visual studio 08

- - - - -

  • Please log in to reply
7 replies to this topic

#1
nedo99

nedo99

    Newbie

  • Members
  • Pip
  • 4 posts
Hello,

I'm new member on this forum and i didn't look too much for solution on forum :)

I created application in c# and i wanted to create setup for that, and i tried with new->project->setup wizard and took every file from my project, but when i tried to build it, it didn't work. I couldn't see any error written , just 1 failed.

Is there another way to create setup for my application?

Thanks in advance!

#2
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts
I wrote a tutorial on how to create a setup in Visual Studio: Davide Vitelaru - Tutorials

Try creating the setup yourself without the wizard and see if it works. Who knows, maybe you have to complete some extra fields in the project properties section.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics

#3
nedo99

nedo99

    Newbie

  • Members
  • Pip
  • 4 posts
Thank you!

It helped me:) I have one more question. In my project, i'm working with sql database and now when i'm creating the setup for my project for using the application on other computers, do i have to install the same sql database so that my application can work?

#4
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts
If you can't see it in "Detected Dependencies", you most likely don't need it. The database will be installed on that computer along with your app. Make sure you test the setup on a freshly installed XP machine before publishing it (Installing XP in a VM is a good idea).
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics

#5
nedo99

nedo99

    Newbie

  • Members
  • Pip
  • 4 posts
OK,
I tried to build the setup bu it says 1 succeeded, 1 failed, 0 skipped. I can't find the error, only this : C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.Linq.dll" /reference:"C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Desktop\System.Data.SqlServerCe.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Deployment.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.DirectoryServices.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Transactions.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\test.exe /resource:obj\Debug\test.DodajTabelu.resources /resource:obj\Debug\test.EditTabele.resources /resource:obj\Debug\test.Form1.resources /resource:obj\Debug\test.Properties.Resources.resources /resource:obj\Debug\test.Ulazna.resources /target:winexe Database1DataSet.Designer.cs DataClasses1.designer.cs DodajTabelu.cs DodajTabelu.Designer.cs EditTabele.cs EditTabele.Designer.cs Form1.cs Form1.Designer.cs Program.cs Properties\AssemblyInfo.cs Properties\Resources.Designer.cs Properties\Settings.Designer.cs Ulazna.cs Ulazna.Designer.cs

Do you know what's the problem?

#6
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts
I think you changed the Target Framework to 2.0 instead of 3.5 and you forgot to delete some "using" statements.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics

#7
nedo99

nedo99

    Newbie

  • Members
  • Pip
  • 4 posts
I tried all that, but i still get the same message. Thing is, i get the setup package now and i tried and it's working. Is that ok?

#8
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts
I just re-read your post. If you don't get an error anywhere, it really doesn't matter what the build output says (I never paid attention to it). I'd right-click and select "Build" on the setup project instead of building the entire solution though.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users