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
  • 7
  • 8
  • 9
  • 10
  • 11
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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

#161 User is offline   DaRk MaDnEsS 

  • Newbie
  • Group: Members
  • Posts: 39
  • Joined: 23-July 09
  • OS:Windows 7 x86

Posted 13 December 2009 - 08:53 AM

View PostJonnyboy82, on Dec 13 2009, 12:35 AM, said:

View PostDaRk MaDnEsS, on Dec 12 2009, 05:49 AM, said:

nice i made a work around to use a vbs commands but this require administrator

just made my day thxxxx for the trick


yeah, I spent half a day trying to get a vbs script to do what took 5 seconds with this mod.


lool well it took me 1 day to make a script

here is a part of it

Set WshShell = WScript.CreateObject("WScript.Shell")
objSh.ShellExecute var1, var2 , "", "runas", 1
Set WshShell = Nothing

the var one is the file name and var 2 is -ai

what my script does after the tool extract it runs the script then recall the file with admin

but this way is much better and faster thx finally i can get over Winrar since now 7-zip can do all what i need


#162 User is offline   mikerg 

  • Group: Members
  • Posts: 2
  • Joined: 21-December 09

Posted 21 December 2009 - 01:50 PM

:hello: Hi everyone.

I have read this thread through but I still need some help.
Thank you all very much for your assistance so far.. :thumbup

I am a retired VB6 Programmer and am looking toward making the creation of an update sfx as automated as possible

The Theory is.... A piece of software that, after selecting updated files from a list (Mainly a few exe's and help files), one click will Create an archive, convert it to an SFX and upload it to my web site for users to download and install.

So far, with a vast amount of assistance from this thread (And lots of cussing), I have achieved my aim with one small problem... the archive carries the original path and installs to that directory.
I have tried to find the switch that will prevent this but up to now, I haven't found it.

The Method;
The VB6 application;-
  • Copies all files needed for the update, to a working folder, (C:\7-Zip\spUpdate\)
  • Creates a .BAT file to create the archive and SFX file
  • Runs the BAT File
  • Uploads the resulting SFX file to the WebSite


The BAT File
@ echo off
C:
cd \7-Zip
7za a ".\spUpdate\spUpdate.7z" @".\spUpdate\spZip.txt"
copy /b 7zsd.sfx + ".\spUpdate\spUpdateConfig.txt" + ".\spUpdate\spUpdate.7z" ".\spUpdate\spUpdate.exe


The File Name List ("C:\7-Zip\spUpdate\spZip.txt")
spUpdate\spDiary.exe
spUpdate\SP Utilities.exe
spUpdate\SPDIARY_TEMPLATE.MDB


The Config File ("C:\7Zip\spUpdate\spUpdateConfig.txt")
;!@Install@!UTF-8!
InstallPath="%PROGRAMFILES%\\spDiary"
ExtractTitle="Preparing the installation..."
;!@InstallEnd@!


There are probably faults with the above as I find all the different 7z and sfx versions a little confusing and have probably used conflicting versions of each. I am hoping someone can correct me on any mistakes I have made..
In saying this, It Actually works.

My problem is;-
On the Target Machine, although the sfx finds "C:\Program Files\spDiary\" as requested in the Config command: Installpath="%PROGRAMFILES%\\spDiary", it creates an additional "spUpdate\" folder and places the files in there.
ie: "C:\Program Files\spDiary\spUpdate\"

As a work around, I can use the root of one of the hard drives as a 'Work Folder' but don't like that idea.

Your assistance with this will be greatly appreciated.

~Mike~

#163 User is offline   foxyshadis 

  • Group: Members
  • Posts: 2
  • Joined: 08-June 09

Posted 23 December 2009 - 04:04 AM

View Postmikerg, on Dec 21 2009, 11:50 AM, said:

So far, with a vast amount of assistance from this thread (And lots of cussing), I have achieved my aim with one small problem... the archive carries the original path and installs to that directory.
]
~Mike~

cd to the folder and call 7zip from there:
@echo off
cd /d C:\7-Zip\spUpdate
..\7za a ".\spUpdate.7z" @".\spZip.txt"
copy /b ..\7zsd.sfx + ".\spUpdateConfig.txt" + ".\spUpdate.7z" ".\spUpdate.exe

Modify your file list accordingly.



Now I have a question of my own. How do I specify that the folder I want to decompress into should be an ntfs-compressed folder? That would cut down enormously on the disk thrashing, and with today's processors it's virtually zero overhead. Unfortunately, it seems like I can't do anything or call any files pre-decompression, short of making my own loader. Is this possible now, or can it be put into the sfx?

