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
  • 11
  • 12
  • 13
  • 14
  • 15
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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

#241 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:28 PM

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

;!@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@!

+


not work


#242 User is offline   myselfidem 

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

Posted 18 June 2011 - 04:48 PM

You can find help also reading the guide, here:

http://7zsfx.info/en/

As example given for Total Commander:
Spoiler

This post has been edited by myselfidem: 18 June 2011 - 04:52 PM


#243 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 - 09:28 PM

View Posteltunisie, on 18 June 2011 - 03:24 PM, said:

not working

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



#244 User is offline   eltunisie 

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

Posted 19 June 2011 - 10:05 AM

I need true code please
i need to know What meaning of :
%Var1%
%Var2%
%PathTC%
%DelKey1%
%DelKey2%

#245 User is offline   ricktendo 

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

Posted 19 June 2011 - 10:51 AM

View Posteltunisie, on 19 June 2011 - 10:05 AM, said:

I need true code please
i need to know What meaning of :
%Var1%
%Var2%
%PathTC%
%DelKey1%
%DelKey2%

They are whatever you make them

#246 User is offline   myselfidem 

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

Posted 19 June 2011 - 02:10 PM

@eltunisie
After many tests I see that works if I add a folder to copy the files inside "Systemdrive%\\Folders", like this:

config.txt
-------------
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\Folders /s /e /i /y"
;!@InstallEnd@!

Give the name you want for the destination folder! This one will be created with the name you give!

Works fine!

Remember to save the config.txt in UTF-8 encoding

This post has been edited by myselfidem: 19 June 2011 - 02:55 PM


#247 User is offline   eltunisie 

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

Posted 19 June 2011 - 02:34 PM

View Postmyselfidem, on 19 June 2011 - 02:10 PM, said:

@eltunisie
After many tests I see that works if I add a folder to copy the files inside "Systemdrive%\\Folders", like this:

config.txt
-------------
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="cmd /c xcopy %%T\\.* %SYSTEMDRIVE%\\Folders /s /e /i /y"
;!@InstallEnd@!

Give the name you want for the destination folder! This one will be created with the name you give!

Remember to save the config.txt in UTF-8 encoding


thanks
but i need to copy ghost files and boot.ini to c:\
if this fildes add in folder inside c:\ not woke in boot windwos

#248 User is offline   myselfidem 

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

Posted 19 June 2011 - 02:37 PM

I've updated my last post about a little error and added hidcon: (to hide the command window)
RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\Folders /s /e /i /y"

You can also use a batch file to copy your files inside C:\ using SFX modified module!

config.txt
-------------
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="hidcon:install.cmd"
;!@InstallEnd@!

This post has been edited by myselfidem: 19 June 2011 - 02:56 PM


#249 User is offline   myselfidem 

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

Posted 19 June 2011 - 03:27 PM

Works fine like below!! :rolleyes:

You can do like this and your folders will be copied on C:\ drive

config.txt
----------------
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\ /s /e /i /y"
;!@InstallEnd@!

Tested and works fine!

Enjoy!

This post has been edited by myselfidem: 20 June 2011 - 03:49 AM


#250 User is offline   eltunisie 

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

Posted 20 June 2011 - 04:44 AM

View Postmyselfidem, on 19 June 2011 - 03:27 PM, said:

Works fine like below!! :rolleyes:

You can do like this and your folders will be copied on C:\ drive

config.txt
----------------
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\ /s /e /i /y"
;!@InstallEnd@!

Tested and works fine!

Enjoy!


I'm sorry
not working
I will uplode my files and you say what the wrong???????
http://www.mediafire...7h8lcrk916w6lqd

#251 User is offline   myselfidem 

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

Posted 20 June 2011 - 04:55 AM

You need to create a config.bat to have your .exe file for silent installation!

Rename your run.cmd as config.bat and launch this batch file!

You will have your .exe file!

*Edit: just add the switch /h inside config.txt for the hiden files!
like this:

;!@Install@!UTF-8!
GUIMode="2"
RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\ /s /e /i /y /h"
;!@InstallEnd@!

Tested and works fine!
Of course you need to choose Show hiden files and folders to see your files on C:\ drive!

This post has been edited by myselfidem: 20 June 2011 - 05:09 AM


#252 User is offline   eltunisie 

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

Posted 20 June 2011 - 07:31 AM

View Postmyselfidem, on 20 June 2011 - 04:55 AM, said:

You need to create a config.bat to have your .exe file for silent installation!

Rename your run.cmd as config.bat and launch this batch file!

You will have your .exe file!

*Edit: just add the switch /h inside config.txt for the hiden files!
like this:

;!@Install@!UTF-8!
GUIMode="2"
RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\ /s /e /i /y /h"
;!@InstallEnd@!

Tested and works fine!
Of course you need to choose Show hiden files and folders to see your files on C:\ drive!


thanks
but not work :(
:blushing: pls can you make this files to exe ?????????????? :)

#253 User is offline   myselfidem 

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

Posted 20 June 2011 - 07:42 AM

Ok!
You can try this one I've tested like you want!

