Jump to content

7z SFX Modified Module and Tools


Oleg_Sch

Recommended 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\""

Link to comment
Share on other sites


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\

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

Is there any way to do it ?

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

It works like a charm.

I didn't find it because it is in the russian doc and since version 1.3 available on russian download link.

Thanks a lot :)

Link to comment
Share on other sites

  • 4 weeks later...

Oleg_Sch,

Thanks for your reply.

A month or more ago I could download from the svn for the latest builds.

But lately, I have been having trouble.

This is probably a problem on my end that I will need to fix somehow.

I will use the 1.4.0.1942 build.

Thanks again for your great work on this.

Link to comment
Share on other sites

I have a feature request:

I want to make a sfx installer that contians BOTH x86 and x64 installers contained in it. HOWEVER I want it to be switchless so I am requesting an architecture detection feature.

i.e.

"if x64 runprogram=blah.64.exe /s"

"if x32 runprogram=blah.32.exe /s"

Link to comment
Share on other sites

WHAAAAAT!!!

I couldn't find that in the manual anywhere...

Read Russian help.

Learn Russian! :yes:

Google translated:

Prefixes:

x64

Launch command will be executed only in 64-bit system. At the same time running a program specified in the parameter will be processed in 64-bit environment, regardless of the bit of the module (x64 or x86).

When running in 32-bit system command is ignored and the program specified in the parameter will not be executed.

x86

Launch command will be executed only in 32-bit system. When you run in 64-bit system command is ignored and the program specified in the parameter will not be executed.

Edited by gora
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...