sfx

FindResource fails

99封情书 提交于 2019-12-11 07:44:40
问题 I have a piece of code like this IDB_PNG1 PNG "images\\list-back.png" HRSRC hrsrc = FindResource(module, MAKEINTRESOURCE(IDB_PNG1), TEXT("PNG")); this works fine, But I can not make it work any of the variants below hrsrc = ::FindResource(module, L"images\\list-back.png", L"PNG"); hrsrc = ::FindResource(module, L"images\\list-back", L"PNG"); hrsrc = ::FindResource(module, L"list-back.png", L"PNG"); hrsrc = ::FindResource(module, L"list-back", L"PNG"); GetlastError returns 0x00000716 The

How can I build a .Net application which is distributed as a single and self-contained file/entity (no installer)?

∥☆過路亽.° 提交于 2019-12-10 11:53:56
问题 Currently I have a VBScript 'application' for support to send to clients to run, and then the client sends back an HTML file with the results. To put it into perspective, the output is similar in nature to Syscomp.exe from Absolute Dynamics except mine is a single .vbs file and there is no 'comparison' feature. The problem: requirements for this support tool are constantly changing and its scope/purpose is getting larger - too large, I am finding, for VBScript to be the right tool anymore.

WinRar archive with iimg and iicon options becomes corrupted

假装没事ソ 提交于 2019-12-07 23:56:42
问题 I'm trying to create a self-extractable (SFX) rar archive, which will have both icon and image. I'm using the following command line: winrar.exe a -r0 -sfx -ibck -z"MyConfFile.conf" -iimg"MyImage.bmp" -iicon"MyIcon.ico" MyPackage.exe @"MyFileList.txt" Trouble is - the resulting .exe can't be unpacked. Instead it says "The archive is either in unknown format or damaged". If I set only icon or only image, then everything is fine. But if I set both, I'm in trouble. Strangest thing. 回答1: The code

Why sfx sevenzipsharp '7-zip : unsupported method' when extract?

送分小仙女□ 提交于 2019-12-07 16:59:36
问题 I have created hallo.7z and used 7zxSD_LZMA.sfx as module. I think my configuration is right but while extracting sfx I receive 7-zip : unsupported method void CreateExeFile() { try { SfxModule mdl = SfxModule.Extended; SevenZipSfx sfx = new SevenZipSfx(mdl); sfx.ModuleFileName = @"7zxSD_LZMA.sfx"; sfx.MakeSfx("D:\\hallo.7z", new Dictionary<string, string> { { "Title", "Extract Files" }, { "InstallPath", ProgramFilesx86() + "\\ATIG Platform" }, { "BeginPrompt", "Choose directory }, {

7zip Self Extracting Archive (SFX) without administrator privileges

天涯浪子 提交于 2019-12-04 03:28:53
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 admin privileges for executing. Is it possible to generate Self Extracting Archives using 7-Zip that do not

7zs.sfx unsupported method

瘦欲@ 提交于 2019-12-01 08:20:31
问题 I have setup project that I need to sfx him . first I zip the .msi and .exe files : %path7zip% a "%~dp0% %setup.7z" "%~dp0% %Output\Setup\*" that work fine . then I sfx the 7z file : copy /b %path7zs% + "%~dp0% %config.txt" + "%~dp0% %Setup.7z" "%~dp0% % Output\Setup\MySetup.exe" my config file is : ;!@Install@!UTF-8! Title="my title" Progress="no" GUIFlags="" OverwriteMode="0" InstallPath="%TEMP%" ExtractPathText="Select extraction path" ExtractPathTitle="my title" ExtractTitle="Extracting"

Batch file behaves differently when ran from a SFX

為{幸葍}努か 提交于 2019-12-01 07:54:06
问题 So I wrote a batch file to convert clients over to a cloud service and I'm seeing some weird behavior from it. So this basically looks for a specific folder and whether or not it exists it uses GOTO to move on. When I compress this using WinRAR into a SFX and instruct it to run the batch file it NEVER detects the folder, however, when I run the batch file itself, it ALWAYS detects the folder, whether its there or not. I've been trying to figure this out for a few days now and I just don't

Why does 7zip Ignore my InstallPath when making a SFX installer?

早过忘川 提交于 2019-11-30 19:47:11
Currently, I am making a SFX with 7zip using the following config: ;!@Install@!UTF-8! InstallPath="C:\\test" GUIMode="2" RunProgram="7z465.exe" ;!@InstallEnd@! I then package 7z465.exe into Setup.7z, and then call the following line in a batch file: copy /b "C:\Program Files\7-Zip\7zSD.sfx" + config.txt + ".\Release\Setup.7z" .\Release\Setup.exe When I run the resulting Setup.exe, It extracts fine and launches the 7z465.exe as well, but it is still extracting to some 7zip temp folder for the current user and not C:\test! Running as administrator seems to have no effect either. Anyone have any

How can I create an auto-executing, WinRar SFX file from a batch file?

喜你入骨 提交于 2019-11-30 13:21:37
问题 I have a 3rd-party installer program that I would like for my users to be able to download and run as a pre-requisite to an application that I have written. The installer can take parameters that allows for a passive installation, where the user can watch the progress of the process but doesn't have to interact with the installation. Previously, I've accomplished this behavior by creating an SFX file in WinRar. From within the options of the WinRAR GUI, you can specify a file to launch after

How can I create an auto-executing, WinRar SFX file from a batch file?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 07:11:42
I have a 3rd-party installer program that I would like for my users to be able to download and run as a pre-requisite to an application that I have written. The installer can take parameters that allows for a passive installation, where the user can watch the progress of the process but doesn't have to interact with the installation. Previously, I've accomplished this behavior by creating an SFX file in WinRar. From within the options of the WinRAR GUI, you can specify a file to launch after the archive has been decompressed, as well as parameters to the application. Is there a way to create