MSFN Forum: 7z SFX Modified Module and Tools - MSFN Forum

Jump to content


Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
  • 22 Pages +
  • « First
  • 8
  • 9
  • 10
  • 11
  • 12
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

7z SFX Modified Module and Tools Rate Topic: -----

#181 User is offline   Eph 

  • Group: Members
  • Posts: 1
  • Joined: 22-April 10
  • OS:Windows 7 x64
  • Country: Country Flag

  Posted 22 April 2010 - 07:39 AM

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@!


And

copy /b 7zsd_All.sfx + config.txt + MySetup.7z Test.exe


I 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?


#182 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,229
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 April 2010 - 07:44 AM

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 problem

One 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

#183 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 June 2010 - 12:41 AM

2 ALL

Modules 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' switch

Wiki: http://7zsfx.info/en/wiki/
SVN repository: http://svn.7zsfx.info

This post has been edited by gora: 16 June 2010 - 02:27 AM


#184 User is offline   KrazyKong 

  • Group: Members
  • Posts: 6
  • Joined: 01-August 10
  • OS:none specified
  • Country: Country Flag

Posted 01 August 2010 - 01:55 AM

Does anyone still have the exectools.7z from Oleg? All the links I've found all point to the now long dead http://unattended.so...ru/exectools.7z

Hoping someone might still have it and wouldn't mind sharing :)

#185 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,447
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 01 August 2010 - 02:30 AM

View PostKrazyKong, on 01 August 2010 - 01:55 AM, said:

Does anyone still have the exectools.7z from Oleg? All the links I've found all point to the now long dead http://unattended.so...ru/exectools.7z

Hoping someone might still have it and wouldn't mind sharing :)


Wayback Machine!
http://web.archive.org/

Here:
http://web.archive.o...attended.en.htm

;)

jaclaz

#186 User is offline   KrazyKong 

  • Group: Members
  • Posts: 6
  • Joined: 01-August 10
  • OS:none specified
  • Country: Country Flag

Posted 03 August 2010 - 08:13 AM

View Postjaclaz, on 01 August 2010 - 02:30 AM, said:

View PostKrazyKong, on 01 August 2010 - 01:55 AM, said:

Does anyone still have the exectools.7z from Oleg? All the links I've found all point to the now long dead http://unattended.so...ru/exectools.7z

Hoping someone might still have it and wouldn't mind sharing :)


Wayback Machine!
http://web.archive.org/

Here:
http://web.archive.o...attended.en.htm

;)

jaclaz