#164 User is offline   mikerg 

  • Group: Members
  • Posts: 2
  • Joined: 21-December 09

Posted 24 December 2009 - 03:47 AM

View Postfoxyshadis, on Dec 23 2009, 10:04 AM, said:

cd to the folder and call 7zip from there:
@echo off
cd /d C:\7-Zip\spUpdate
..\7za a ".\spUpdate.7z" @".\spZip.txt"
copy /b ..\7zsd.sfx + ".\spUpdateConfig.txt" + ".\spUpdate.7z" ".\spUpdate.exe

Modify your file list accordingly.

Thanks for the help foxyshadis.
I shall try this theory over Christmas (If I can sneak away from the family)

I have already learned something from you.... Its amazing... I have been writing .bat files since Dos 4.2 days and was not aware of the CD /D switch.. Saves an extra line of code :thumbup

Happy Christmas to you and all

~Mike~

#165 User is offline   gora 

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

Posted 27 February 2010 - 12:48 PM

2 All

Modules 1.4 alpha build 1659 (x86 & x64) are updated (February 12, 2010) and are accessible on Russian forum.

The translator is necessary for a translation of site and help (manual) to English language.

#166 User is offline   jey350 

  • Group: Members
  • Posts: 9
  • Joined: 01-March 10
  • OS:Vista Home Premium x64
  • Country: Country Flag

Posted 01 March 2010 - 03:35 AM

Hi all,

I have an issue with InstallPath in 7zip sfx config file.

In the script below, "Hello World" is well diplayed, but sfx is extracted to default tmp file instead of InstallPath.

;!@Install@!UTF-8!
BeginPrompt="Hello World"
InstallPath="BSY"
;!@InstallEnd@!



My system is Vista home x64.

Any idea ?

#167 User is offline   gora 

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

Posted 01 March 2010 - 03:47 AM

2 jey350
All works. The folder is created near to SFX archive. Where there is your SFX archive? Can be on CD, or OS (or the antivirus) does not allow to create a folder?

#168 User is offline   jey350 

  • Group: Members
  • Posts: 9
  • Joined: 01-March 10
  • OS:Vista Home Premium x64
  • Country: Country Flag

Posted 01 March 2010 - 04:26 AM

View Postgora, on 01 March 2010 - 03:47 AM, said:

2 jey350
All works. The folder is created near to SFX archive. Where there is your SFX archive? Can be on CD, or OS (or the antivirus) does not allow to create a folder?


I put my SFX in "C:\Users\Me\AppData\Local\Temp" a folder I am sure I have write premission.

Thanks to spend time for me :)

#169 User is offline   gora 

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

Posted 01 March 2010 - 06:10 AM

Your archive test.exe is in C:\Users\Me\AppData\Local\Temp\test.exe. After its start and pressing button "OK" in a dialog box folder C:\Users\Me\AppData\Local\Temp\BSY is created? If "yes", all is correct!

#170 User is offline   jey350 

  • Group: Members
  • Posts: 9
  • Joined: 01-March 10
  • OS:Vista Home Premium x64
  • Country: Country Flag

Posted 01 March 2010 - 07:10 AM

View Postgora, on 01 March 2010 - 06:10 AM, said:

Your archive test.exe is in C:\Users\Me\AppData\Local\Temp\test.exe. After its start and pressing button "OK" in a dialog box folder C:\Users\Me\AppData\Local\Temp\BSY is created? If "yes", all is correct!



C:\Users\Me\AppData\Local\Temp\BSY isn't created, sfx is extracted to default 7zip temp directory (ex: 7zOD15B.tmp) instead of InstallPath.

#171 User is offline   gora 

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

Posted 01 March 2010 - 07:15 AM

View Postjey350, on 01 March 2010 - 07:10 AM, said:

default 7zip temp directory (ex: 7zOD15B.tmp) instead of InstallPath.

You used modified modules? x64 or x86? Version modules?

Give the link to your test SFX archive.

This post has been edited by gora: 01 March 2010 - 07:19 AM


#172 User is offline   jey350 

  • Group: Members
  • Posts: 9
  • Joined: 01-March 10
  • OS:Vista Home Premium x64
  • Country: Country Flag

Posted 01 March 2010 - 07:47 AM

I'm using standard module in version 4.65 in x86.
Here is the link:
http://dl.free.fr/p0Uc6QHiR

I put the sfx called test.exe and the build source in archive.

#173 User is offline   gora 

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

