MSFN Forum: 7z SFX Modified Module and Tools - MSFN Forum

Jump to content


Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
  • 22 Pages +
  • « First
  • 10
  • 11
  • 12
  • 13
  • 14
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

7z SFX Modified Module and Tools Rate Topic: -----

#221 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 01 December 2010 - 12:37 PM

I have it working

Posted Image


Can change the extension .sfx to .exe


7zsd_xxx.exe -sfxversion



#222 User is offline   user_hidden 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 22-February 08

Posted 01 December 2010 - 02:29 PM

View PostKelsenellenelvian, on 01 December 2010 - 01:59 AM, said:

I cannot access that in ie or firefox at all...

Edit disabled protections, rebooted and got it.

Thanks for all yoru help.



try: http://svn.7zsfx.inf...path=%2Ftags%2F

i use the LZMA module from the 1.5 series

#223 User is offline   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,395
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 01 December 2010 - 04:45 PM

View Postgora, on 01 December 2010 - 12:37 PM, said:

I have it working

Can change the extension .sfx to .exe

7zsd_xxx.exe -sfxversion


Many thanks! :thumbup
Working like a charm.

#224 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 02 December 2010 - 06:06 AM

View Postgora, on 01 December 2010 - 12:37 PM, said:

I have it working

Can change the extension .sfx to .exe

7zsd_xxx.exe -sfxversion


Thank you ;)
It works

#225 User is offline   visegrip 

  • Newbie
  • Group: Members
  • Posts: 36
  • Joined: 19-October 08

Posted 27 December 2010 - 10:43 PM

Oleg, thanks for the update to 1.5.0.1978

#226 User is offline   Oleg_Sch 

  • Newbie
  • Group: Members
  • Posts: 32
  • Joined: 09-July 07

Posted 17 May 2011 - 03:24 AM

Modules and only download page of the site were updated. Other pages and offline help file still outdated.
1.4.1.2100-stable and 1.5.0.2100-beta can be found on download page

This post has been edited by Oleg_Sch: 17 May 2011 - 03:35 AM


#227 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 18 May 2011 - 01:38 AM

TNX Oleg for the update ;)

#228 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 20 May 2011 - 08:00 AM

Hi,

Anyone can help me adding the follwoing commands into my config.txt?
attrib -R "%userprofile%\AppData\Local\Microsoft\Windows Sidebar\Settings.ini" /S /D
COPY /Y "%~dp0Settings.ini" "%userprofile%\AppData\Local\Microsoft\Windows Sidebar\"
SET KEY=HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\Program Files\Windows Sidebar\sidebar.exe" /f


I'll apprciate yr help
Regards

#229 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 20 May 2011 - 08:17 AM

SetEnvironment="KEY=HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce"
RunProgram="hidcon:attrib -R \"%userprofile%\\AppData\\Local\\Microsoft\\Windows Sidebar\\Settings.ini\" /S /D"
RunProgram="hidcon:cmd /c COPY /Y Settings.ini \"%userprofile%\\AppData\\Local\\Microsoft\\Windows Sidebar\\\""
RunProgram="hidcon:cmd /c REG ADD %KEY%\\001 /V 1 /D \"%systemdrive%\\Program Files\\Windows Sidebar\\sidebar.exe\" /f"

File Settings.ini should be at the root of the archive

#230 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 22 May 2011 - 03:18 AM

TNX gora for yr help ;)

#231 User is offline   red death68 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 06-January 09

Posted 25 May 2011 - 06:21 AM

having issues with the 7zsd_All.sfx module everytime it extracts it extracts to a temp folder not the folder i specify and then it tries running setup.exe which i dont have as im using the archive to run a batch file to help with an uninstaller im making that uses a mix of batch vbs and hta to allow option selection then run based on options chosen any idea's on how to do this?

#232 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,230
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 May 2011 - 07:59 AM

View Postred death68, on 25 May 2011 - 06:21 AM, said:

having issues with the 7zsd_All.sfx module everytime it extracts it extracts to a temp folder not the folder i specify and then it tries running setup.exe which i dont have as im using the archive to run a batch file to help with an uninstaller im making that uses a mix of batch vbs and hta to allow option selection then run based on options chosen any idea's on how to do this?

Post your config.txt and make sure not to use a SFX that you split using 7zsplit because it will retain the previous config.txt

#233 User is offline   red death68 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 06-January 09

Posted 25 May 2011 - 10:11 AM

this is my config file its pretty simple

Quote

;!@Install@!UTF-8!
GUIMode="1"
Skip="yes"
path="sounds"
;!@InstallEnd@!


im using the 7zsd_All.sfx modual from the 1.5 beta iv also tried with like 5 other modules and getting to my wits end

all i want it to do is so the extraction then run a vbs or batch file(depending on if i use the hide option from the module)

(note i forgot the run command in the config file because i was testing without it)

#234 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 May 2011 - 10:24 AM

View Postred death68, on 25 May 2011 - 10:11 AM, said:

Quote

;!@Install@!UTF-8!
GUIMode="1"
Skip="yes"
path="sounds"
;!@InstallEnd@!

Where did you find these parameters?
These parameters does not exist!

View Postred death68, on 25 May 2011 - 10:11 AM, said:

(note i forgot the run command in the config file because i was testing without it)

Can not be tested without the run command!

#235 User is offline   red death68 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 06-January 09

Posted 25 May 2011 - 12:08 PM

the skip and path parameters were from a differnt site on google i was originally using the ones from 7zsfx.info but then switched around heres a altered version


Quote

;!@Install@!UTF-8!
GUIMode="1"
InstallPath="s"
RunProgram="test.bat"
;!@InstallEnd@!


note that test.bat may be replaced with a differnt one altogether or removed if i decide to use a start with wait from the cmd in my uninstaller

