sfx

How to execute a bat file inside exe? (exe created using WinRAR sfx)

元气小坏坏 提交于 2020-02-06 07:52:12
问题 I want to create an exe file which includes mysql.msi and java.zip. I have written vbscript to install mysql and extract java file in C: drive. It works fine. Now my problem is: Convert the source folder as exe by using WinRAR sfx option. How can I execute the vbscript or bat file (for executing vbscript) when I click the created exe? Has anybody a solution? 回答1: SFX commands: Setup i.e., Setup = <program> SFX will try to execute after successful extraction. The folder containing extracted

Applying code signing for 7zip SFX (self extracting exe)

假如想象 提交于 2020-01-16 04:55:12
问题 I have code signing applied to the windows exe. And then we create an SFX (self extracting exe) with that windows exe and a json data file using the following commands. "C:\Program Files\7-Zip\7z.exe" a -t7z abc.7z "C:/xampp/htdocs/path/test.dat" "C:\Program Files\7-Zip\7z.exe" a -t7z abc.7z "C:/xampp/htdocs/path/test.exe" But when we try to download this sfx exe, we are getting warning from the browser and also showing confirmation to proceed with the installation when trying to install

7zip Self Extracting Archive (SFX) without administrator privileges

泄露秘密 提交于 2020-01-01 08:47:52
问题 I use 7zip to create the SFX as follows: 7z.exe a -r archive.7z * Then I do a binary copy with the 7zS.sfx file (used to create a self extracting installer), config file "build.config", and the archive. The contents of config file are as follows: ;!@Install@!UTF-8! RunProgram="setup.exe" GUIMode="1" Path="%tmp%\\mytemp" ;!@InstallEnd@! Binary copy command is as follows: copy /b 7zS.sfx + build.config + archive.7z sfxInstaller.exe Problem is that the result SFX "sfxInstaller.exe" requires

7zip Self Extracting Archive (SFX) without administrator privileges

北城以北 提交于 2020-01-01 08:47:09
问题 I use 7zip to create the SFX as follows: 7z.exe a -r archive.7z * Then I do a binary copy with the 7zS.sfx file (used to create a self extracting installer), config file "build.config", and the archive. The contents of config file are as follows: ;!@Install@!UTF-8! RunProgram="setup.exe" GUIMode="1" Path="%tmp%\\mytemp" ;!@InstallEnd@! Binary copy command is as follows: copy /b 7zS.sfx + build.config + archive.7z sfxInstaller.exe Problem is that the result SFX "sfxInstaller.exe" requires

SFX run file after extraction depending on OS bitness

江枫思渺然 提交于 2019-12-25 16:48:54
问题 I need to create self-extracting archives that, once extracted, run different executables depending on the bitness of the Operating System. Until now, I have done this by use of WinRAR and BAT files but the quick flash of the Command Prompt window prior to the main application's window looks suspicious. So, I'm looking for a better option but have yet to find one. 回答1: You could code a 32-bit GUI application in C/C++/C# not opening a window which for example determines with getenv_s or getenv

How to create a SFX ZIP with SevenZipSharp?

送分小仙女□ 提交于 2019-12-24 01:53:40
问题 I have been looking at SevenZipSharp to create a self extracting zip file. The project page says that they have a special class SevenZipSfx that does this. However I have searched the object explorer and the documentation for version 0.64 and I cant find any reference to it. Does anyone know if the class is missing or if there is a different meaning to "Special Class" that I'm missing? 回答1: It looks like the Sfx class isn't built by default. Grab the source code from Codeplex (or check out

How to create a SFX ZIP with SevenZipSharp?

无人久伴 提交于 2019-12-24 01:52:58
问题 I have been looking at SevenZipSharp to create a self extracting zip file. The project page says that they have a special class SevenZipSfx that does this. However I have searched the object explorer and the documentation for version 0.64 and I cant find any reference to it. Does anyone know if the class is missing or if there is a different meaning to "Special Class" that I'm missing? 回答1: It looks like the Sfx class isn't built by default. Grab the source code from Codeplex (or check out

How to create self-extracting RAR archive not showing anything on execution?

随声附和 提交于 2019-12-17 16:45:25
问题 I am trying to create a self-extracting archive that extracts to "%USERPROFILE%\Desktop" with WinRar. However, when I run it, it extracts to the SFX's current directory, not my desktop. Does the path to extract option work at all? I'm using the 32-bit command line module. I also checked the 'hide all' box for silent mode which appears to do absolutely nothing and the command prompt window still appears with showing information on what is extracted. I want that SFX archive extracts the .exe

how to create a wix bootstrapper application that runs self extracting exe as an exepackage

陌路散爱 提交于 2019-12-14 01:06:10
问题 I have 2 installation packages that are prerequisites for our application. Both of these are downloaded from the vendor as self extracting executables containing the actual setup.exe and hundreds of files and folders required for the installation. When I run the sfx exe using an exepackage in the bootstrapper application it will run the extraction portion then kick off the installation setup.exe and then close the extraction exe while the installation is still going. This causes the next

Extracting SFX 7-Zip

纵饮孤独 提交于 2019-12-12 01:46:00
问题 I want to extract two specific files from a .zip file. I tried the following library: ZipFile zipFile = new ZipFile("myZip.zip"); Result: Exception in thread "main" java.util.zip.ZipException: error in opening zip file I also tried: public void extract(String targetFileName) throws IOException { OutputStream outputStream = new FileOutputStream("targetFile.foo"); FileInputStream fileInputStream = new FileInputStream("myZip.zip"); ZipInputStream zipInputStream = new ZipInputStream(new