exe

Not able to run the .exe file created from c#

怎甘沉沦 提交于 2019-12-02 14:29:39
问题 I have created a Windows form application using C# in visual studio 2010 connecting the database in SQL server . After all my development is done i copy the exe file generated in my machine and pasted in another machine and try to execute it but it is not working . i can see the process started in task manager but it was closed after 5 seconds . I even tried creating the setup for this application and installed in that machine still i am facing the same issue . But in my machine it is working

How can I run an exe or windows service in medium trust?

寵の児 提交于 2019-12-02 14:26:13
问题 I would like to run exes and Windows Services in Medium Trust, but all the literature I can find suggests using <system.web> <trust level="Medium"/> </system.web> for ASP.NET, so I have tried that but using code from How do you check if you are running in Medium Trust environment in .NET? it still appears to have full trust. What is the correct way to do this? 回答1: The available approaches depend on the .NET version. Prior to .NET 4.0, the CLR enforced CAS policy, which made it possible to

What is the best tool kit to transform .msi into .exe?

谁说我不能喝 提交于 2019-12-02 13:49:50
问题 I would like to encapsulate a .msi into an .exe in order to add: Hardcode folder location, example C:\Program Files (x86)\TEST\ Add installation version file Use silent installation Use of command line switches (install/uninstall) Log generation Add Windows Registry foot prints 回答1: MSI Customization : Customization of MSI files for installation is a built-in feature of the technology. there are two primary ways to customize the installation: Light Weight : You can set PUBLIC properties on

Executable files to MSI installer

杀马特。学长 韩版系。学妹 提交于 2019-12-02 13:15:38
I have a folder that includes two EXE files and a lot of other files. How do I turn that into an MSI installer or some kind of self extracting installer so that it installs Main.exe to Programs in Windows. The second EXE file is because of communication between the two EXE files. And I would prefer if it could include the "Shortcut to desktop" feature and doesn't require a license. The EXE files aren't setup files already I think. They are Python scripts changed to EXE files. This is the folder I want to turn into an MSI / Installer of some kind: So I got what I was looking for and it was

Run program.exe from eclipse plugin project

强颜欢笑 提交于 2019-12-02 12:37:39
I am writing an eclipse-plugin witch run program.exe. I have added program.exe to plugin jar file. How can a execute this program? public class Handler extends AbstractHandler { public Object execute(ExecutionEvent event) throws ExecutionException { Runtime.getRuntime().exec(/*What should I write here*/); return null; } } You can't run the program.exe from inside the plugin jar, so it needs to be extracted. In your plugin use: Bundle bundle = Platform.getBundle("plugin id"); URL url = FileLocator.find(bundle, new Path("relative path to program"), null); url = FileLocator.toFileURL(url); This

running an Executable file and then waiting for that particular exe file to no longer be running

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 11:06:04
问题 I want to run an AHK executable and then have java wait for that executable to terminate it's own process at the end of it's script and then continue, is there a function to monitor whether or not a particular exe is running? And if it's running to wait until it has stopped? for example in AHK you could do: IfExist, Appname, { insert code } I would do this project using just AHK but because AHK is so flimsy with variables and incrementing i can't get it to work it's IF and Else Statements

Disassembling file that contain big data or is compressed [closed]

半城伤御伤魂 提交于 2019-12-02 10:41:46
this is fourth day I am trying to figure out how to break down an exe. Still having no luck, file is giving debugger error right after it is runned. I am using OllyDBG, it seems that file is either compressed or contains big ammount of data. I think it is just for debugging protection, however I can not get it working. I am trying to learn assembly and this is my "new level" achievment of getting better in testing applications. All I want to change is one text to other, inside the file exe. So this is one variable change. I would be satisfied even with simple number change inside it. Just want

Why won't the loader load at the desired location

北战南征 提交于 2019-12-02 09:47:42
It is said that sometimes the loader loads the exe at an address which is different than the one assumed by the linker. What all could be the cases when loader does so?? mox Basically, this takes place in the following situations: The address at which the image prefers to be loaded is already occupied. For example, there may be another image already loaded there. The image to be loaded has been compiled with ASLR enabled. The FLG_LDR_TOP_DOWN global flag has been set, which forces modules to be loaded at the highest possible address. 来源: https://stackoverflow.com/questions/9698496/why-wont-the

how to produce a mix of dll and exe in one C# project in visual studio or other build tools?

我与影子孤独终老i 提交于 2019-12-02 09:37:53
问题 how to produce a mix of dll and exe in one C# project in visual studio or other build tools ? Is it technically possible ? Yes I know it can done in 2 or more projects . 回答1: I'm not sure what the motivations for your question are, as you can reference a .Net executable as if it were a dll anyway, but you could consider copying the exe file to a dll file with the same name (yes it's a hack but not sure of your motivations). You can automate this process using a Visual Studio post-build event

Not able to run the .exe file created from c#

*爱你&永不变心* 提交于 2019-12-02 09:34:21
I have created a Windows form application using C# in visual studio 2010 connecting the database in SQL server . After all my development is done i copy the exe file generated in my machine and pasted in another machine and try to execute it but it is not working . i can see the process started in task manager but it was closed after 5 seconds . I even tried creating the setup for this application and installed in that machine still i am facing the same issue . But in my machine it is working perfectly in the both the ways . can any one help me in finding where i went wrong . Thanks in advance