• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
Oleg_Sch

7z SFX Modified Module and Tools

511 posts in this topic

magsood

1 7zsfx.info

2 do not understand

0

Share this post


Link to post
Share on other sites

Hi,

Please help me to provide solution for the following scenario:

 

Self extracted 7z archive, after extraction, will copy result file to directory where 7z archive (exe) file was executed.

I have created following configuration file for 7zS.sfx.

 
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="run.cmd %%S" 
;!@InstallEnd@!
 
Problem that cmd environment don't see variable %%S and not replace with source directory variable.
 
When I replace %%S by %%T, "run.cmd" work properly, but I need instead temp directory the source directory.
 
Thank you very much and best regards.
  
 
0

Share this post


Link to post
Share on other sites

%CD% provides current directory

if script runs from extracted file, then that should be the variable used

0

Share this post


Link to post
Share on other sites

 

Problem that cmd environment don't see variable %%S and not replace with source directory variable.

 

 

Config:

;!@Install@!UTF-8!GUIMode="2"SetEnvironment="Var=%%S"RunProgram="run.cmd %%S";!@InstallEnd@!

run.cmd:

@Echo OffEcho %*Echo %Var%Pause

No problems :)

Edited by gora
0

Share this post


Link to post
Share on other sites

Now that 7zip is final, any chance we will see a update to these?

 

Thanks!

0

Share this post


Link to post
Share on other sites

Sorry, but 3807 was bugged and I have delete it.

And now new updates

1.5.3.3819 Stable:

 

 

* First chance exception 0x0EEDFADE from Delphi library fixed (may be raised by some auto-loaded DLLs into our process)
* Taskbar yellow icon for warnings
# The source code of 7-Zip 15.14 (December 31, 2015) is used
+ Delta filter support

 

 

 

1.6.0.3819 Beta:

 

 

# The source code of 7-Zip 15.14 (December 31, 2015) is used
# Some changes in VisualStudio project

 

 

 

Actual versions only on Russian page http://7zsfx.info/ru/download.html   or SVN http://svn.7zsfx.info

0

Share this post


Link to post
Share on other sites

Hi Oleg_Sch,

Recently I found a bug in "7zsd_160_3888.7z" stable version:

When run packed program in WinXP, then press "Win+E"(Open Explorer HotKey), The window won't open and the StartMenu button will be no response.

My WinXP is Chinese version.

Here is a sample I packed:

https://www.datafilehost.com/d/d746a159

Download and run it in WinXP, then press "Win+E", problems will be found.

Thanks for testing!

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.