Just double-click on the .exe file to launch the program and see immediately the result on your C:\ drive

This post has been edited by myselfidem: 15 June 2012 - 02:20 PM


#254 User is offline   gora 

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

Posted 20 June 2011 - 07:59 AM

View Postmyselfidem, on 20 June 2011 - 04:55 AM, said:

RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\ /s /e /i /y /h"

This is an incorrect line

Variable %%T can contain spaces
Correctly written as:
RunProgram="hidcon:cmd /c xcopy *.* %SYSTEMDRIVE%\\ /s /e /i /y /h"


or so:
RunProgram="hidcon:cmd /c xcopy \"%%T\\*.*\" %SYSTEMDRIVE%\\ /s /e /i /y /h"


2 eltunisie
Write a line:
RunProgram="cmd /k xcopy \"%%T\\*.*\" %SYSTEMDRIVE%\\ /s /e /i /y /h"


and see the output into the console window

PS
Update module, you have very old

#255 User is offline   myselfidem 

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

Posted 20 June 2011 - 08:16 AM

View Postgora, on 20 June 2011 - 07:59 AM, said:

View Postmyselfidem, on 20 June 2011 - 04:55 AM, said:

RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\ /s /e /i /y /h"

This is an incorrect line

Variable %%T can contain spaces
Correctly written as:
RunProgram="hidcon:cmd /c xcopy *.* %SYSTEMDRIVE%\\ /s /e /i /y /h"


or so:
RunProgram="hidcon:cmd /c xcopy \"%%T\\*.*\" %SYSTEMDRIVE%\\ /s /e /i /y /h"




Thanks :)

The two methods works fine for me, but I think it's better to write like your example above: \"%%T\\*.*\"

@eltunisie

download link updated with the new config.txt:

http://www.mediafire.com/?3s43j1jw65ycd


*Edit: file updated and moved

This post has been edited by myselfidem: 21 June 2011 - 01:26 AM


#256 User is offline   eltunisie 

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

Posted 20 June 2011 - 09:05 AM

:D thanks thanks :thumbup :thumbup :thumbup :thumbup :thumbup :thumbup
and i used this code
----------------------------------------------------------------
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="hidcon:cmd /c xcopy \"%%T\\*.*\" %SYSTEMDRIVE%\\ /s /e /i /y /h /r /k"
;!@InstallEnd@!
------------------------------------------------------------------------------------
this is good code

#257 User is offline   vonmillhausen 

  • Group: Members
  • Posts: 3
  • Joined: 22-June 11
  • OS:none specified
  • Country: Country Flag

Posted 22 June 2011 - 09:26 AM

Hi guys,

Is it possible to get 7zSfx to exit with the same return code as an executable it runs?

For example, say I have a 7zSfx archive, with a file called setup.exe inside it, and the archive is configured to run setup.exe using RunProgram. If setup.exe exited with return code 1, is there a way to get the 7zSfx executable to also exit with return code 1?

I am pushing out a 7zSfx compressed installer to some machines using Altiris, and Altiris uses the return code to detect if the installer completed successfully. Right now it's always receiving return code 0 from the 7zSfx executable, even if the bundled setup.exe file exits with a non-zero return code, making it impossible for me to generate reports on the success rate of the installation.

Cheers,

John

#258 User is offline   gora 

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

Posted 22 June 2011 - 09:52 AM

View Postvonmillhausen, on 22 June 2011 - 09:26 AM, said:

For example, say I have a 7zSfx archive, with a file called setup.exe inside it, and the archive is configured to run setup.exe using RunProgram. If setup.exe exited with return code 1, is there a way to get the 7zSfx executable to also exit with return code 1?

The module always returns its own return code.
Return code from internal exe files can be stored in an external file only.
For example:
RunProgram="hidcon:cmd /c setup.exe & %ErrorLevel% > %SYSTEMDRIVE%\\errorcode.txt"


#259 User is offline   vonmillhausen 

  • Group: Members
  • Posts: 3
  • Joined: 22-June 11
  • OS:none specified
  • Country: Country Flag

Posted 23 June 2011 - 08:07 AM

View Postgora, on 22 June 2011 - 09:52 AM, said:

The module always returns its own return code.
Return code from internal exe files can be stored in an external file only.
For example:
RunProgram="hidcon:cmd /c setup.exe & %ErrorLevel% > %SYSTEMDRIVE%\\errorcode.txt"



Thanks Gora! Unfortunately Altiris just uses the return code, I can't get it to check the contents of a file. I might download the source from SVN and modify it for my own purposes to capture and report the internal executable's return code.

Cheers,

John

#260 User is offline   visegrip 

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

Posted 30 June 2011 - 07:36 AM

To Oleg or gora, mostly,
Can you post a list of function and feature differences between versions 1.4.1.2100 and 1.5.0.2100 of the modified module?
I have tried google search and translate for the OSZone forum but haven't quite got the differences yet.

I would like to know what the 1.5 version line can do that the 1.4 line cannot do.
Appreciate any help you can post on this.

Share this topic:


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

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



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