executable

How to run unmanaged executable from memory rather than disc

本秂侑毒 提交于 2019-11-28 23:55:01
I want to embed a command-line utility in my C# application, so that I can grab its bytes as an array and run the executable without ever saving it to disk as a separate file (avoids storing executable as separate file and avoids needing ability to write temporary files anywhere). I cannot find a method to run an executable from just its byte stream. Does windows require it to be on a disk, or is there a way to run it from memory? If windows requires it to be on disk, is there an easy way in the .NET framework to create a virtual drive/file of some kind and map the file to the executable's

How to tell ant to build using a specific javac executable?

偶尔善良 提交于 2019-11-28 23:27:15
How can I tell ant to use a specific javac executable from the command line? I have an installation of gcj, built as part of gcc, within a library we distribute, and I'd like to have a particular piece of Java software built against that. However, it just seems to use the system-gcc, and options such as "-Dbuild.compiler" seem to want me to specify some kind of Java class rather than a filepath. I was hoping for something similar to CC in Makefiles. I'm sure it's something really simple, and I'm just being stupid. To be clear, I'd like to avoid editing the build file myself if possible. Is

ImportError: cannot import name RAND_egd

蹲街弑〆低调 提交于 2019-11-28 21:31:59
I've tried to create an exe file using py2exe. I've recently updated Python from 2.7.7 to 2.7.10 to be able to work with requests - proxies . Before the update everything worked fine but now, the exe file recently created, raising this error: Traceback (most recent call last): File "puoka_2.py", line 1, in <module> import mLib File "mLib.pyc", line 4, in <module> File "urllib2.pyc", line 94, in <module File "httplib.pyc", line 71, in <module File "socket.pyc", line 68, in <module> ImportError: cannot import name RAND_egd It could be probably repaired by changing options in setup.py file but I

Read and validate certificate from executable

爷,独闯天下 提交于 2019-11-28 21:26:33
问题 I want to validate certificates of signed executable images (by validation, I mean to tell if the signature comes from MS/Adobe/Oracle etc.). Does windows provides api for this task? How should I do that, no idea. Any help would be appreciated. I'm using Windows and C++. I want to validate native executable images, not .NET assemblies or Java jar files. UPDATE Ok, I'll try to describe what I want shortly. 1) Validate PE certificate. Is the signature valid or not. It should work when signature

How to change an executable's properties? (Windows)

那年仲夏 提交于 2019-11-28 18:42:48
When I create a .exe, I can right click it and go to properties->details. Then I get a list like: File Description | Type | Application File Version | Product Name | Product Version | Copyright | Size | 18.0 KB Date Modified | 6/16/2009 8:23 PM Language | How do I change these properties? (And on a side note, is there a way to change the icon?) If you are using C/Win32 you can add something like this to your project encapsulated in a *.rc (resource) file: VS_VERSION_INFO VERSIONINFO FILEVERSION 0,0,0,2 PRODUCTVERSION 0,0,0,2 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L

How To Store Files In An EXE

不羁岁月 提交于 2019-11-28 17:28:28
Alright, so I'm working on programming my own installer in C#, and what I'd like to do is something along the lines of put the files in the .exe, so I can do File.Copy(file, filedir); Or, if this isn't possible, is there another way of doing what I am attempting to do? I wouldn't code my own installer, but if you truely want to embed files into your assembly you could use strongly typed resources. In the properties dialog of your project open up the "Resources" tab and then add your file. You'll then be able to get the file using: ProjectNamespace.Properties.Resources.MyFile Then you'll be

possible to run RShiny app without opening an R environment?

烂漫一生 提交于 2019-11-28 17:14:29
问题 Currently I have a R shiny app, to run it I open up RStudio and execute setwd("C:/Users/Me/Desktop/R/ShinyProject2") library(shiny) ...... runApp() From a R script located in my directory. I am sending the app for review purposes to a co-workers who doesn't know how to use R. So I'm just wondering ... Is there an easy way to write an executable that directly opens the UI without having to click open R studio and execute the codes? 回答1: RStudio != R There is a simple command-line interface to

How do I build an xcode project for the itunes store?

不想你离开。 提交于 2019-11-28 17:06:29
I've got my apps running on my iphone, great, however to list on the itunes store I need the "universal binary" thing. I've tried finding answers, but I can't seem to find a concise useable explanation to doing this in xcode. I always get errors when I try to build a binary. Can anyone point me towards a basic step-by-step procedure I can follow to creating a universal executable binary which can be uploaded on the itunes store? One more thing, is there some type of app, like the rename project app, or applescript thing, that can do this for me with a few clicks? Try this: Prepare a new

Pyinstaller setting icon

帅比萌擦擦* 提交于 2019-11-28 16:53:23
I use command that: pyinstaller.exe --icon=test.ico -F --noconsole test.py All icons do not change to test.ico Some icons remain default(pyinstaller) icon... Why? all icon change OS -> windows 7 32bit, windows 7 64bit(make exe file OS) remain default icon OS -> windows 7 64bit(other PC) I know this is old and whatnot (and not exactly sure if it's a question), but after searching, I had success with this command for --onefile : pyinstaller.exe --onefile --windowed --icon=app.ico app.py Google led me to this page while I was searching for an answer on how to set an icon for my .exe, so maybe it

How can I find out if an .EXE has Command-Line Options?

ぐ巨炮叔叔 提交于 2019-11-28 16:38:37
问题 Suppose you have an .EXE and you want to check if it has Command-Line Options. How can one know if the .EXE has this ability. In my case I know that Nir Sofers WebBrowserPassView.exe has the ability to start it via cmd.exe and WebBrowserPassView.exe /stext output.txt. But how can I find out if I don't know? 回答1: The easiest way would be to use use ProcessExplorer but it would still require some searching. Make sure your exe is running and open ProcessExplorer. In ProcessExplorer find the name