Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

7z SFX Modified Module and Tools

- - - - -

  • Please log in to reply
438 replies to this topic

#351
alfreire

alfreire

    Member

  • Members
  • PipPip
  • 121 posts
  • OS:Windows 7 x64
  • Country: Country Flag


I want extract file to Appdata\Local...

7zSfxFolder28=C:\Users\gora\AppData\Local
;!@Install@!UTF-8!
GUIMode="2"
InstallPath="%7zSfxFolder28%\\Test"
;!@InstallEnd@!

But, if user are different don't work, not...?


How to remove advertisement from MSFN

#352
gora

gora

    Member

  • Members
  • PipPip
  • 145 posts
  • OS:Windows 7 x64
  • Country: Country Flag

But, if user are different don't work, not...?

Works very well!

#353
alfreire

alfreire

    Member

  • Members
  • PipPip
  • 121 posts
  • OS:Windows 7 x64
  • Country: Country Flag


But, if user are different don't work, not...?

Works very well!

I don't understand this 7zSfxFolder28=C:\Users\gora\AppData\Local How to use it...?

Edited by alfreire, 06 September 2012 - 08:31 AM.


#354
gora

gora

    Member

  • Members
  • PipPip
  • 145 posts
  • OS:Windows 7 x64
  • Country: Country Flag

How to use it...?

;!@Install@!UTF-8!
GUIMode="2"
InstallPath="%7zSfxFolder28%\\Test"
;!@InstallEnd@!

For test:
;!@Install@!UTF-8!
Title="Variables %7zSfxVarModulePlatform% module in %%P OS"
BeginPrompt="	Check of variables %7zSfxVarModulePlatform% module in %%P OS

 Click 'OK', variables will are shown in a console window

 Click 'OK', retaining [Shift], variables will be are saved
  to the file %SystemDrive%\\vars_%7zSfxVarModulePlatform%_module_on_%%P_OS.txt"
FinishMessage="The module %7zSfxVarModulePlatform% finished operation"
; 
SetEnvironment="cmnd=@Echo Off& Title Module - %7zSfxVarModulePlatform%, OS - %%P& Echo 	Module - %7zSfxVarModulePlatform%,	OS - %%P& Echo.& Echo Folders:&Set 7zSfxFolder& Echo.& Echo Vars:&Set 7zSfxVar& Echo %%^M=%%M& Echo %%^P=%%P& Echo %%^S=%%S& Echo %%^T=%%T& Set CommonD& Set MyDoc& Echo UserDesktop=%UserDesktop%& Echo."
RunProgram="hidcon:cmd /c Echo"
RunProgram="%%P:fm0:cmd /k %cmnd%"
AutoInstall="hidcon:cmd /c Echo"
AutoInstall="%%P:fm20:hidcon:cmd /c (%cmnd%)>%SystemDrive%\\vars_%7zSfxVarModulePlatform%_module_on_%%P_OS.txt"
GUIMode="2"
GUIFlags="2+4+8+16+32+2048+4096"
;!@InstallEnd@!
;!@Install@!UTF-8:Language:1049!
Title="Переменные %7zSfxVarModulePlatform% модуля в %%P ОС"
BeginPrompt="	Проверка переменных %7zSfxVarModulePlatform% модуля в %%P ОС

 Нажмите 'OK', переменные будет показаны в окне консоли

 Нажмите 'OK', удерживая [Shift], переменные будет
  сохранены в файл %SystemDrive%\\vars_%7zSfxVarModulePlatform%_module_on_%%P_OS.txt"
FinishMessage="Модуль %7zSfxVarModulePlatform% завершил работу"
;!@InstallEnd@:Language:1049!

Version module for test 1.6 build 2496

#355
alfreire

alfreire

    Member

  • Members
  • PipPip
  • 121 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Too complicated for me... :wacko: :blink: another question, is there any way to differentiate between Win XP and Win 7, as between x86 and x64 (x86: or x64:)...? (tipe win7: winXP: or similar)
Regards an thanks by your help, I appreciate... :rolleyes:

Edited by alfreire, 06 September 2012 - 09:02 AM.


#356
myselfidem

myselfidem

    Member

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag



But, if user are different don't work, not...?

Works very well!

I don't understand this 7zSfxFolder28=C:\Users\gora\AppData\Local How to use it...?

I think %7zSfxFolder28% is a new variable inside the SFX modified module, to do this job !

Cheers

#357
alfreire

alfreire

    Member

  • Members
  • PipPip
  • 121 posts
  • OS:Windows 7 x64
  • Country: Country Flag