Hmm close, but the exectools.7z is nowhere to be seen :(. The search continues...

#187 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 August 2010 - 08:26 AM

View PostKrazyKong, on 01 August 2010 - 01:55 AM, said:

Does anyone still have the exectools.7z from Oleg? All the links I've found all point to the now long dead http://unattended.so...ru/exectools.7z

Hoping someone might still have it and wouldn't mind sharing :)

From exectools.7z you want to have what files?
hidcon.exe ?

http://gora.7zsfx.in...st/exectools.7z

This post has been edited by gora: 03 August 2010 - 08:37 AM


#188 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,447
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 03 August 2010 - 08:36 AM

View PostKrazyKong, on 03 August 2010 - 08:13 AM, said:

Hmm close, but the exectools.7z is nowhere to be seen :(. The search continues...


What is the difficult part? :unsure:

http://web.archive.o...ru/exectools.7z

http://web.archive.o...ru/exectools.7z

jaclaz

#189 User is offline   KrazyKong 

  • Group: Members
  • Posts: 6
  • Joined: 01-August 10
  • OS:none specified
  • Country: Country Flag

Posted 03 August 2010 - 02:19 PM

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.

#190 User is offline   YumeYao 

  • a RyanVM.net member
  • Pip
  • Group: Members
  • Posts: 73
  • Joined: 10-December 05

Posted 08 September 2010 - 10:45 AM

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.m...f2-cdb1d8bc78d7
One 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:

Attached File(s)

  • Attached File  1.png (6.58K)
    Number of downloads: 3

This post has been edited by YumeYao: 08 September 2010 - 11:05 AM


#191 User is offline   visegrip 

  • Newbie
  • Group: Members
  • Posts: 36
  • Joined: 19-October 08

Posted 28 September 2010 - 09:26 PM

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.

#192 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 September 2010 - 10:30 PM

View Postvisegrip, on 28 September 2010 - 09:26 PM, said:

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):

Quote

7zSfxFolder35= C:\Documents and Settings\All Users\Application Data
7zSfxFolder22= 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\gora
7zSfxFolder26= C:\Documents and Settings\gora\Application Data
7zSfxFolder33= C:\Documents and Settings\gora\Cookies
7zSfxFolder28= C:\Documents and Settings\gora\Local Settings\Application Data
- 7zSfxFolder59= C:\Documents and Settings\gora\Local Settings\Application Data\Microsoft\CD Burning
7zSfxFolder34= C:\Documents and Settings\gora\Local Settings\History
7zSfxFolder32= C:\Documents and Settings\gora\Local Settings\Temporary Internet Files
7zSfxFolder19= C:\Documents and Settings\gora\NetHood
7zSfxFolder27= C:\Documents and Settings\gora\PrintHood
7zSfxFolder08= C:\Documents and Settings\gora\Recent
7zSfxFolder09= C:\Documents and Settings\gora\SendTo
7zSfxFolder11= 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 Files
7zSfxFolder43= C:\Program Files\Common Files
7zSfxFolder36= C:\WINDOWS
7zSfxFolder20= C:\WINDOWS\Fonts
7zSfxFolder56= C:\WINDOWS\resources
7zSfxFolder37= C:\WINDOWS\system32
7zSfxFolder41= C:\WINDOWS\system32
Note:
1 Variables marked with a sign "-" in the beginning of a line, do not exist on Т13
2 Users (in the resulted example "gora") on Т13 do not exist and instead of it will be used everywhere "Default User"

#193 User is offline   visegrip 

  • Newbie
  • Group: Members
  • Posts: 36
  • Joined: 19-October 08

Posted 01 October 2010 - 01:23 AM

Thanks! gora. :thumbup

#194 User is offline   sweept 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 08-November 05

Posted 22 October 2010 - 01:19 AM

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!

#195 User is offline   Oleg_Sch 

  • Newbie
  • Group: Members
  • Posts: 32
  • Joined: 09-July 07

Posted 22 October 2010 - 07:35 PM

sweept,
please give me more info about problem, i.e. configuration file, execution pathes etc.
so I was able to reproduce this problem

#196 User is offline   sweept 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 08-November 05

Posted 22 October 2010 - 08:55 PM

hello Oleg_Sch I'm glad you noticed this post, here is an example illustration: using some "SFX.exe" that contains some "test.txt":

Quote

RunProgram="hidcon:cmd /c COPY /Y %%T\test.txt %%S\test.txt"
or
RunProgram="hidcon:cmd /c COPY /Y %%T\test.txt \"%%S\test.txt\""


#197 User is offline   sweept 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 08-November 05

Posted 22 October 2010 - 08:57 PM

on a path that contains no spaces as C:\SFX.exe then will copy the extracted file from "%%T\test.txt" back to "c:\test.txt"(SFX DIR)
but if the SFX.exe runs for example from "C:\Documents and Settings\MyUserName\Desktop" which is a path name that contains spaces..then %%T\test.txt fails the copy task back to the %%S\

#198 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 October 2010 - 11:25 PM

View Postsweept, on 22 October 2010 - 08:55 PM, said:

Quote

RunProgram="hidcon:cmd /c COPY /Y %%T\test.txt %%S\test.txt"
or
RunProgram="hidcon:cmd /c COPY /Y %%T\test.txt \"%%S\test.txt\""


Correctly so:
RunProgram="hidcon:cmd /c COPY /Y \"%%T\\test.txt\" \"%%S\\test.txt\""
OR
RunProgram="hidcon:cmd /c COPY /Y \"test.txt\" \"%%S\\test.txt\""
OR
RunProgram="hidcon:cmd /c COPY /Y test.txt \"%%S\\test.txt\""


What version of the module?

#199 User is offline   jey350 

  • Group: Members
  • Posts: 9
  • Joined: 01-March 10
  • OS:Vista Home Premium x64
  • Country: Country Flag

Posted 05 November 2010 - 04:11 AM

Hello,

I need to pass the full path of SFX file as argument to another program I run.
%%S give the path to SFX file, I need to get a little more with the full location of SFX file.

Details:
SFX file location: C:\test\sfx.exe
%%S gives: C:\test
I want: C:\test\sfx.exe

Is there any way to do it ?

Thanks.

#200 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 05 November 2010 - 04:34 AM

View Postjey350, on 05 November 2010 - 04:11 AM, said:

Is there any way to do it ?

C:\test\sfx.exe = %%S\\%%M

Share this topic:


  • 22 Pages +
  • « First
  • 8
  • 9
  • 10
  • 11
  • 12
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

5 User(s) are reading this topic
0 members, 5 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy