Eph Posted April 22, 2010 Share Posted April 22, 2010 Hi!This looks like just the thing I need. I have a setup (multi file/directories) that I want to distribute as 1 file so I tried this.I get a problem though. When my setup application should start to copy files that was included in the 7z file it says it can't find the files.So, I started to look at this. I run my SFX exe which I created like this:CONFIG.TXT;!@Install@!UTF-8!GUIMode="2"RunProgram="MyApp\setup.exe";!@InstallEnd@!Andcopy /b 7zsd_All.sfx + config.txt + MySetup.7z Test.exeI then run test.exe and it takes a while (a lot of files) and at the same time I go to my users temp folder and see that it is decompressing all the files into a 7ZipSfx.000 directory.Everything perfect so far!Then it automatically starts my setup.exe and I click through my setup steps. Then the setup comes to the stage when it should start copying files and I get my error message which says that it can't find a file it should copy.I now look at the temp directory and see that most of the files that were decompressed are gone, only a number of files starting with "_" are left behind and the setup.exe hasn't even finished its "thing" yet.Any ideas what's going on, why it is removing the files before the setup has finished and how to get around this problem?I'm doing this on a Windows 7 computer but the same thing happens on Windows Vista. Have not tested it on an XP machine.Ideas? Link to comment Share on other sites More sharing options...
ricktendo Posted April 22, 2010 Share Posted April 22, 2010 Some installshiled installers with setup.exe have this problem, 7zip sfx do not work so well so I use WinRAR sfx instead, it does not have this problemOne small note is that you should use two backslashes when in your config.txt to separate dirs;!@Install@!UTF-8!GUIMode="2"RunProgram="MyApp\\setup.exe" ; Two backslashes \\;!@InstallEnd@!So yea switch to WinRAR sfx just for this or try start /wait, also try calling it via cmd file Link to comment Share on other sites More sharing options...
gora Posted June 16, 2010 Share Posted June 16, 2010 (edited) 2 ALLModules 1.4 alpha build 1774 (x86 & x64) are updated (June 6, 2010) and are accessible on: http://7zsfx.info/ru/download.html.Change# The source code of 7-Zip version 9.14 beta (June 4, 2010) is used + Check necessary for unpacking process: free a place on a disk and the size of physical memory + 'WarningTitle', 'MiscFlags' parameters in a configuration file + '-mfX' switchWiki: http://7zsfx.info/en/wiki/SVN repository: http://svn.7zsfx.info Edited June 16, 2010 by gora Link to comment Share on other sites More sharing options...
KrazyKong Posted August 1, 2010 Share Posted August 1, 2010 Does anyone still have the exectools.7z from Oleg? All the links I've found all point to the now long dead http://unattended.solta.ru/exectools.7zHoping someone might still have it and wouldn't mind sharing Link to comment Share on other sites More sharing options...
jaclaz Posted August 1, 2010 Share Posted August 1, 2010 Does anyone still have the exectools.7z from Oleg? All the links I've found all point to the now long dead http://unattended.solta.ru/exectools.7zHoping someone might still have it and wouldn't mind sharing Wayback Machine!http://web.archive.org/Here:http://web.archive.org/web/20080403025159/unattended.solta.ru/unattended.en.htmjaclaz Link to comment Share on other sites More sharing options...
KrazyKong Posted August 3, 2010 Share Posted August 3, 2010 Does anyone still have the exectools.7z from Oleg? All the links I've found all point to the now long dead http://unattended.solta.ru/exectools.7zHoping someone might still have it and wouldn't mind sharing Wayback Machine!http://web.archive.org/Here:http://web.archive.org/web/20080403025159/unattended.solta.ru/unattended.en.htmjaclazHmm close, but the exectools.7z is nowhere to be seen . The search continues... Link to comment Share on other sites More sharing options...
gora Posted August 3, 2010 Share Posted August 3, 2010 (edited) Does anyone still have the exectools.7z from Oleg? All the links I've found all point to the now long dead http://unattended.solta.ru/exectools.7zHoping someone might still have it and wouldn't mind sharing From exectools.7z you want to have what files?hidcon.exe ?http://gora.7zsfx.info/test/exectools.7z Edited August 3, 2010 by gora Link to comment Share on other sites More sharing options...
jaclaz Posted August 3, 2010 Share Posted August 3, 2010 Hmm close, but the exectools.7z is nowhere to be seen . The search continues...What is the difficult part? http://web.archive.org/web/*/http://unattended.solta.ru/exectools.7zhttp://web.archive.org/web/20070223045218/http://unattended.solta.ru/exectools.7zjaclaz Link to comment Share on other sites More sharing options...
KrazyKong Posted August 3, 2010 Share Posted August 3, 2010 Wow thanks gora jaclaz, I guess I looked over your link too quickly, as when I clicked the original one, the exectools.7z file wasn't there. The second ones you posted seemed to work though. I'll have to look at this web archive more. Seems like a good thing to be able to go back in time. Link to comment Share on other sites More sharing options...
YumeYao Posted September 8, 2010 Share Posted September 8, 2010 (edited) Removing __CxxFrameHandler3(MSVCRT.DLL) dependency on x64:This entry point is available in MSVCRT.DLL of Windows7 x64/Windows Srv 2008 R2, but unfortunately, it's missing in MSVCRT.DLL of Windows XP/2003 x64.After searching, I found this post:http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesnative/thread/7099bc65-6d13-4651-aef2-cdb1d8bc78d7One reply suggests:extern "C" void *__CxxFrameHandler;extern "C" void __declspec(naked) __CxxFrameHandler3(void) { // Jump indirect: Jumps to __CxxFrameHandler _asm jmp __CxxFrameHandler ; Trampoline bounce }It's good enough on x86, I suppose you may consider using that in your Exceptions.cpp, replacing your extern "C" void __CxxFrameHandler3. Yet x64 compiler doesn't support _asm and the keyword "naked". So you have to use the bloated C code on x64:extern "C" void *__CxxFrameHandler( PEXCEPTION_RECORD rec, void * frame, PCONTEXT context, void ** dispatch );extern "C" void __CxxFrameHandler3( PEXCEPTION_RECORD rec, void * frame, PCONTEXT context, void ** dispatch ) { __CxxFrameHandler( rec, frame, context, dispatch ); }I have tested it and it passed the linking with an old MSVCRT.LIB. You could look at this and try making some exceptions while executing/debugging, to see whether this works, and consider using it in your next version.-EDIT-Added a screenshot: Edited September 8, 2010 by YumeYao Link to comment Share on other sites More sharing options...
visegrip Posted September 29, 2010 Share Posted September 29, 2010 In the Help File, 7zSD_En.chm, under "Examples" for the TotalCommander SFX,a shortcut is created using the following line:Shortcut="26,{%Var1%TOTALCMD.EXE},{},{Microsoft\\Internet Explorer\\Quick Launch},{File manager},{Total Commander}"The help text then explains as follows:A shortcut to Total Commander will be created in the current user Quick Launch panel as defined by 'type' option with the value of "26" (an undocumented feature).My questions are:Is there an undocumented 'type' option for creating a shortcut in the 'SendTo" Folder using the Shortcut= parameter? If Yes, what is the value?If there is no such type option for directly creating a shortcut in the "SendTo' Folder using this parameter, is there a workaround for doing this?I did try using '53' as the value with the {folder_for_shortcut} parameter set to {SendTo}, but this did not work.Thanks for any assistance. Link to comment Share on other sites More sharing options...
gora Posted September 29, 2010 Share Posted September 29, 2010 Is there an undocumented 'type' option for creating a shortcut in the 'SendTo" Folder using the Shortcut= parameter? If Yes, what is the value?Yes.Full list undocumented 'type' option (Russian OS):7zSfxFolder35= C:\Documents and Settings\All Users\Application Data7zSfxFolder22= C:\Documents and Settings\All Users\Ãëàâíîå ìåíþ7zSfxFolder23= C:\Documents and Settings\All Users\Ãëàâíîå ìåíþ\Ïðîãðàììû7zSfxFolder24= C:\Documents and Settings\All Users\Ãëàâíîå ìåíþ\Ïðîãðàììû\Àâòîçàãðóçêà7zSfxFolder47= C:\Documents and Settings\All Users\Ãëàâíîå ìåíþ\Ïðîãðàììû\Àäìèíèñòðèðîâàíèå7zSfxFolder46= C:\Documents and Settings\All Users\ÄîêóìåíòûCommonDocuments= C:\Documents and Settings\All Users\Äîêóìåíòû7zSfxFolder55= C:\Documents and Settings\All Users\Äîêóìåíòû\Ìîè âèäåîçàïèñè7zSfxFolder54= C:\Documents and Settings\All Users\Äîêóìåíòû\Ìîè ðèñóíêè7zSfxFolder53= C:\Documents and Settings\All Users\Äîêóìåíòû\Ìîÿ ìóçûêà7zSfxFolder31= C:\Documents and Settings\All Users\Èçáðàííîå7zSfxFolder25= C:\Documents and Settings\All Users\Ðàáî÷èé ñòîëCommonDesktop= C:\Documents and Settings\All Users\Ðàáî÷èé ñòîë7zSfxFolder45= C:\Documents and Settings\All Users\Øàáëîíû- 7zSfxFolder40= C:\Documents and Settings\gora7zSfxFolder26= C:\Documents and Settings\gora\Application Data7zSfxFolder33= C:\Documents and Settings\gora\Cookies7zSfxFolder28= C:\Documents and Settings\gora\Local Settings\Application Data- 7zSfxFolder59= C:\Documents and Settings\gora\Local Settings\Application Data\Microsoft\CD Burning7zSfxFolder34= C:\Documents and Settings\gora\Local Settings\History7zSfxFolder32= C:\Documents and Settings\gora\Local Settings\Temporary Internet Files7zSfxFolder19= C:\Documents and Settings\gora\NetHood7zSfxFolder27= C:\Documents and Settings\gora\PrintHood7zSfxFolder08= C:\Documents and Settings\gora\Recent7zSfxFolder09= C:\Documents and Settings\gora\SendTo7zSfxFolder11= C:\Documents and Settings\gora\Ãëàâíîå ìåíþ7zSfxFolder02= C:\Documents and Settings\gora\Ãëàâíîå ìåíþ\Ïðîãðàììû7zSfxFolder07= C:\Documents and Settings\gora\Ãëàâíîå ìåíþ\Ïðîãðàììû\Àâòîçàãðóçêà7zSfxFolder06= C:\Documents and Settings\gora\Èçáðàííîå7zSfxFolder05= C:\Documents and Settings\gora\Ìîè äîêóìåíòûMyDocs= C:\Documents and Settings\gora\Ìîè äîêóìåíòûMyDocuments= C:\Documents and Settings\gora\Ìîè äîêóìåíòû- 7zSfxFolder39= C:\Documents and Settings\gora\Ìîè äîêóìåíòû\Ìîè ðèñóíêè- 7zSfxFolder13= C:\Documents and Settings\gora\Ìîè äîêóìåíòû\Ìîÿ ìóçûêà- 7zSfxFolder00= C:\Documents and Settings\gora\Ðàáî÷èé ñòîë7zSfxFolder16= C:\Documents and Settings\gora\Ðàáî÷èé ñòîëUserDesktop= C:\Documents and Settings\gora\Ðàáî÷èé ñòîë7zSfxFolder21= C:\Documents and Settings\gora\Øàáëîíû7zSfxFolder38= C:\Program Files7zSfxFolder43= C:\Program Files\Common Files7zSfxFolder36= C:\WINDOWS7zSfxFolder20= C:\WINDOWS\Fonts7zSfxFolder56= C:\WINDOWS\resources7zSfxFolder37= C:\WINDOWS\system327zSfxFolder41= C:\WINDOWS\system32Note:1 Variables marked with a sign "-" in the beginning of a line, do not exist on Ò132 Users (in the resulted example "gora") on Ò13 do not exist and instead of it will be used everywhere "Default User" Link to comment Share on other sites More sharing options...
visegrip Posted October 1, 2010 Share Posted October 1, 2010 Thanks! gora. Link to comment Share on other sites More sharing options...
sweept Posted October 22, 2010 Share Posted October 22, 2010 its to bad that the %%S parameter cannot be manipulated in any way to read an sfx that has spaces in the path I even tried fooling it by adding quotes around the \"%%S\" but no matter what Ive tried, it won't return an SFX on a path with spaces.. wonderful app! Link to comment Share on other sites More sharing options...
Oleg_Sch Posted October 23, 2010 Author Share Posted October 23, 2010 sweept,please give me more info about problem, i.e. configuration file, execution pathes etc.so I was able to reproduce this problem 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