But, if user are different don't work, not...?

Works very well!

I don't understand this 7zSfxFolder28=C:\Users\gora\AppData\Local How to use it...?

I think %7zSfxFolder28% is a new variable inside the SFX modified module, to do this job !

Cheers

Thanks, friend... :hello:

#358
myselfidem

myselfidem

    Member

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Reading more carefully this thread we can find more explainations:

http://www.msfn.org/...post__p__940921

Edited by myselfidem, 06 September 2012 - 09:37 AM.


#359
alfreire

alfreire

    Member

  • Members
  • PipPip
  • 121 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Reading more carefully this thread we can find more explainations:

http://www.msfn.org/...post__p__940921

I just found it in OSZONE by gora...

The list of variables that can be used in the configuration file of the modified module.

 System variables ==================== ==================
 SystemDrive = C:
 - HOMEDRIVE = C:
 ALLUSERSPROFILE = C: \ Documents and Settings \ All Users
 USERPROFILE = C: \ Documents and Settings \ gora
 - APPDATA = C: \ Documents and Settings \ gora \ Application Data
 - TEMP = C: \ DOCUME ~ 1 \ gora \ LOCALS ~ 1 \ Temp
 - TMP = C: \ DOCUME ~ 1 \ gora \ LOCALS ~ 1 \ Temp
 ProgramFiles = C: \ Program Files
 CommonProgramFiles = C: \ Program Files \ Common Files
 SystemRoot = C: \ WINDOWS
 windir = C: \ WINDOWS
 ComSpec = C: \ WINDOWS \ system32 \ cmd.exe
 Path = C: \ WINDOWS \ system32; C: \ WINDOWS; C: \ WINDOWS \ System32 \ Wbem
 - HOMEPATH = \ Documents and Settings \ gora
 COMPUTERNAME = PENTUX
 FP_NO_HOST_CHECK = NO
 - LOGONSERVER = \ \ PENTUX
 - NUMBER_OF_PROCESSORS = 1
 - OS = Windows_NT
 * PATHEXT =. COM;. EXE;. BAT;. CMD;. VBS;. VBE;. JS;. JSE;. WSF;. WSH
 - PROCESSOR_ARCHITECTURE = x86
 - PROCESSOR_IDENTIFIER = x86 Family 6 Model 23 Stepping 7, GenuineIntel
 - PROCESSOR_LEVEL = 6
 - PROCESSOR_REVISION = 1707
 PROMPT = $ P $ G
 - USERDOMAIN = PENTUX
 - USERNAME = gora

 ================== Variables that exist only when you use the ====================
 7zSfxFolder35 = C: \ Documents and Settings \ All Users \ Application Data
 7zSfxFolder22 = C: \ Documents and Settings \ All Users \ Main Menu
 7zSfxFolder23 = C: \ Documents and Settings \ All Users \ Start Menu \ Programs
 7zSfxFolder24 = C: \ Documents and Settings \ All Users \ Start Menu \ Programs \ Startup
 7zSfxFolder47 = C: \ Documents and Settings \ All Users \ Start Menu \ Programs \ Administrative Tools
 7zSfxFolder46 = C: \ Documents and Settings \ All Users \ Documents
 CommonDocuments = C: \ Documents and Settings \ All Users \ Documents
 7zSfxFolder55 = C: \ Documents and Settings \ All Users \ Documents \ My Videos
 7zSfxFolder54 = C: \ Documents and Settings \ All Users \ Documents \ My Pictures
 7zSfxFolder53 = C: \ Documents and Settings \ All Users \ Documents \ My Music
 7zSfxFolder31 = C: \ Documents and Settings \ All Users \ Favorites
 7zSfxFolder25 = C: \ Documents and Settings \ All Users \ Desktop
 CommonDesktop = C: \ Documents and Settings \ All Users \ Desktop
 7zSfxFolder45 = C: \ Documents and Settings \ All Users \ Templates

 - 7zSfxFolder40 = C: \ Documents and Settings \ gora
 7zSfxFolder26 = C: \ Documents and Settings \ gora \ Application Data
 7zSfxFolder33 = C: \ Documents and Settings \ gora \ Cookies
 7zSfxFolder28 = C: \ Documents and Settings \ gora \ Local Settings \ Application Data
 - 7zSfxFolder59 = C: \ Documents and Settings \ gora \ Local Settings \ Application Data \ Microsoft \ CD Burning
 7zSfxFolder34 = C: \ Documents and Settings \ gora \ Local Settings \ History
 7zSfxFolder32 = C: \ Documents and Settings \ gora \ Local Settings \ Temporary Internet Files
 7zSfxFolder19 = C: \ Documents and Settings \ gora \ NetHood
 7zSfxFolder27 = C: \ Documents and Settings \ gora \ PrintHood
 7zSfxFolder08 = C: \ Documents and Settings \ gora \ Recent
 7zSfxFolder09 = C: \ Documents and Settings \ gora \ SendTo
 7zSfxFolder11 = C: \ Documents and Settings \ gora \ Main Menu
 7zSfxFolder02 = C: \ Documents and Settings \ gora \ Start Menu \ Programs
 7zSfxFolder07 = C: \ Documents and Settings \ gora \ Start Menu \ Programs \ Startup
 7zSfxFolder06 = C: \ Documents and Settings \ gora \ Favorites
 7zSfxFolder05 = C: \ Documents and Settings \ gora \ My Documents
 MyDocs = C: \ Documents and Settings \ gora \ My Documents
 MyDocuments = C: \ Documents and Settings \ gora \ My Documents
 - 7zSfxFolder39 = C: \ Documents and Settings \ gora \ My Documents \ My Pictures
 - 7zSfxFolder13 = C: \ Documents and Settings \ gora \ My Documents \ My Music
 - 7zSfxFolder00 = C: \ Documents and Settings \ gora \ Desktop
 7zSfxFolder16 = C: \ Documents and Settings \ gora \ Desktop
 UserDesktop = C: \ Documents and Settings \ gora \ Desktop
 7zSfxFolder21 = C: \ Documents and Settings \ gora \ Templates
 7zSfxFolder38 = C: \ Program Files
 7zSfxFolder43 = C: \ Program Files \ Common Files
 7zSfxFolder36 = C: \ WINDOWS
 7zSfxFolder20 = C: \ WINDOWS \ Fonts
 7zSfxFolder56 = C: \ WINDOWS \ resources
 7zSfxFolder37 = C: \ WINDOWS \ system32
 7zSfxFolder41 = C: \ WINDOWS \ system32

 Note:
 1 Variables marked "-" in the beginning of the line, do not exist for the T13
 2 user (in this example, "gora") on T13 does not exist and is used instead everywhere "Default User"
 Three variables marked with "*" at the start line for the T13 has a slightly different meaning (PATHEXT =. COM;. EXE;. BAT;. CMD;. VBS;. JS;. WS)
 4 Variables associated with "iron" computer user or computer you will have a different value. 

