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 AccountCreate an Account

Javascript Disabled Detected

You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality.

Installer Config file formatThis config file contains commands for the Installer. The file begins with the string ;!@Install@!UTF-8! and ends with ;!@InstallEnd@!. The file must be written in UTF-8 encoding.

This "setup.exe' is compatible with both OS', right? (you never even said what it is / where it's from...)

myselfidem

Posted 06 June 2012 - 11:53 AM

It's not the best way to create your SFX file inside the folder: C:\Program Files\7-Zip

But, if you need for both architecture: 32-bit and 64-bit you need to use 7zsd_All.sfx module

All module versions (7zSD) for installers use MSVCRT.dll (Microsoft Visual C runtime library). In other words, some functions are performed via this dynamic library, and this helps reduce the module size. This file is present in all operating systems supported by the module. Old module versions (7zS) that did not require MSVCRT.dll are no longer supported.

I create an SFX file inside this folder for Scanjet 3970 series drivers (as example), like this:

where : %zipFileName% = "MySetup.7z"%allFromOutputDir% = all of the items that currentlly exists in the output dir of the setup project. (bin\release\...)%outputFile% = "MySFX.exe"

thats it...Did not zip only one file but the whole setup dir - since the setup my contain more then just the ".exe". It contains the pre- requisites folders (like the .net version and win intsller etc.).That is not the issue.I will try your format of command :copy /-Y /B

ipen

Posted 10 June 2012 - 02:23 AM

ipen

Newbie

Member

11 posts

Joined 09-May 12

OS:XP Pro x86

Country:

Hi,tried both of the last suggestions....Still same errors.Could it be because my zip contains more then one file ?See , the zip contains these items :- MySetup.msi- setup.exe- "WindowsInstaller3_1" folder (pre - requisite)-"DotNetFX35" folder (another pre-requisite)

Now - when i run my SFX on win XP - it does run the "setup.exe", but after checking for the pre-requisites , it fails to run the MSI !!!Here is the log content :

(myselfidem said) But, if you need for both architecture: 32-bit and 64-bit you need to use 7zsd_All.sfx module

Not really... The set you are getting contains 2 help files and "7zsplit" - the remainder are EXACTLY like the "Extra" package. Read this -

Contains 12 modified modules (six 32-bit modules and six 64-bit ones). There is a separate module for each compression method (LZMA, LZMA2, Deflate, PPMd), as well as universal modules that support any of these methods. Additionally, there are modules with extra dialogs and a banner.

In other words, there is SPECIFICALLY an x86 and an x64 version. "All" means ALL methods (EITHER an x86 OR x64). The "Basic" one (first download "7zsd") is EXACTLY "7zsd_LZMA.sfx" that's inside the package. THAT one is JUST 32-bit for LZMA method (which you have been TRYING to do). The "Tools" one is just the COMPLETE package, OK???

...and do the Create of the SFX.EXE the way I showed you (the "copy" command).

Can I assume that your Windows7 AND WindowsXP are BOTH x86???

edit - In MY example, I used the BETA version from the link given to you. AND the suggestion given above MIGHT be your problem! You MUST use the CORRECT MSIEXEC for the METHOD YOU BUILT THE MSI PACKAGE!!!! You CANNOT build an MSI with a NEWER version and Install it using an OLDER MSIEXEC!

note: use the "7zsplit" program on your "built" EXE - see if you REALLY have it built correctly. Again, Works fine for me (x86)...

where :%zipFileName% = "MySetup.7z"%allFromOutputDir% = all of the items that currently exists in the output dir of the setup project. (bin\release\...)%outputFile% = "MySFX.exe"

this is the config content :;!@Install@!UTF-8!RunProgram="setup.exe"GUIMode="2";!@InstallEnd@!

Contents of %allFromOutputDir% (after which the zip contains these items):- setup.exe (OBVIOUSLY WRITTEN IN-HOUSE TO CHECK/INSTALL)- "WindowsInstaller3_1" folder (pre - requisite)--- WindowsInstaller-KB893803-v2-x86.exe (FILE WITHIN FOLDER!!!)- "DotNetFX35" folder (another pre-requisite)--- dotNetFx35setup.exe (FILE WITHIN FOLDER!!!)- MySetup.msi (NOT WITHIN A FOLDER!!!)===== The Actual SFX Execution =====<snip>Running checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'<snip>Running checks for command 'DotNetFX35\dotNetFx35setup.exe'(My Note: This is the Bootstrapper and NOT the "Full", correct?)(http://www.careerrid...pplication.aspx)<snip>Launching Application.Running command 'C:\WINDOWS\system32\msiexec.exe' with arguments ' -I "C:\DOCUME~1\...\LOCALS~1\Temp\7zS909.tmp\MySetup.msi" '-----Result (according to Your Notes):"This installation package could not be opened..."(My Note: OBVIOUSLY a result of NOT FINDING THE MSI FILE!)(My Note: You APPARENTLY have used "\...\" to keep us from seeing UserID?)-OR-"Could not read configuration or configuration not found".(My Note: OBVIOUSLY because CONFIG.TXT is NOT properly included!)===== Your Comments on Failures =====The setup alone does work on both OS... (XP and win 7).

Only after creating SFX and using it - it does not work on win XP.And yes - the setup pre-requisite is to install .net frame work.(My Note - Your are programmatically checking MS-Installer+DotNET)

On my comuter which OC is win7 - it works good!(My Note: You are referring to the SFX Install.)But when i try to run it on WinXP pro x86i get this error after extraction :"This installation package could not be opened..."===== From 7-Zip ORG files =====Failure #1 -create the SFX like this :"C:\Program Files\7-Zip\7z.exe" a %zipFileName% %allFromOutputDir%copy /b "C:\Program Files\7-Zip\7zS.sfx" + config.txt + %zipFileName% %outputFile%When running its product - it cause this error :"This installation package could not be opened..."

and trying to run it product - it gives me an error "Could not read SFX configuration or configuration Not found".

When using "7zsd.sfx" from 7z920_extra (downloaded from 7-zip.org) it works but only on win7.

when using "7zsd.sfx" from 7zSD 1.4.3 Release (build 2367) January 21, 2012 (downloaded from 7-zip.info)it still gives me this"Could not read SFX configuration or configuration Not found"

Please help!

1 - DO NOT USE THAT ONE!!! USE THE FIRST ONE (the BETA one!!!)2 - OR DON'T USE IT, BUT USE THE 7-ZIP ORG ONE3 - PLEASE NOTE! MSIEXEC CANNOT FIND THE MSI!!!3a - TRY to put it in a SUBFOLDER and see if that works3b - NOTE that when you RUN the MSIinstaller AND/OR the DotNETinstaller that they CREATE A TEMP FOLDER ON THE ROOT OF THE LARGEST FREE-SPACE DRIVE!Your Application is NOT doing that! It is INVOKING the MSIEXEC.EXE Program!The question is... IS YOUR SETUP.EXE CORRECTLY PASSING THE PATH TO THE MSI FILE???-To test this - WHEN it Fails with "This installation package could not be opened..." NAVIGATE in EXPLORER to the TEMP folder and SEE IF IT IS INDEED THERE!

Bottom Line - We have NO CLUE how you CREATED the SETUP.EXE PROJECT!!!(My Note - MAYBE you need to use DOUBLE-QUOTES?)

Go BACK here and read CLOSELY the "Configuration Parameters" section. YOU NEED TO CORRECTLY PASS THE PATH TO THE MSI! PERIOD!!! FORCE it to "somewhere"!!!