473,378 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Launching Hidden Executable

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.
Jul 21 '05 #1
8 1382
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.

Jul 21 '05 #2
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.


Jul 21 '05 #3
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.


Jul 21 '05 #4

"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
Jul 21 '05 #5
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

Jul 21 '05 #6

"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
Jul 21 '05 #7
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

Jul 21 '05 #8
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

Jul 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
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...
0
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...
4
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...
7
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...
16
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...
1
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...
0
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...
0
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...
0
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...
1
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.