Oleg_Sch

7z SFX Modified Module and Tools

514 posts in this topic

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

0

Share this post


Link to post
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\

0

Share this post


Link to post
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?

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites
Is there any way to do it ?

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

0

Share this post


Link to post
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 :)

0

Share this post


Link to post
Share on other sites

Any possibility to get a direct download link to the latest alpha version of the module(x86) posted here?

I think its build 1942.

I can't get it from the link posted in the Ozone forum.

0

Share this post


Link to post
Share on other sites

gora, thanks for the 1.4.0 release. I will use that.

For some reason I can't get the 1.5.0 version from the svn page.

Not a major issue, so no worries.

0

Share this post


Link to post
Share on other sites

For some reason I can't get the 1.5.0 version from the svn page.

Use tags folder in repository to list all of the commited versions.

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
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"

0

Share this post


Link to post
Share on other sites

HOWEVER I want it to be switchless so I am requesting an architecture detection feature.

RunProgram="x64:blah.64.exe /s"
RunProgram="x86:blah.32.exe /s"

0

Share this post


Link to post
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
0

Share this post


Link to post
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.