Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

7z SFX Modified Module and Tools

- - - - -

  • Please log in to reply
448 replies to this topic

#176
jey350

jey350
  • Member
  • 9 posts
  • OS:Vista Home Premium x64
  • Country: Country Flag
Thank you for pointing this out !
It's working perfectly now :D


How to remove advertisement from MSFN

#177
RTK999

RTK999

    Newbie

  • Member
  • 40 posts
  • OS:Windows 7 x86
  • Country: Country Flag
Hi

well i'm using the last stable release of 7zip with extra to make sfx.

My problem is this i cant make a totally quiet sfx see the attach file.

well my config is the normally know.

config:
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="Exec.exe"
;!@InstallEnd@!

and command:
copy /b 7zSD.sfx + config.txt + ProgramCompress.7z ProgramInstaller.exe

and de 7zsd.sfx

well i want to hide the cancel button i tried guimode 1 and others commands but seem not work.

Attached Files



#178
Oleg_Sch

Oleg_Sch

    Newbie

  • Member
  • 34 posts

Hi

well i'm using the last stable release of 7zip with extra to make sfx.

My problem is this i cant make a totally quiet sfx see the attach file.

well my config is the normally know.

config:
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="Exec.exe"
;!@InstallEnd@!

and command:
copy /b 7zSD.sfx + config.txt + ProgramCompress.7z ProgramInstaller.exe

and de 7zsd.sfx

well i want to hide the cancel button i tried guimode 1 and others commands but seem not work.


http://www.msfn.org/...post__p__911227

#179
gora

gora

    Member

  • Member
  • PipPip
  • 147 posts
  • OS:Windows 7 x64
  • Country: Country Flag
2 ALL

Modules 1.4 alpha build 1704 (x86 & x64) are updated (April 2, 2010) and are accessible on: http://7zsfx.info/<s...>/download.html.

#180
RTK999

RTK999

    Newbie

  • Member
  • 40 posts
  • OS:Windows 7 x86
  • Country: Country Flag


Hi

well i'm using the last stable release of 7zip with extra to make sfx.

My problem is this i cant make a totally quiet sfx see the attach file.

well my config is the normally know.

config:
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="Exec.exe"
;!@InstallEnd@!

and command:
copy /b 7zSD.sfx + config.txt + ProgramCompress.7z ProgramInstaller.exe

and de 7zsd.sfx

well i want to hide the cancel button i tried guimode 1 and others commands but seem not work.


http://www.msfn.org/...post__p__911227



sorry i didnt notice fixed it and working thanks.

#181
Eph

Eph
  • Member
  • 1 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,298 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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
gora

gora

    Member

  • Member
  • PipPip
  • 147 posts
  • OS:Windows 7 x64
  • Country: Country Flag
2 ALL

Modules 1.4 alpha build 1774 (x86 & x64) are updated (June 6, 2010) and are accessible on: http://7zsfx.info/<s...>/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

Edited by gora, 16 June 2010 - 02:27 AM.


#184
KrazyKong

KrazyKong
  • Member
  • 6 posts
  • OS:none specified
  • Country: Country Flag
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
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,066 posts
  • OS:none specified
  • Country: Country Flag

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
KrazyKong

KrazyKong
  • Member
  • 6 posts
  • OS:none specified
  • Country: Country Flag


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
gora

gora

    Member

  • Member
  • PipPip
  • 147 posts
  • OS:Windows 7 x64
  • Country: Country Flag

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

Edited by gora, 03 August 2010 - 08:37 AM.


#188
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,066 posts
  • OS:none specified
  • Country: Country Flag

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
KrazyKong

KrazyKong
  • Member
  • 6 posts
  • OS:none specified
  • Country: Country Flag
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
YumeYao

YumeYao

    a RyanVM.net member

  • Member
  • Pip
  • 73 posts
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 Files

  • Attached File  1.png   6.58KB   4 downloads

Edited by YumeYao, 08 September 2010 - 11:05 AM.


#191
visegrip

visegrip

    Newbie

  • Member
  • 36 posts
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
gora

gora

    Member

  • Member
  • PipPip
  • 147 posts
  • OS:Windows 7 x64
  • Country: Country Flag

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 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
visegrip

visegrip

    Newbie

  • Member
  • 36 posts
Thanks! gora. :thumbup

#194
sweept

sweept

    Junior

  • Member
  • Pip
  • 69 posts
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
Oleg_Sch

Oleg_Sch

    Newbie

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

#196
sweept

sweept

    Junior

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

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
sweept

sweept

    Junior

  • Member
  • Pip
  • 69 posts
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
gora

gora

    Member

  • Member
  • PipPip
  • 147 posts
  • OS:Windows 7 x64
  • Country: Country Flag

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
jey350

jey350
  • Member
  • 9 posts
  • OS:Vista Home Premium x64
  • Country: Country Flag
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
gora

gora

    Member

  • Member
  • PipPip
  • 147 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Is there any way to do it ?

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN