Jump to content

Program installation

- - - - -

  • Please log in to reply
10 replies to this topic

#1
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#
I need to create installation for my program. Which files I should delete from my project so no body can make changes to it and how can I create my installation

#2
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
what you more than likely want to do, is add a deployment project to your solution

This would then allow you to add "project output" from other projects in your solution.

Ultimately when you build the deployment project, it generates an MSI installer.

Depending on the quality of the install you want, it can be a lot of work to make these look and feel the way you want. But I'd nose in around there and play with it. Come back with questions.

#3
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#
but which files i can delete from my project so my program can still work as it should???

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
The ones it doesn't use.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#
i've deleted solution files and can i delete "bin" or "obj" or "Properties" folder???

#6
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
its the bin directory that is essentially used.

If you build it in release mode, it wont include debug symbols etc.

generally, your going to include the projectname.exe, projectname.exe.config and any dependant assemblies (normally dll files)

so, all of those will be in bin/Release

#7
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#
Why I can't compile in release mode my project??? I'm using Visual C# 2010 Express Edition. Do I have to set something so it can work???

#8
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
I'm unsure, I've never used the express editions. It's possible there is a restriction preventing this. (could someone verify?)

You could always try sharpdevelop, it will open native visual studio solutions.

I know for a fact, it does not have any such restrictions.

#9
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#
I can see that SharpDevelop is very similar to VCS but I'm very oriented to Microsoft so I will stay on VCS...I will try to spare some money so I can buy normal VS so I can have full options

#10
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#
i've manged my problem :)

#11
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
good to hear!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users