-------

I hope not to bother posting it here, if so I apologize in advance...


Version module for test 1.6 build 2496

I not find this version here http://7zsfx.info/en/ last version is 1.5 beta (build 2478) Where I can find it...?


I want extract file to Appdata\Local...

7zSfxFolder28=C:\Users\gora\AppData\Local
;!@Install@!UTF-8!
GUIMode="2"
InstallPath="%7zSfxFolder28%\\Test"
;!@InstallEnd@!

Now I understand... :whistle:

Edited by alfreire, 06 September 2012 - 10:09 AM.


#360
gora

gora

    Member

  • Members
  • PipPip
  • 145 posts
  • OS:Windows 7 x64
  • Country: Country Flag

I not find this version here http://7zsfx.info/en/ last version is 1.5 beta (build 2478) Where I can find it...?

Upss ... Oleg has not announced a version 1.6.2496 of modules, but they are included in the latest version of "Button ..."

#361
alfreire

alfreire

    Member

  • Members
  • PipPip
  • 121 posts
  • OS:Windows 7 x64
  • Country: Country Flag

I not find this version here http://7zsfx.info/en/ last version is 1.5 beta (build 2478) Where I can find it...?

Upss ... Oleg has not announced a version 1.6.2496 of modules, but they are included in the latest version of "Button ..."

Thanks by all... ;-)

#362
alfreire

alfreire

    Member

  • Members
  • PipPip
  • 121 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Thanks gora,
I just looked through the log for 1.5.0.2100 from revision 1 - 80 and make out four feature additions:

1."waitall" prefix ('wait all childs' of the executed process)
2. MiscFlag '4' - run as administrator
3. BeginPrompt timeout
4. New module variable %%P - OS platform

Also, one initial addition has been removed:
Deletion of redefined config parameters "Parameter=-"

As far as differences from version 1.4.1.2100, is this list correct and complete?
Thanks again.