if i do the cmd batch will simnply say to start /wait "sounds.exe" "%path%\sounds.exe"

%path% will be defined earlier in the batch or defined as a differnt variable like %var%

This post has been edited by red death68: 25 May 2011 - 12:22 PM


#236 User is offline   Asok 

  • Group: Members
  • Posts: 6
  • Joined: 28-May 11
  • OS:XP Pro x86
  • Country: Country Flag

Posted 28 May 2011 - 11:36 PM

Hi,

The modified .sfx modules are great: they're the basis for all of my tools. In fact, my most important tool is an sfx-based tool that makes other sfx-based tools by providing a customized command line interface to build the config.txt file, specify the files to be zipped and included, and to copy everything to the .exe file.

(That tool, makeexe.exe can be found here Download MakeExe.exe. Unzip it and then type MakeExe.exe /? and/or use 7z to unpack it and see the internal parts and readme files. I've also attached MakeExe.exe here.)

At any rate, I have a great need to know the directory from which a tool is called, because many of my tools have relative file and/or directory names as parameters, for example:

myuncompress.exe dir1 dir2 ...

I need something like:

myuncompress.exe -SetEnvironment="MY_CD=%CD%" dir1 dir2 ...

only where the

-SetEnvironment="MY_CD=%CD%"

is instead done either in config.txt and/or is supplied by a new intrinsic variable akin to %%T or %%S,
because I don't won't my users to have to specify irrelevant information as a tool parameter.

I've tried several things and none work.

For instance, including

SetEnvironment="MY_CD=%%CD%%" into config.txt merely yields:

MY_CD=%CD%

when the archive program accesses MY_CD.

The situation is hopeless if a system temp directory is used for the extraction, so when I need a program that uses
relative file/directory names, I have the archive extracted into a directory relative to the invoking directory with
a config.txt file similar to the following:

;!@Install@!UTF-8!
SetEnvironment="USE_TEMP_DIR=NO"
InstallPath=".\\TempExtractDiretory"
SetEnvironment="EXTRACT_DIR=%%T"
GUIMode="1"
ExtractTitle="Extracting myuncompress.bat"
RunProgram="myuncompress.bat"
Delete="%%T"
;!@InstallEnd@!

Inside myuncompress.bat, I have code like

Set SavedExtractDir=%CD%

IF DEFINED EXTRACT_DIR (
IF /I "%USE_TEMP_DIR%" NEQ "YES" (CD ..)
)

to decide if the extraction directory is relative to the calling directory, and then by doing

CD ..

I can obtain the directory from which the archived program was invoked.


It would be so much simpler, so much more useful, and so much more elegant if a new variable like %%C
was made available to indicate the invoking directory. (Note that %%S does not work because that is the
location of the archive program and not the directory from which it was invoked.)

(Another possibility would be to add another well-defined environmental variable %InvocationDirectory% that contains the directory path of the invoking directory, similar to %CommonDesktop%, %CommonDocuments%, etc.)

Thanks, Asok.



PostScript:

Well, at least I now know why

SetEnvironment="MY_CD=%%CD%%"

does not work.

The source code uses the "ExpandEnvironmentStrings" string function to expand environmental variables, but a community comment on the MS msdn.microsoft.com web page that documents this functions notes:

"The 'CD' and 'ERRORLEVEL' values are not expanded
Note that this function really doesn't work the same way as the CMD shell at all -- like the documementation notes, it doesn't do the fancy expansion. But it also doesn't expand the CD or ERRORLEVEL "variables" either."

I really need for the source code to make a call to GetCurrentDirectory and put the results in an evironmental value, because that looks like that is the only way this information will be available to the user program.

Attached File(s)


This post has been edited by Asok: 29 May 2011 - 12:55 PM


#237 User is offline   eltunisie 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 17-February 11
  • OS:XP Pro x86
  • Country: Country Flag

Posted 18 June 2011 - 11:57 AM

haiiiiiiiiiiiiiiiiii
I need to copy some files to c:\
i used this code but not working :
--------------------------------------------
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="cmd /c xcopy *.* \"%SystemDrive%" /y /h"
;!@InstallEnd@!
---------------------------------------------
What the true code i used to copy????????????

#238 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,230
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 June 2011 - 12:38 PM

;!@Install@!UTF-8!
GUIMode="2"
RunProgram="cmd /c xcopy *.* \"%SystemDrive%\" /y /h"
;!@InstallEnd@!


Probably because you were missing a backslash from one of your quotes

Edit: try this slightly improved version (hides console window and added %%T=full extraction path)

;!@Install@!UTF-8!
GUIMode="2"
RunProgram="hidcon:xcopy \"%%T\\*.*\" \"%SystemDrive%\" /y /h"
;!@InstallEnd@!

This post has been edited by ricktendo64: 18 June 2011 - 12:41 PM


#239 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 June 2011 - 12:47 PM

View Postricktendo64, on 18 June 2011 - 12:38 PM, said:

and added %%T=full extraction path

This is too much ... :)
possible way:
RunProgram="xcopy *.* %SystemDrive% /y /h"


This post has been edited by gora: 18 June 2011 - 12:47 PM


#240 User is offline   eltunisie 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 17-February 11
  • OS:XP Pro x86
  • Country: Country Flag

Posted 18 June 2011 - 03:24 PM

View Postgora, on 18 June 2011 - 12:47 PM, said:

View Postricktendo64, on 18 June 2011 - 12:38 PM, said:

and added %%T=full extraction path

This is too much ... :)
possible way:
RunProgram="xcopy *.* %SystemDrive% /y /h"





not working

Share this topic:


  • 22 Pages +
  • « First
  • 10
  • 11
  • 12
  • 13
  • 14
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy