|
Hi,
I have developed a winform application in C# using visual studio 2008.
The application at present is on my laptop and talks to the sql server 2005 express.
All works fine.
Now I would like to create a setup CD so that it can be installed on a client machine.
1- SQl Server 2005 express is installed on the client machine (For business requirements) with the required logins that the app requires to login to sql server.
2- I am unable to find a simple straightforward documentation on how to have a complete setup of the app on a CD so that I can run it on the client to install the app. Note that the setup should have the .net framework, etc included...
Is there a link you can refer me to for this purpose please?
Thanks
|
|
|
|
|
|
Hi,
Thaks for the reply.
I would like to stick to the visual studio tools for the installation.
The vs 2008 I am using has the necessary tools to create a setup project, etc but I would like to see a simple documentation on how to create a setup CD.
Can you refer me to one please?
Thanks
|
|
|
|
|
Do NOT stick to the tools in Visual Studio for this.
The next version of Visual Studio will not have them. They are being replaced with Installshield Express. I highly suggest either picking up that from Flexera or some other installation creation tool, like Wix, InnoSetup, ... Learn something that isn't going to die.
|
|
|
|
|
arkiboys wrote: I would like to stick to the visual studio tools for the installation.
Don't you think we should have been told this? This is the type of information that changes the answer you are given. You have asked so many questions that you should be aware now that you need to supply ALL relevant information, rather than have us get it out of you drip-feed.
|
|
|
|
|
|
I have now created the setup.exe
It did not ask me to add .net 2.0
How would the client machine run the application then?
Thanks
|
|
|
|
|
arkiboys wrote: Is there a link you can refer me to for this purpose please?
Yup, MSDN describes it here[^]. Click on "ClickOnce Deployment", then on "Publishing ClickOnce Applications" (second from the top) and you'll get a list of "how to"-articles. You want the one on the top[^] of that page, it describes publishing from CD/DVD somewhere on the middle of that page.
Good luck
I are Troll
|
|
|
|
|
I believe Clickonce can not be used for my requirement because the client machine is NOT on the network.
|
|
|
|
|
arkiboys wrote: I believe Clickonce can not be used for my requirement because the client machine is NOT on the network.
The page that I linked to on MSDN claims otherwise.
I are Troll
|
|
|
|
|
ClickOnce also supports CD/DVD based publication mechanisms.
|
|
|
|
|
Ok, I will try that.
Many thanks everyone.
|
|
|
|
|
You are welcome. And a 5 vote to correct the Univote - I always appreciate somebody taking the time to thank people.
|
|
|
|
|
Apparently the univoter really has it in for you. Shame he doesn't have the guts to speak up but prefers to hide behind anonymity.
|
|
|
|
|
Wow. Whoever it is, he's a lightweight. I just voted it a 5 to counter and it shot up to 4.56.
|
|
|
|
|
He/she certainly is a lightweight. I can't understand why whoever it was univoted Arkiboys for posting a thanks. We get precious few who actually bother to thank for the help that it's a refreshing change when one does - and I always vote them 5 for their manners.
|
|
|
|
|
If you ever decide to go away form VS there is a great application called MSI Factory[^] that I use. It is very good value for money (IMO)
I may or may not be responsible for my own actions
|
|
|
|
|
Hallo
I put several dgv's in a form, and I created a ContextMenuStrip to perform same common operations on dgv's "CurrentRow" record (eg. Deletion).
Is there any way I could reuse the same ContextMenuStrip without duplicating, maybe passing the dgv object as an argument?
I would avoid to rewrite a control that inherits and extends ContextMenuStrip.
Thanks in advance
|
|
|
|
|
LordZoster wrote: maybe passing the dgv object as an argument?
It's passed by default, in the sender-parameter. That's of type object, so you'd have to cast it to a DataGridView .
I are Troll
|
|
|
|
|
Thanks for replying,
actually I get an exception of "casting a ToolStripItem type on DataGridView type".
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
{
DataGridView dgv = (DataGridView)sender;
if (dgv.CurrentRow.Index > -1)
dgv.Rows.Remove(dgv.CurrentRow);
}
modified on Friday, March 18, 2011 6:08 AM
|
|
|
|
|
Solved.
private void eliminaToolStripMenuItem_Click(object sender, EventArgs e)
{
ToolStripDropDownItem menu = (ToolStripDropDownItem)sender;
ContextMenuStrip strip = (ContextMenuStrip)menu.Owner;
Control owner = strip.SourceControl;
DataGridView dgv = (DataGridView)owner;
if (dgv.CurrentRow.Index > -1)
dgv.Rows.Remove(dgv.CurrentRow);
}
|
|
|
|
|
My apologies; it's the ToolStripItem that initiates the action, and that'll be the sender indeed. Thanks for posting the corrected version, always usefull as a future reference
I are Troll
|
|
|
|
|
Hi everybody,
Plz how can I signal that my thread is already answered and have solution
Thank u
modified on Friday, March 18, 2011 8:49 AM
|
|
|
|
|
Just edit it and ad a "[solved]" on the message title. Like I did with this comment
I assume your asking about threads posted here on CP. Not threads as in excecution thread(s).
All the best,
Dan
|
|
|
|
|
To add to MDL=>Moshus' answer, it is also nice if you hit the "Good Answer" button on any answer which helped solve your problem. It can make people more willing to help next time!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|