Hello again... there is any option to "Run as Admin" 7zsfx silent file...? I use MiscFlags="4", but doesn't work...
Regards... ;-)

Edited by alfreire, 11 September 2012 - 12:06 PM.


#363
MitsuMan

MitsuMan

    Member

  • Members
  • PipPip
  • 149 posts
Hello

i have a program i would like to be unpack to a folder and make a Shortcut to the desktop for all users.
that i have make but i only works in windows, if i make it run in WPI it unpack but dont make a desktop shortcut

The file has been make by winrar.

BD_Rebuilde.exe

;The comment below contains SFX script commands

Path=C:\Program Files\
Shortcut=D, "C:\Program Files\BD_Rebuilder\BDRB-Genvej.lnk"
SavePath
Silent=1
Overwrite=1

What is wrong with this here. i have try so many things.

I have also try this

Users\All Users\desktop
Users\Public\Public Desktop

#364
MitsuMan

MitsuMan

    Member

  • Members
  • PipPip
  • 149 posts
Hello

P.S if i try to do it after windows is install and run wpi then it works fine to unpack and make a desktop and show over

#365
myselfidem

myselfidem

    Member

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag

... there is any option to "Run as Admin" 7zsfx silent file...? I use MiscFlags="4", but doesn't work...

Could you post (copy) your config.txt ?

Edited by myselfidem, 14 September 2012 - 10:29 AM.


#366
alfreire

alfreire

    Member

  • Members
  • PipPip
  • 121 posts
  • OS:Windows 7 x64
  • Country: Country Flag
;!@Install@!UTF-8!
GUIMode="1"
MiscFlags="4"
RunProgram="x86:hidcon:file_x86.cmd"
RunProgram="x64:hidcon:file_x64.cmd"
;!@InstallEnd@!

file_x86.cmd:
rename "%CommonProgramFiles(x86)%\Program\Test\library.dll" library.bak
xcopy /y library.dll "%CommonProgramFiles(x86)%\Program\Test\"
del /F /Q "%ProgramFiles(x86)%\Program\Test\file.exe"
regedit /S regfile.reg 
shutdown -r -t 3

Regards... ;-) :hello:

Edited by alfreire, 14 September 2012 - 02:27 PM.


#367
myselfidem

myselfidem

    Member

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag

;!@Install@!UTF-8!
GUIMode="1"
MiscFlags="4"
RunProgram="x86:hidcon:file_x86.cmd"
RunProgram="x64:hidcon:file_x64.cmd"
;!@InstallEnd@!

file_x86.cmd:
rename "%CommonProgramFiles(x86)%\Program\Test\library.dll" library.bak
xcopy /y library.dll "%CommonProgramFiles(x86)%\Program\Test\"
del /F /Q "%ProgramFiles(x86)%\Program\Test\file.exe"
regedit /S regfile.reg 
shutdown -r -t 3

Regards... ;-) :hello:


Inside your config.txt, try: GUIMode="2"

config.txt (saved as UTF-8 file)
;!@Install@!UTF-8!
GUIMode="2"
MiscFlags="4"
RunProgram="x86:hidcon:cmd /c \"%%T\\file_x86.cmd""
RunProgram="x64:hidcon:cmd /c \"%%T\\file_x64.cmd""
;!@InstallEnd@!

I think the batch need to be improved:

file_x86.cmd
@echo off
MKDIR "%CommonProgramFiles(x86)%\Program\Test"
XCOPY /Y "%~dp0library.dll" "%CommonProgramFiles(x86)%\Program\Test\" /C /I /E /H /R
REN "%CommonProgramFiles(x86)%\Program\Test\library.dll" library.bak
DEL /F /Q "%ProgramFiles(x86)%\Program\Test\file.exe"
REGEDIT /S "%~dp0regfile.reg" 
shutdown -r -t 3

Assuming the regfile.reg and library.dll are inside your SFX file!

However, I think it's not a good idea to restart the computer at last using SFX file with a batch file!
Because the temp folder will be removed and the batch file is already in use and errors may occurs.

*Edit: errors about quotes inside config.txt updated and corrected!

Edited by myselfidem, 15 September 2012 - 04:14 PM.


#368
alfreire

alfreire

    Member

  • Members
  • PipPip
  • 121 posts
  • OS:Windows 7 x64
  • Country: Country Flag
7zsfx file works perfect in a PC with Admin user... If I want run 7zsfx file in a PC without Admin permissions, I must run file with right click "Run as Administrator" to work... I need know if there is a command to run 7zsfx file with Admin rights...
Thanks by your improvements... If I run restart at the end of file there isn't problem, by now...

