surfdork Posted December 22, 2009 Share Posted December 22, 2009 Hi,I've searched the forums and have searched via Google yet haver not found a clear answer if this is possible. There was allot of info in these posts including binary Error running .exeEmbed an .exeFileinstall is not the solution for my project,I can't install any extra files beyond the test application I'm trying to make.I read the following and it was not clear to me in how to implent so I can get the desired functionalityTry the AutoIt3Wrapper Compiler Directives. You can find them starting in SciTE: Help > SciTE Help > Extra Utilities > AutoIt3Wrapper.Here's what I'm trying to do, sans any nefarious intent.I want to make an application the when the GUI button is clicked procdump.exe is invoked creating a dump file then placing it into a folder. This is to assist in recording defects as they occur in an application under test. I can have an AutoIt exe on the desktop but I can't leave anny files behind, even one a beneficial as procdump.exeProcDump.exe really cool!The sequence follows:On button click check for file bugs in %user% desktopCreate parent folderIf folder exists then skipCreate child bug folder and labelCopy propertiary log files to bug folderTake screen shot and save in bug folderInvoke functionality from embedded procdump procdump foo.exesave process dump in the bug folderI hve no idea how I'd call procdumpAutoItFoo run procdmp.exe foo.exe?I can do this as long as I can find out how to embed the procdump.exeAnyway, a GUI wrapper in the tool would help allot of folks. I'm sure my little app could be useful for the community as well. Link to comment Share on other sites More sharing options...
enaiman Posted December 23, 2009 Share Posted December 23, 2009 I can't install any extra files beyond the test application I'm trying to make.Create parent folderIf folder exists then skipCreate child bug folder and labelCopy propertiary log files to bug folderI wonder how come you can't install anything (FileInstall will copy the included file to the specified location) but you can make folders and copy files ?? SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
surfdork Posted December 23, 2009 Author Share Posted December 23, 2009 Log files , screen shots and .DMP files are not EXE's. These is a strict corporste policy for installing executables. procdump coud be accessed remotley and is a security concern as per corporate(silly) I don't make the rules. My application is a standalone application, no MSI as you know that is approved (in concept) All of the folfers and files within are for immedate consumption in that they will be used to file defects against the application in test. I did not include the folder/file clean component of the scrpt which will be included. One button will capture the bug one will lock eg protected from auto delete and the other will close/delete the application or at least that is how I envision it right now. I hope this requirement will change. App user ID ( different from NT login), Folder creation with AppUser ID, machine configuration copied to .txt, screen shot, search for user log and config, copy files all coded. I just need the .DMP ,Symbols refrence, gui and auto app/folder delete. Intergration of the processdmp is essential Link to comment Share on other sites More sharing options...
enaiman Posted December 23, 2009 Share Posted December 23, 2009 OK - do a search for ADS (Alternate Data Stream); there are several threads in Example Scripts. Good luck, SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
surfdork Posted December 23, 2009 Author Share Posted December 23, 2009 I'm a noob and am still not getting it. I'm not clear on what to do reading the ADS forums or anywhere else to accomplish the following. I create bugsnatch.au3 Within bugsnatch.au3 I call procdump.exe internaly, within the script I'm writing and pass parameters ( how do I do this? Is this even possible?) I compile bigsnatch.exe with proxdump.exe included The application bugsnatch.exe invokes the procdump.exe functionality when executed. If this does not work is there a script in AtoIt that can create a dmp file oncomannd? I looked and no such luck. All windows scripting relies on debug tools being present on the machine under test. I don't have that option. A user can create a dmp file via the GUI by right clicking on the process and selecting create dmp file. I've not found a way to invoke that either from any command. Any Ideas on how I could do that with AutoIt? Passing a CMD does not work, that option is not avaliable unless the win debug tools are installed. Maybe I'm missing something here. Link to comment Share on other sites More sharing options...
enaiman Posted December 23, 2009 Share Posted December 23, 2009 Your question was about how to embed an exe without using FileInstall.ADS allow you to store any number of files in Alternate Data Streams. The exe you were interrested to "embed" can be stored in one ADS for your compiled application and run from there.This post explains how to do it: #592144Have fun SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now