I would like to laucn an application from a C# program, but I don't want
users to be able to launch the app themselves. The only way to run the
program should be to launch it from my C# application.I have looked at
ebedding the exe in my program, but I don't think that's going to work. 8 1385
Try passing some obscure command line argument, like an encrypted string.
If a user tries to start the app without it (or with an invalid one), just
don't let it start.
"Mike Gurba" <Mike Gu***@discussions.microsoft.com> wrote in message
news:63**********************************@microsof t.com... I would like to laucn an application from a C# program, but I don't want users to be able to launch the app themselves. The only way to run the program should be to launch it from my C# application.I have looked at ebedding the exe in my program, but I don't think that's going to work.
I don't have the source code for the application I want to launch, just the
..exe.
"Jako Menkveld" wrote: Try passing some obscure command line argument, like an encrypted string. If a user tries to start the app without it (or with an invalid one), just don't let it start.
"Mike Gurba" <Mike Gu***@discussions.microsoft.com> wrote in message news:63**********************************@microsof t.com...I would like to laucn an application from a C# program, but I don't want users to be able to launch the app themselves. The only way to run the program should be to launch it from my C# application.I have looked at ebedding the exe in my program, but I don't think that's going to work.
That might complicate things a little, sorry, I'll have to think about this
a little more...
"Mike Gurba" <Mi*******@discussions.microsoft.com> wrote in message
news:AD**********************************@microsof t.com... I don't have the source code for the application I want to launch, just the .exe.
"Jako Menkveld" wrote:
Try passing some obscure command line argument, like an encrypted string. If a user tries to start the app without it (or with an invalid one), just don't let it start.
"Mike Gurba" <Mike Gu***@discussions.microsoft.com> wrote in message news:63**********************************@microsof t.com... >I would like to laucn an application from a C# program, but I don't want > users to be able to launch the app themselves. The only way to run the > program should be to launch it from my C# application.I have looked at > ebedding the exe in my program, but I don't think that's going to work.
"Mike Gurba" <Mi*******@discussions.microsoft.com> wrote in message
news:AD**********************************@microsof t.com... I don't have the source code for the application I want to launch, just
the .exe.
Can the application be launched using COM? Some programs have properties
which tell how they were started. Can you tell us more about the exe? Do you
know who wrote it?
/Fredrik
It's a .Net app, I have access to older versions of the source, but not the
final release. I'm not sure if that aswers your question, I don't think I
understand what you're talking about.
Thanks
"Fredrik Wahlgren" wrote: "Mike Gurba" <Mi*******@discussions.microsoft.com> wrote in message news:AD**********************************@microsof t.com... I don't have the source code for the application I want to launch, just the .exe.
Can the application be launched using COM? Some programs have properties which tell how they were started. Can you tell us more about the exe? Do you know who wrote it?
/Fredrik
"Mike Gurba" <Mi*******@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com... It's a .Net app, I have access to older versions of the source, but not
the final release. I'm not sure if that aswers your question, I don't think I understand what you're talking about.
Thanks
I was thinking about applications like MS Word. I think it has this kind of
property. One thing you can do is to make the application file invisible.
That should make it difficult for most users to double click it.
/Fredrik
Hi,
Have you dismissed embedding the program completely? It sounds like it
could be a good option; especially if you don't have access to the
source off the app you want to call to put security options in it. From what you are saying I would personally go for embedding the
program, extract and run it when necessary, and have a function which
runs whenever your program ends (and/or when it's done with the .exe)
which deletes it again.
I don't know how much you have looked into embedded resources, but this
link is a starting place: http://msdn.microsoft.com/library/de...pplication.asp
Regards,
Peter Chadwick (MCP) pe**@code-explorers.com
That's what I'm leaning towards. Thanks a lot for the link.
"Peter Chadwick (MCP)" wrote: Hi,
Have you dismissed embedding the program completely? It sounds like it could be a good option; especially if you don't have access to the source off the app you want to call to put security options in it.
From what you are saying I would personally go for embedding the program, extract and run it when necessary, and have a function which runs whenever your program ends (and/or when it's done with the .exe) which deletes it again.
I don't know how much you have looked into embedded resources, but this link is a starting place:
http://msdn.microsoft.com/library/de...pplication.asp Regards,
Peter Chadwick (MCP) pe**@code-explorers.com
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Metnetsky |
last post by:
From a Java application, how would I go about executing another program?
Basically, I have a SOAP server setup waiting to receive commands to
execute on a local application (start/stop/restart) and...
|
by: Scott Zabolotzky |
last post by:
I'm using the following code to launch SIGNCODE.EXE to sign a CAB
provisioning file from an ASP.NET app. When I run the code the
exit code comes back as -1. I have not been able to determine what...
|
by: Ori :) |
last post by:
Hi guys,
I have a scenario where my application needs to run/start an application
that is already installed on my machine. let's say - run an executable
"ccc.exe".
How do I call this...
|
by: dhussong |
last post by:
I have created a Setup and Deployment project in Visual Studio.NET 2003.
After my installation has completed running I'd like to launch the EXE that I
just
installed. I've found how to launch the...
|
by: AJPlonka |
last post by:
Can anyone tell me why this doesn't start hidden?
Public Class Form1
Inherits System.Windows.Forms.Form
Public Sub New()
MyBase.New()
InitializeComponent()
End Sub
Protected Overloads...
|
by: Water Cooler v2 |
last post by:
I have a Windows Service I am writing in C# and a set of, let us say
three, other executables written in C# (mostly console applications).
I want that the Windows Service must do so every few...
|
by: microb0x |
last post by:
Is there any difference in the way an Access .mdb file is launched from
directly double-clicking the file through windows explorer versus using
code within another Access file to launch the...
|
by: Toon Knapen |
last post by:
Dear all,
I'm looking into launching python in parallel using MPI. There are many
projects already doing this but I would like to understand how this can
be done in a portable way.
For...
|
by: julia.druce |
last post by:
I can't seem to launch a process as a different user and hide the
window as well. If i don't specify the user, my window launches
hidden. But when I specify a user, the executable.exe process...
|
by: franckspike |
last post by:
Launching a process (exe) using the same process id as the launcher,
how is it possible ?
I want my VCStudio to launch my executable (which is not in
developpement) and this exe will launch the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |