Home All Groups Group Topic Archive Search About

Lauch VB.NET App From Network Drive Or Network Share.

Author
25 Jul 2006 3:54 PM
bannp
Hi All,

Please excuse my ignorance in this post I'm new to vb.net. I have read
a few articles about launching vb.net programs from a network drive,
but I'm unsure of how the best way to deploy.

Let me explain, say I create a Windows form call DataConnect.Exe, all
the application does is connect to a generic sql database and does
stuff. I want to deploy my exe to various different branches, remember
I only need to deploy the exe. I 'm familiar with using Caspol.exe,
is there nothing you can put in the start-up code of your application
to register security for an application.

Thanks In Advance.

Pete.

Author
25 Jul 2006 6:29 PM
Skip
<ba***@hotmail.com> wrote in message
Show quoteHide quote
news:1153842882.113944.107330@75g2000cwc.googlegroups.com...
> Hi All,
>
> Please excuse my ignorance in this post I'm new to vb.net. I have read
> a few articles about launching vb.net programs from a network drive,
> but I'm unsure of how the best way to deploy.
>
> Let me explain, say I create a Windows form call DataConnect.Exe, all
> the application does is connect to a generic sql database and does
> stuff. I want to deploy my exe to various different branches, remember
> I only need to deploy the exe. I 'm familiar with using Caspol.exe,
> is there nothing you can put in the start-up code of your application
> to register security for an application.
>
> Thanks In Advance.
>
> Pete.
>

Did you investigate the Install Mode on the Publish page of the project
properties? I think that might be what you want.

see
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_deploy/html/0aee
5fc1-e966-4bda-9b8f-d9997aeaa779.htm
Author
25 Jul 2006 8:33 PM
Chris Dunaway
ba***@hotmail.com wrote:

> is there nothing you can put in the start-up code of your application
> to register security for an application.

That's kind of a catch-22.  Your code can't run without being granted
trust and  you can't trust during your app's start up because it can't
run!!

The easiest way that I see would be to run caspol during the
installation or have the user run a bat file that performs the caspol
command.

I'm not sure if there is a way to 'push' the caspol operation from the
network.

Good luck.