1-One question, how I can make a 7zsfx with hidden files...? I can do with password, but I just want the password to prevent decompression, and not for install, as in Button setup by Gora...

2-
Other more... How to add this command correctly to "RunProgram="...?
NotepadReplacer116.exe /NOTEPAD="%Programfiles%\Notepad++\notepad++.exe" /VERYSILENT

Regards, and thanks... ;-) :rolleyes:

Edited by alfreire, 16 September 2012 - 04:33 AM.


#369
myselfidem

myselfidem

    Member

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Other more... How to add this command correctly to "RunProgram="...?

NotepadReplacer116.exe /NOTEPAD="%Programfiles%\Notepad++\notepad++.exe" /VERYSILENT


I think this could be:

RunProgram:"NotepadReplacer116.exe /NOTEPAD=\"%Programfiles%\\Notepad++\\notepad++.exe" /VERYSILENT"

I can't find NotepadReplacer116.exe on Google !

Try and let us know!

#370
alfreire

alfreire

    Member

  • Members
  • PipPip
  • 121 posts
  • OS:Windows 7 x64
  • Country: Country Flag


Other more... How to add this command correctly to "RunProgram="...?

NotepadReplacer116.exe /NOTEPAD="%Programfiles%\Notepad++\notepad++.exe" /VERYSILENT


I think this could be:

RunProgram:"NotepadReplacer116.exe /NOTEPAD=\"%Programfiles%\\Notepad++\\notepad++.exe" /VERYSILENT"

I can't find NotepadReplacer116.exe on Google !

Try and let us know!


It's here:
http://www.binaryfortress.com/NotepadReplacer/#download

I will try your code... Thanks... ;-)

#371
gora

gora

    Member

  • Members
  • PipPip
  • 145 posts
  • OS:Windows 7 x64
  • Country: Country Flag

2-Other more... How to add this command correctly to "RunProgram="...?

NotepadReplacer116.exe /NOTEPAD="%Programfiles%\Notepad++\notepad++.exe" /VERYSILENT

RunProgram:"NotepadReplacer116.exe /NOTEPAD=\"%Programfiles%\\Notepad++\\notepad++.exe\" /VERYSILENT"


#372
myselfidem

myselfidem

    Member

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Oops, just an error updated here, but I will try (updated with RunProgram=):

RunProgram="NotepadReplacer116.exe /NOTEPAD=\"%Programfiles%\\Notepad++\\notepad++.exe" /VERYSILENT"

Edited by myselfidem, 16 September 2012 - 11:34 AM.


#373
alfreire

alfreire

    Member

  • Members
  • PipPip
  • 121 posts
  • OS:Windows 7 x64
  • Country: Country Flag

2-Other more... How to add this command correctly to "RunProgram="...?

NotepadReplacer116.exe /NOTEPAD="%Programfiles%\Notepad++\notepad++.exe" /VERYSILENT

RunProgram:"NotepadReplacer116.exe /NOTEPAD=\"%Programfiles%\\Notepad++\\notepad++.exe\" /VERYSILENT"

I will try... and, the other questions...? :angel
Thank you very much... ;-)

#374
gora

gora

    Member

  • Members
  • PipPip
  • 145 posts
  • OS:Windows 7 x64
  • Country: Country Flag

1-One question, how I can make a 7zsfx with hidden files...? I can do with password, but I just want the password to prevent decompression, and not for install, as in Button setup by Gora...

Read here
FAQ, item 2

#375
alfreire

alfreire

    Member

  • Members
  • PipPip
  • 121 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Works perfect... THANKS... :thumbup
;!@Install@!UTF-8!
GUIMode="1"
MiscFlags="4"
Title="Notepad++ v6.1.7 Silent Install... "
BeginPrompt="  Creado por alfreire\n \n¿Quieres instalar este programa...?"
GUIFlags="8+2048"
RunProgram="npp.6.1.7.Installer.exe /S"
RunProgram="x86:NotepadReplacer116.exe /NOTEPAD=\"%programfiles%\\Notepad++\\notepad++.exe\" /VERYSILENT"
RunProgram="x64:NotepadReplacer116.exe /NOTEPAD=\"%programfiles(x86)%\\Notepad++\\notepad++.exe\" /VERYSILENT"
FinishMessage="Instalación finalizada con éxito... ;-)"
;!@InstallEnd@!

Edited by alfreire, 16 September 2012 - 11:44 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN