Deploying Applications on a LAN network share

lilalfyalien

Member
Joined
Dec 11, 2007
Messages
7
Programming Experience
3-5
I have a application, app.exe which I want all other users on my network to be able to run. It has a strong name and I have configured it to work perfectly on my machine. The code itself loads in a text file (using
VB.NET:
RichTextBox.LoadFile("thefile.rtf")
) and then presents users with I agree and I disagree buttons. If the user clicks I agree the app goes away if they click I disagree it logs them off using the shell command
VB.NET:
shutdown -l
.

How can I make this app have the correct security privileges to run from a network share on any machine? I have configured my machine using the .NET Configuration Tool but do I have to do this on every machine that I want this app to run on or is there a more automated way to do it?

Thanks for any advice,

Lilalfyalien
 
Or deploy a batch file to every machine on the network to trust my app using the command:

VB.NET:
caspol -q -m -ag 1.2. -strong -file App.exe -noname -noversion FullTrust -name PermittedApp

???

But surely then on every non-development machine I have to have the SDK tools installed (in order to have caspol)?
 
Last edited:
Caspol is part of the .Net Framework tools that is required to run .Net applications, so this has to be installed first if not already present. If you don't use a setup project to handle all matters of deployment you have to do the necessary steps manually.
 
That should be possible by use of a custom action for the setup project.

Have you considered using a easier deployment model? :) Default local installation with ClickOnce is just about only few mouse clicks. There are not many reasons for installing an application to a network share, you may be thinking that this "single file" can be updated there and the clients don't have to update. This is also something that can be automated by ClickOnce basically by clicking one checkbox.
 
I can't use ClickOnce as it's a program that I want to run automatically at startup (it's a User Acceptance Policy screen so that users can choose whether or not to continue). I've tried to implement it as a application on the local machine but I can't get an automated way of copying it to the users' machines as they don't have the write privileges. It's really annoying me and noone seems to have a solution that I can work!
 
Back
Top