Embedding an .exe file
hey guys ,
am developing a java based application where my task is to embedd an .exe files say, netbeans IDE or ecllipse .. in a JFrame
now is there any way to embedd an .exe file into a Frame..or any type of container...
if not possible in java is it really possilble in other languages....
if so please tell me or any kind of info regarding it is apperciated.....
in order to make picture clear i've uploaded a pic of what exactly i mean
What do you mean by "embed" a .exe? You realise that applications are not simply GUIs, right?
Similar Messages
-
CS6: AIR(runtime embedded) creates a lot of files instead of one exe file
I want to package all necessary sources for my application in one exe file (windows 7 system).
In Flash Professional CS6 I choosed: File->Public Settings
Target: AIR 3.4 for Desktop
AIR Settings: Output as: Application with runtime embedded
Window style: Syste Chrome
Render mode: Auto
Profiles Desktop / Extended Desktop
Then I pressed publish. I got the message "Application with runtime embedded has been created".
What I want: One exe file without dependence to other files/directories
What I got is a directory structure like this:
Untitled-1.app
Adobe AIR
META-INF
mimetype
Untitled-1.exe
Untitled-1.swf
In that directory my Untitled-1.exe starts without problems.
But if I copy the exe (and ONLY the exe) to another directory
and try to start it I get the message that AIR wasn't found.
So my assumption was right that not all necassary files were packaged.
How can I package all necassary files/directories in one exe?Hi,
This is a windows -OS limitation. The embedded application .app package created on Win will appear as Folder directory.
Untitled-1.app
Adobe AIR
META-INF
mimetype
Untitled-1.exe
Untitled-1.swf
If you look, Adobe AIR contains the AIR runtime needed to run the .exe application. Hence, you would need to copy the entire content of the Untitled.app folder on Win.
Thanks,
Meenakshi
FlashPro Engg Team -
Copy & paste embeded object to file system
Cross-post at:
http://stackoverflow.com/questions/27685791/copy-paste-embeded-object-to-file-system
Background:
I wrote a large piece of VBA code in an Excel workbook to help handle a lot of repeating jobs. I found it is painful to maintain and modify the code by using the "pool" VBA Editor. Then, I decided to move those VBA code to C# solutions, which I
suppose I can benefit from the modern editor - Visual Studio.
Problem:
Although I don't know too much about VBA, I know even less about C#. Hence I got some problem when I try to "translate" my VBA code to C#, and here is one of them:
I create a document-level solution for Excel. I need to embed some files (.cab, .exe) into the solution, so when I run a method (e.g. by clicking a button), those files will be copied to the file system, and do some job.
In VBA, I embedded those files in the Excel workbook, then I can copy the embedded objects to the clipboard by using the following VBA code:
Sheet1.OLEObjects("obj_cab").COpy
And then I can paste the object to the file system by using the following VBA code:
CreateObject("Shell.Application").Namespace("C:\Sample\").Self.InvokeVerb "Paste"
In the C# solution, I can use the following equivalent method to copy the embedded object to the clipboard:
Microsoft.Office.Interop.Excel.OLEObject OLEobj = (Microsoft.Office.Interop.Excel.OLEObject)sheet1.OLEObjects("obj_cab");
OLEobj.Copy();
Then I stuck here, I don't know how to get this object from clipboard and put it to the file system. The 'CreateObject' method does not exist in C#.
Anyone can help? Either a better way to embed those files or a working way to paste those objects (files) from clipboard to the file system?
Thanks a lot!Hi FantaC,
It's possible to save the oleobject to the disk. But it's not very simple. Because when you call the Copy method of OLEObject to clipboard, it's actually not the exact the oleobject file itself, it's actually a wrapper of the file, it means that it has different
file headers and some other information from the original oleobject file.
To save oleobject on the disk, you need to analyze the byte array by yourself, this would be a little complicated. You could check the answer in this thread for the code sample:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/1ab7a178-8021-4c67-a14b-5031a254fd9c/saving-oleobject-content-to-a-file
The original poster of this thread also write a blogpost about this, you can check it here:
Saving OLEObject Content To File
Detailed information and code samples are provided in this blogpost.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi,
Were are creating a director file and have used buttons with
the "jump to movie behaviour" in order to link between several
different movies and, although though it works with the .dir files,
when we publish the movie to .exe files, the links no longer work.
does anyone know how we can rectify this please?Hi,
Mike has answered the question but just to expand somewhat.
As Mike said, make your EXE from the start movie and then all
the remaining ones
can be either DIR, DXR or DCR. You'd typically go with DXR
(protected) for an
executable. You can go with DCR (Shockwave) if you want to
compress your content.
Generally, you'd create a stub projector. Here's a tutorial
on this:
http://www.fbe.unsw.edu.au/learning/director/publishing/projector.asp
If you wanted to have a single EXE with all your movies, you
can do that but it is
not recommended as from a speed and memory management point
of view, it's not very
good.
Just one correction of Mike's message. - Once you create a
EXE, it embeds that
movie into the projector. You can rename the EXE to whatever
you like but the
original movie is still locked in there with its original
name. So, you can link to
that original movie inside the EXE without the need to have
the DIR/DXR/DCR
version.
For example say you have:
opening.dir
movie1.dir
movie2.dir
and say they link to each other.
You could create the following for your final delivery and
put them in a new
location:
start.exe
movie1.dxr
movie2.dxr
start.exe is made from opening and the other 2 movies have
been protected.
If you have a behavior inside 'opening' that links to
'movie1', the start.exe will
jump to that movie through the projector. So, you may not
even notice there was a
change. Same thing would happen if you now jumped to
'movie2'. If you now jump back
to 'opening', it will still work even though you don't have
that file. It's because
it can be found inside the EXE.
regards
Dean
Director Lecturer / Consultant
http://www.fbe.unsw.edu.au/learning/director
http://www.multimediacreative.com.au -
Error while running sawserver.exe file
Hi All ,
I installed OBIEE 11.1.5 in my machine and Database is in different machine (For RCU) .OBIEE reports are working fine but, I tried to run sawserver.exe file to register new instanceconfig file to implement multiple rpds and Catalogs in OBIEE 11G by referring the below link.
http://rnm1978.wordpress.com/2009/08/25/multiple-rpds-on-one-server-part-2-presentation-services/
Command that I used is : sawserver.exe -c D:\Middleware\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1\instanceconfigdemo.xml
Am getting the Error : the procedure entry point long jmp count not be located in the dynamic link library orauts.dll
Thanks in Advance .Hi,
How can i do it in OBIEE 11G? Any help will be grateful
Regards,
Joni -
Can not see cFP-2220 after creating an exe file
I am using a cFP-2220 with LabView 2011. I can see the cFP-2220 with Max, the program I created runs in my PC but the data from the cFP-2220 it is slow to up date.
I access the cFP-2220 thru the network terminal and a net card in my PC.
I have created an EXE file to run in the PC for that test stand as a stand along program. The program runs but it does not see the cFP-2220 or any of the data been collected. The test stand PC does have MAX install. When I run MAX in the stand PC it sees the cFP-2220 and can read the data from the modules the PC is wire to the cFP-2220 thru a net card.Sorry for the delay to respond... I do have installed the minimun files that are available Field Piont 6.0.10 and LabView RT 11 is part of them.
I also using share variables. The program VI runs fine in my PC but when I create the exe file and deploy on the test stand it asks fot the location of the FPLV,dll and the NI_TGT.dll and it can not read or write to any of the DAQmx vi's.
I accidently remove one my FP-SG-140 from the list of inputs, I did put it back but I damage how the share variables weere working I am getting and error -1950679023 and it does not see any of my inputs.
I have another question how do I down load the variables to the cFP-2220 that is another erros that shows up when I installed other files into the cFP. -
Download stops/stuck at 99%...only .exe files
whenever (from last 2 years) i try to download an binay file .exe file...the download never compeletes....it stops at 99 %...in this way i cannot update my adobe flash player or mozilla firefox....i have no antivirus... firewall turned offf.....i tried everything....i reinstalled windows about 5 times in last two years but the problem is same.....if you cannot help me then upload the latest flash player(full 16 or 17 mb i think) as a rar file on any site and send link but help me in solving my problem...
two pictures uploaded...the difference between both is the time difference of 2 minutesIt's quite clearly trying to run some sort of security scan on the downloaded file and something is broken so it's waiting forever for it to finish.
You can still get to the exe file, right click the download and browse to the folder it's downloading to. Make sure you can see hidden files and also do not have known file extensions hidden (every Windows user should know how to set this) you should see the file you're downloading in there and another file with the same name but with .part on the end. Right click this "part" file and select copy, paste it somewhere else (temp folder) and rename it to what it's supposed to be. Then you should be able to run it.
Alternatively, you can also use another browser to download the same file. Right click the download in Firefox and select "Copy Download Link". Then paste this link into another browser and let that download it.
There's probably something in about:config you can change to prevent the security scan from running ( browser.download.manager.alertOnEXEOpen may be worth a try ). My guess is that some antivirus program you had installed in the past inserted something into Firefox that it didn't bother to remove when the AV software was uninstalled. This kind of thing also used to break Microsoft Office as well. -
Creating a link on exported exe files
I have 9 separate projects I need to burn to a CD. I have
created an html menu. I am exporting each of the 9 projects as
stand alone exe files, each one automatically opening the next one.
But at any given time I would like the viewer to be able to exit to
the main menu. Should I just put a button linking to the main menu
on every single screen of a single project, to allow the user to
exit to the menu if they want?
FYI, I had initially created the 9 projects as html files,
linking to one another. I posted a message about that earlier. But
I am running into browser issues and don't want to run that risk
with the completed CD. Help! :)Hello Captiv8r and others,
This thread is pretty interesting. I have been struggling
with creating a project using Captivate 3 that will
reside fully on a CD. I am looking at maybe three workflows
for this, one using exe files, one using swf files and an html page
which serves as a "menu page" (the Captivate Menu builder just does
not have enough options, in terms
of graphic display, buttons, etc.), and the last one (which
is the hardest), using some sort of Flash container, a Flash
loader, and some menu buttons built in Flash, that call up
Captivate created swf files, etc. So far we have not had to track
state. I am trying to develop a training course on MS Excel, and am
using audio and Captivate for screen shots, mouse movements, etc.
After all the BS above, I do have a question. Is there a
reason to publish to an exe file in Captivate? Or what is the
reason(s) to publish a Captivate project to an exe file in the
first place. I have searched around for the answer on this, but
have found no good answer on this. Perhaps those of you more "sage"
Captivate users can provide some insight.
Thanks again for a very helpful forum,
eholz1 -
Cannot delete exe files - The action can't be completed because the file is open in Windows Explorer
We have received 3 new computers with Windows 8.1. All of us 3 have the same problem: we cannot delete exe files with message "The action can't be completed because the file is open in Windows Explorer"
For example, I download skypeinstall.exe on desktop, install the program correctly and then try to delete the file: file is in use by Windows Explorer, cannot be delete.
We reboot computer, we are able to delete the file. But, if I restore the file from the recycle bin on the desktop, I cannot delete it again until I reboot the PC. I used ProcessExplorer to see what is locking it and I can see 5 instances of explorer.exe
locking the file.
I can always reproduce the same way:
1-Reboot
2-Delete exe file
3-Restore file
4-Delete stop working and 5 explorer.exe handle are locking it.
I have tried the following so far after reading multiple threads:
- De-activating Windows Search service
- Activating User Experience service
- Deleting from command prompt (no success)
- In folder options: inactivate display icon on thumbnail and activate always display icons, never thumbnail
- Changing folder view (contents, detail, small icons...)
- Using Lock Hunter - not working until reboot
None of these worked.
We all have Windows 8.1 with Crucial SSD drive, could the problem be linked with the SSD drive incompatibility?
Any help would be appreciated.Hi,
Please try to make a clean boot for your system, then check if this problem resolved.
Clean Boot: http://support.microsoft.com/kb/929135
If problem persists, try to open Resource Monitor to check handle of Explorer.exe, if there any exception, end them for test.
Roger Lu
TechNet Community Support -
Reg : Executing .exe file from application server
Dear Experts,
i have a requirement to execute an .exe file from application server,i tried with method CL_GUI_FRONTEND_SERVICES=>EXECUTE but it executes .exe file from presentation server only.can
anyone kindly clarify to execute .exe file from application server?
Thanks in advance,
SujayHi,
Did you search before posting?
Re: Execute a .exe file present in the Application Server
Vikranth -
Old version Source code to .exe file conversion
I have a programming GUI source code (written in an older version of LabVIEW). Can it be supported by LABview Evaluation version 10.0.1 and be converted to an .exe file. How can I convert and use source code file for programming? What do I need to convert and how?
I'm new to LABview. Please help!!2010 can open VIs written in LabVIEW 6.0 or newer. Just double click on the top level VI. You will also need to install any hardware drivers (i.e. GPIB, DAQ, etc) that the old program used.
With the evaluation version, you can create an exe but it will have a watermark on the front panel. -
Can't open important file dropped my mistake in exe file from Firefox to supress Kasperksy
Hello and thanks for replying! Here are more details on this problem:
I saw two new exe files in my USB that seem to be related to a Firefox request yesterday which was to disable a Kaspersky option of some kind until Firefox could resolve the incompatibility. I OK'd it. TodayI was moving a file that contains three years of my research and it got dropped into one of these exe files by mistake and I now I cannot access it, copy it move it, or undo the prior move. The file that has trapped my research file is named 36f5e0470ef12f4ccf8016fOdcOf59 . I tried unlocking it, but could not access my file inside. All the unlocking seemed to do was change the name of the file. The files inside, along with my research file, are named: mrt.exe , mrttub.exe , and shutdown.req (this last also has dollar signs in the title which I'm afraid I cannot duplicate on my French keyboard.
I ran a virus check on both the interior file (my research file) and the exterior file (the former exe file) and at least can see that the names of my files come up in the search, so the interior file does not seem empty. There were no viruses found in either the exterior or interior file. I have not unplugged by USB yet and am not sure what to try next. My operating system is Windows XP 2002 in case that helps.
I have contacted Kaspersky as well but am not sure if these files were generated from them, from Firefox, or if it is malware. Thank you very much for your help. This would be a very great loss to me and any suggestions you might have would be most appreciated!
Reards,
ElizabethHello!
And thank you so much for answering!
These file names look similar to what is there for sure. But I don't think I want to delete them at this point. The problem is that I was moving a large file full of documents I use (about 100 files) that and that entire file dropped by mistake into this .exe file. Now hundreds of my files are trapped there and I can't seem to access or copy them. I would be afraid to delete the .exe file as I think it would probably delete my 100 documents along with it.
I guess what I need to know is how to open an .exe files in a way that lets me retrieve my document. Maybe I could do something that would give me the right to access it? Right now it is read only, and it does not seem to let me change the status, or to open my file sitting inside it.
It is like a dog who ate my supper!
Thanks again for your help!
Elizabeth -
I downloaded a 7-zip file from CNET and it didn't do what I wanted and so I uninstalled it. However, all the "exe" files on the computer are now not accessible. I can get to Firefox thru a "shortcut" on my desktop for the local newspaper. The e-mail is working thru my yahoo account only. I purchased PC MightyMax and that didn't do anything for me. I've tried to restore the computer to yesterday or earlier and the restore window will not come up either.
In some cases, all EXEs being broken can indicate a malware infection.
Do you get a specific error message when you try to start a program?
I'm concerned that PC MightyMax itself might be an infection you need to remove, but let's come back to that issue. -
How to change default directory of exe file
I have created a VI that reads a template and writes on the template and saves it to a new file. When i created to an exe file, I would like for this exe to be able to be used on any computer. As such, the directory where i will open my template will change on different computers. Hence I am having this problem of how to change my VI such that it will choose this template in a new computer and set it as its default directory.
I understand that in my own computer, I can simple "set current values as default" so that my VI will always open this file from a particular path. But what i need help with is when i put it on another computer where the particular path would definitely be different. I tried using the config file.vi but I could not understand how it is used.
Please assist me in this. ThanksHi Aaron,
Micorsoft suggest to use folders like UserAppData to store files for your own programs.
Put your template in there and use GetSystemDir function to get the UserAppData path...
Or you put the template in the program folder or one of it's subfolder (not recommended by MS) and use a relative path to load it...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
How to open and play .exe file in Mac?
I am a new Mac user from of course Windows. I have a CD product catalogue which comes in a .exe format. There seemed no way that I can view the contents in Mac.
Does anyone have any solution for this?
Any help is most appreciateAs Thomas A Reed points out, an exe file is a windows application. I don't know why a product catalog would be in an exe file but I suppose it's possible. It seems more likely that the exe file is an application that either downloads the catalog or opens and displays a disk file containing the catalog; in the latter case you may already have the actual product catalog on your disk drive. Your might try using Spotlight to search for files with names containing key words related to your product catalog name. You also could use Spotlight to search file contents for key words you may recall from the catalog contents. Finally, is this possible: Use your old Windows PC or borrow one and run your "product catalog." While it is running, check for an option to export the information you need to a file in a format (say, text) that is readable on your Mac.
Maybe you are looking for
-
Selection screen fields order in report painter report..
hi experts, i have a problem with selection screen fields order in report painter report. Actually in report painter report selection screen order is different compare to report writer report selection screen. how should i get the same selection scr
-
1st place!
-
Why can't i open my mail in g-mail ?
when i open my inbox of g-mail, it seems frozen. I can see the new e-mails, but if i try to open one it say's 'loading' and stays that way. In I.E. it works just fine, also with the addon i.e. tab it works == URL of affected sites == http://www.gmail
-
Canon 7D Raw File - Show can't adjust
Hi, .2. I just got my canon 7d and I imported my RAW files to aperture 3.2.4. At first I didn't see the RAW File extra adjustment, so I close and open aperture and fter doing that, I can't add any adjustments. I can use presets, but when I I try to a
-
What does the color represent on these folders?
RoboHelp 9.0.0.228/Server 9 WebHelp Pro Single Project (upgraded from RH x5 to RH9) What does the color represent on these folders? Today is the first day the folders have appeared this way (previously, they were solid yellow). Eva