Posted 01 March 2010 - 09:10 AM

Standard modules have no parametre InstallPath. This parametre is in the modified modules only.

#174 User is offline   jey350 

  • Group: Members
  • Posts: 9
  • Joined: 01-March 10
  • OS:Vista Home Premium x64
  • Country: Country Flag

Posted 02 March 2010 - 02:25 AM

I'm using 7zS.sfx, I probably made a confusion in what I've told and it's the modified module.

#175 User is offline   gora 

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

Posted 02 March 2010 - 02:48 AM

View Postjey350, on 02 March 2010 - 02:25 AM, said:

I'm using 7zS.sfx, I probably made a confusion in what I've told and it's the modified module.

No, you use the standard module. Look properties of the module, at standard (which you use) so:

Quote

CompanyName : Igor Pavlov
FileDescription : 7z Setup SFX
FileVersion : 4.65
InternalName : 7zS.sfx
LegalCopyright : Copyright © 1999-2009 Igor Pavlov
OriginalFilename : 7zS.sfx.exe
ProductName : 7-Zip
ProductVersion : 4.65

And at the modified module so:

Quote

CompanyName : Oleg N. Scherbakov
FileDescription : 7z Setup SFX (x86)
FileVersion : 1.4.0.1672
InternalName : 7ZSfxMod
LegalCopyright : Copyright © 2005-2010 Oleg N. Scherbakov
OriginalFilename : 7ZSfxMod_x86.exe
PrivateBuild : February 25, 2010
ProductName : 7-Zip SFX
ProductVersion : 1.4.0.1672

Site of the modified module:http://7zsfx.info
New versions of the modified module:http://7zsfx.info/ru/download.html
The newest versions on Russian forum

#176 User is offline   jey350 

  • Group: Members
  • Posts: 9
  • Joined: 01-March 10
  • OS:Vista Home Premium x64
  • Country: Country Flag

Posted 02 March 2010 - 03:11 AM

Thank you for pointing this out !
It's working perfectly now :D

#177 User is offline   RTK999 

  • Newbie
  • Group: Members
  • Posts: 40
  • Joined: 08-December 07
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 01 April 2010 - 10:15 PM

Hi

well i'm using the last stable release of 7zip with extra to make sfx.

My problem is this i cant make a totally quiet sfx see the attach file.

well my config is the normally know.

config:
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="Exec.exe"
;!@InstallEnd@!

and command:
copy /b 7zSD.sfx + config.txt + ProgramCompress.7z ProgramInstaller.exe

and de 7zsd.sfx

well i want to hide the cancel button i tried guimode 1 and others commands but seem not work.

Attached File(s)



#178 User is offline   Oleg_Sch 

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

Posted 01 April 2010 - 10:58 PM

View PostRTK999, on 01 April 2010 - 10:15 PM, said:

Hi

well i'm using the last stable release of 7zip with extra to make sfx.

My problem is this i cant make a totally quiet sfx see the attach file.

well my config is the normally know.

config:
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="Exec.exe"
;!@InstallEnd@!

and command:
copy /b 7zSD.sfx + config.txt + ProgramCompress.7z ProgramInstaller.exe

and de 7zsd.sfx

well i want to hide the cancel button i tried guimode 1 and others commands but seem not work.


http://www.msfn.org/...post__p__911227

#179 User is offline   gora 

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

Posted 02 April 2010 - 01:20 AM

2 ALL

Modules 1.4 alpha build 1704 (x86 & x64) are updated (April 2, 2010) and are accessible on: http://7zsfx.info/ru/download.html.

#180 User is offline   RTK999 

  • Newbie
  • Group: Members
  • Posts: 40
  • Joined: 08-December 07
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 02 April 2010 - 04:21 PM

View PostOleg_Sch, on 01 April 2010 - 10:58 PM, said:

View PostRTK999, on 01 April 2010 - 10:15 PM, said:

Hi

well i'm using the last stable release of 7zip with extra to make sfx.

My problem is this i cant make a totally quiet sfx see the attach file.

well my config is the normally know.

config:
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="Exec.exe"
;!@InstallEnd@!

and command:
copy /b 7zSD.sfx + config.txt + ProgramCompress.7z ProgramInstaller.exe

and de 7zsd.sfx

well i want to hide the cancel button i tried guimode 1 and others commands but seem not work.


http://www.msfn.org/...post__p__911227



sorry i didnt notice fixed it and working thanks.

Share this topic:


  • 22 Pages +
  • « First
  • 7
  • 8
  • 9
  • 10
  • 11
  • 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