simple deployment & version numbers

H

hawbsys

Can anyone help with two basic questions about deployment?

First question. We deployed a WinForms application recently and it was
successful. We opted for the simple "publish" method via a CD. This
created an installer which placed the application in the folder C:
\Documents and Settings\[user]\Local Settings\apps\2.0\[....]\[....]\
[....]. Now, although this worked, it does mean every user on every PC
needs to run the setup to use the app. There's no "install for all
users of this PC" option. And also, there are some paths and other
settings (once they would have gone into an INI file) which have to be
set in the .config XML file. So that's a lot of editing of that file
(which isn't even that easy to locate). What are we doing wrong? Apart
from the fact that everything worked fine it's a tedious lot of
setting up. Other than building a separate setup project inside our
solution is there a better way? Does everyone deploying non-trivial
WinForms apps create a separate setup project?

Secondly, there appear to be three separate versioning schemes built
into a .net project. There's the Assembly Version and the File
Version, both available under "Assembly Information" in Project
properties and both can be incremented manually. Then there's the
publish/build versioning which increments automatically when you
"publish" and which is built into the folder names when you publish.
Only the Assembly Version can be reached in code, so far as I can
tell, by reading My.Application.Info.Version.ToString. What are the
differences between these three version numbers and how to people
typically use them? Is there a way to refer to the "publish" version
(the one that advances automatically) in code?

How do others use the version numbering in vs2005 in their winforms
projects?
 
B

Bryan Phillips

ClickOnce applications are installed per user. But I cheated since my
application's manifest files were stored on a network share and I
created a shortcut to setup.exe on the default user's desktop. That way
the icon appears on everyone's desktop and the application automatically
installs and updates as needed. The users can't notice a thing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top