Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Oleg_Sch

7z SFX Modified Module and Tools

Recommended Posts

sweept    0

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

Share this post


Link to post
Share on other sites
sweept    0

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\

Share this post


Link to post
Share on other sites
gora    6
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?

Share this post


Link to post
Share on other sites
jey350    0

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.

Share this post


Link to post
Share on other sites
jey350    0
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 :)

Share this post


Link to post
Share on other sites
visegrip    0

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.

Share this post


Link to post
Share on other sites
visegrip    0

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.

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"

Share this post


Link to post
Share on other sites
gora    6

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"

Share this post


Link to post
Share on other sites
gora    6

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

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.

×