February 15, 201214 yr testSFX.exe -InstallPath="C:\\Install\\Test"Double slash in the path!Hello gora,That is exactly what I was looking for. It works perfectly. Thank you.
March 2, 201214 yr Hi all you see "Universal Extractor 1.6.1 Build 59"http://letitbit.net/download/12914.15ba2c57085ee0a2d2f534d1bede/Universal_Extractor_1.6.1.59.rar.htmlWhy sfx "Universal_Extractor_1.6.1.59" can extract "Universal_Extractor_1.6.1.59" is not import Password. It you extract use 7zip is Password ? How make it ?! It very good! Help me
March 2, 201214 yr Author's response, original hereTranslation by Google FAQ Q: whether it is possible for the sfx archive to create a password that is the usual starting sfx archives as it does not ask himself introduced, and when you try to just unpack it asked for the password A: It is impossible. Modules with this support is not available officially. While using his "power", I give these modules only to those who helped me / puts some effort in the development of the module, references to it and related files. Consider it my selfishness.
March 18, 201214 yr I'm at a loss on how to extract something to C:\ProgramData\ on Vista/7 or "C:\Documents and Settings\All Users\Application Data\" on XP.I do know the path is stored in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders (the entry which contains the path is 'Common AppData')But if I do a reg query and attempt to copy the file to the location I got from the registry, the environment variable isn't converted to a path, so instead of copying the files to "C:\ProgramData\" the batch will consider "%ProgramData%" as a folder name instead of a variable. The same happens on XP, except the default value of the entry is "%ALLUSERSPROFILE%\Application Data"I haven't found a way to reparse the variable to get the actual path.This is what I'm using to query the registryFOR /F "tokens=3* delims= " %%A IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Common AppData"') DO SET extractpath=%%BWhat I need is a way to reparse %extractpath% to get the full path instead of the environment variable.The reason I can't just type the path on the SFX config is because it needs to work on every Windows locale and it also needs to work whether the value of "Common AppData" is the default or not.Edit: Nevermind. I can get the full path from "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"Anyone looking for something similar this is what I've come up with. Not sure if it's the easiest/best option but...RunProgram="hidcon:cmd /C FOR /f \"tokens=3*\" %a IN ('REG QUERY \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\" /v \"Common Appdata\" ^| findstr /c:\"Common Appdata\"') DO XCOPY \"%temp%\\Whatever_folder_or_file_Im_copying" \"%b\\Folder\" /H /E /Y"The above code will copy something from "%temp%\Whatever_folder_or_file_Im_copying" to "C:\ProgramData\Folder" on Windows Vista or newer.On XP/2k3 it will copy from "%temp%\Whatever_folder_or_file_Im_copying" to "C:\Documents and Settings\All Users\Application Data\Folder" or the equivalent 'Common AppData' folder on non-english versions of Windows. Edited March 19, 201214 yr by ElDiabl0
March 19, 201214 yr 2 ElDiabl0Everything is much easier ...RunProgram="hidcon:XCOPY \"%temp%\\Whatever_folder_or_file_Im_copying\" \"%7zSfxFolder35%\\Folder\" /H /E /Y"The value of the variable:Win XP7zSfxFolder35=C:\Documents and Settings\All Users\Application DataWin 77zSfxFolder35=C:\ProgramData
March 19, 201214 yr @Gora,Thanks! Is there a handy link to the list of all the built-it variables and their definitions?Cheers and Regards
March 19, 201214 yr 2 bphlpt You can create this list yourself...;!@Install@!UTF-8!RunProgram="cmd /c @echo off& set& pause>nul"AutoInstall="hidcon:cmd /c set>%SystemDrive%\\vars.txt"; This SFX archive was created using "Button for creation and work with 7z SFX archives v4.1.4.1919 [x64]" 19.03.2012 13-22. The last version of "Button" you can find on http://buttontc.7zsfx.info;!@InstallEnd@!
March 20, 201214 yr 2 ElDiabl0Everything is much easier ...RunProgram="hidcon:XCOPY \"%temp%\\Whatever_folder_or_file_Im_copying\" \"%7zSfxFolder35%\\Folder\" /H /E /Y"The value of the variable:Win XP7zSfxFolder35=C:\Documents and Settings\All Users\Application DataWin 77zSfxFolder35=C:\ProgramDataI cant really add one variable for each WinXP locale and the 'Common AppData' folder may also be stored on another location.Edit: Just realized what you meant, and yes, extracting to %7zSfxFolder35% is a lot better than what I was doing.Question, can I run a cmd command to kill a process BEFORE extracting the files to InstallPath=? Edited March 20, 201214 yr by ElDiabl0
March 20, 201214 yr Question, can I run a cmd command to kill a process BEFORE extracting the files to InstallPath=?No. Only AFTER extracting.
March 23, 201214 yr I'm testing the latest 7z SFX "all" module, but sometimes there's an error:Insufficient physical memory available. Extracting might take a long timeGiven the fact that this is a silent install, it would be nice if there was some method to suppress this message?Cheers,
March 23, 201214 yr some method to suppress this message?MiscFlags="x"1 - do not check the disk space required for the extraction process2 - do not check the size of physical memory required for the extraction process4 - ...8 - ...Flags can be added, for example, MiscFlags="1+2"
April 2, 201214 yr for 7zsdhttp://www43.zippyshare.com/v/89885809/file.htmlin this packet sfx container module 7zsd with resources hacker and cmenu and extraicoextract automatic in %programfiles%\7zsfxinto folder 7zsfx file .batwith cmenu create context menu for .bat filefile bat compress folder in .7z and create file configsfx.txt for 7zsfxopen file configsfx.txt during process for modifier file when closing continue processand create sfx with name folder and lunch file.exewith extraico estract ico file from .exe and with reshacker change ico in the file sfxproblem cmenu dont work in win 7don't create menu context for this utility Edited December 15, 201312 yr by odar
Create an account or sign in to comment