Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Oleg_Sch

7z SFX Modified Module and Tools

Recommended Posts

Hi all,

I was wondering if it's possible to add a config option to enable the unattended installation without the need of passing "-y" as a command line argument.

Thanks a lot in advance

Share this post


Link to post
Share on other sites

Hi all,

I was wondering if it's possible to add a config option to enable the unattended installation without the need of passing "-y" as a command line argument.

Thanks a lot in advance

GUIMode="2"

Share this post


Link to post
Share on other sites

Hi all,

I was wondering if it's possible to add a config option to enable the unattended installation without the need of passing "-y" as a command line argument.

Thanks a lot in advance

GUIMode="2"

hi ricktendo,

sorry I forgot to say that I'd like to have the progress bar displayed while unpacking. Thanks a lot for your help.

Share this post


Link to post
Share on other sites

Hi all,

I'm trying to compile 7zsfx from sources but I'm getting an error. Han anyone compiled it succesfully before? Do you know how I can solve the following linking error?

------ Build started: Project: 7zSfxMod, Configuration: All Win32 ------
Linking...
LINK : warning LNK4224: /OPT:NOWIN98 is no longer supported; ignored
AES.obj : error LNK2019: unresolved external symbol @AesCtr_Code_Intel@12 referenced in function _AesGenTables
AES.obj : error LNK2019: unresolved external symbol @AesCbc_Decode_Intel@12 referenced in function _AesGenTables
AES.obj : error LNK2019: unresolved external symbol @AesCbc_Encode_Intel@12 referenced in function _AesGenTables
..\Output\Win32\7zsd_All.sfx : fatal error LNK1120: 3 unresolved externals
Build log was saved at "file://c:\temp\7zsd_src_160_2712\Intermediate\Win32\All\BuildLog.htm"
7zSfxMod - 4 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I'm using VS2008 with latest Microsoft sdk. Thanks a lot for your help.

Regards,

Riccardo

Share this post


Link to post
Share on other sites

Hello

how to modify or add pitcure in 7zsd_lzma_dialogs.sfx ?

i want to add my or replace original image in sfx to my install.

thanks

Share this post


Link to post
Share on other sites

Use a resource hacker, I do the same with my .net slim installer, I add a new bmp and edit the layout so it looks like this

sHBW8q3.png

Share this post


Link to post
Share on other sites

@rickendo

i try with resource hacker, but i can't modify ressource IMAGES 3001

How to ?

thanks

Share this post


Link to post
Share on other sites

Hi,

I have been using the modified 7zsfx for a while now and have come across a problem

I am re-compressing some of my old dos games and running them using dosbox. I have a problem with config.txt for every one of them.

When compiled to an SFX exe it will fail when it detects the (  "  ) symbols. These are necessary for the shortcut to work

The original version install shortcuts with them in but when I duplicate them using my own config script it fails at line 13

Here is an example of my config.txt:


;!@Install@!UTF-8!
Title="Redneck Rampage"
BeginPrompt="\nPack Includes:\n\nRedneck Rampage\nCuss Pack\nManual and Cheats"
CancelPrompt="Are you sure you want to cancel ?"
GUIFlags="4+8+16+32+64+256+2048+4096"
GUIMode="1"
OverwriteMode="0"
InstallPath="%ProgramFiles%\Redneck Rampage"
ExtractPathText="Choose your \"Redneck Rampage\" installation folder..."
ExtractPathTitle="Redneck Rampage"
ExtractCancelText="Abort"
Shortcut="Du,{%%T\\Redneck Rampage Manual.pdf},{},{Redneck Rampage},{Redneck Rampage Manual},{Manual},{%%T},{},{}"
Shortcut="Du,{%%T\\DOSBox.exe},{-conf "dosboxRR.conf" -conf "dosboxRR_single.conf" -noconsole -c exit},{Redneck Rampage},{Game},{Redneck Rampage},{%%T},{%%T/RR.ico},{}"
RunProgram="\"%%T\\unpack.bat\""
;!@InstallEnd@!


This is the original working shortcut I wish to re-create:
"%ProgramFiles%\DOSBox.exe" -conf "Redneck Rampage\dosboxRR.conf" -conf "dosboxRR_single.conf" -noconsole -c exit

How can I include the " in the line without it failing at line 13?

I would really appreciate someones help

Thanks

Share this post


Link to post
Share on other sites

I'm not sure, but don't you just have to "escape" the inner quotes (") with a backslash like this -- \" -- like they are on line 14?

 

Cheers and Regards

Share this post


Link to post
Share on other sites

;!@Install@!UTF-8!
Title="Redneck Rampage"
BeginPrompt="\nPack Includes:\n\nRedneck Rampage\nCuss Pack\nManual and Cheats"
CancelPrompt="Are you sure you want to cancel ?"
GUIFlags="4+8+16+32+64+256+2048+4096"
GUIMode="1"
OverwriteMode="0"
InstallPath="%ProgramFiles%\\Redneck Rampage"
ExtractPathText="Choose your \"Redneck Rampage\" installation folder..."
ExtractPathTitle="Redneck Rampage"
ExtractCancelText="Abort"
Shortcut="Du,{%%T\\Redneck Rampage Manual.pdf},{},{Redneck Rampage},{Redneck Rampage Manual},{Manual},{%%T},{},{}"
Shortcut="Du,{%%T\\DOSBox.exe},{-conf \"dosboxRR.conf\" -conf \"dosboxRR_single.conf\" -noconsole -c exit},{Redneck Rampage},{Game},{Redneck Rampage},{%%T},{%%T\\RR.ico},{}"
RunProgram="unpack.bat"
;!@InstallEnd@!

Share this post


Link to post
Share on other sites

I was close. :)

 

Cheers and Regards

Share this post


Link to post
Share on other sites

xcopy does not create directory structure!

;!@Install@!UTF-8!RunProgram="Setup_%%P.msi /qr"RunProgram="hidcon:xcopy config.xml \"%appdata%\Mythicsoft\FileLocatorPro\config\" /s /y"GUIMode="2";!@InstallEnd@!
C:\Users\Forseti\AppData\Roaming\Mythicsoft\FileLocatorPro\config

please help!

Share this post


Link to post
Share on other sites

hi,

 

only on 64bit i have a problem with a 1 line .bat script running from/under sfx (as admin)
i'm using 7zsd.sfx version 1.6 1.5 (stable build 2712), it works fine on 32bit
the .bat itself also works fine on 64bit if i start it directly as admin - from %temp% or whereever:

echo onattrib -s -h -r %SYSTEMROOT%\system32\drivers\etc\hostspause

but when i run it from an sfx archive (as admin) it ALWAYS results in
Path not found - C:\Windows\system32\drivers\etc

i have tried many things (also in combination, all working if started directly):

attrib -s -h -r c:\windows\system32\drivers\etc\hostsattrib -s -h -r %SYSTEMROOT%\sysnative\drivers\etc\hostsattrib -s -h -r %SYSTEMROOT%\system32\..\system32\drivers\etc\hostscd /d %SYSTEMROOT%\system32\drivers\etcattrib -s -h -r hosts

i have also tried an attrib.exe copied from a 32bit version - same

in sysinternals' process monitor then i saw that attrib.exe was searching in
C:\Windows\SysWOW64\drivers\etc

which is definetely wrong. how is this possible?
 

 

EDIT: a similar problem occures if i use the variable %programfiles% on 64bit - it resolves to

C:\Program Files (x86)

but here i can use the simple workaround

"%programfiles%\..\Program Files\whatever"

Edited by nova-s

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.

×
×
  • Create New...