Oleg_Sch Posted May 17, 2011 Author Posted May 17, 2011 (edited) Modules and only download page of the site were updated. Other pages and offline help file still outdated.1.4.1.2100-stable and 1.5.0.2100-beta can be found on download page Edited May 17, 2011 by Oleg_Sch
coucou Posted May 20, 2011 Posted May 20, 2011 Hi,Anyone can help me adding the follwoing commands into my config.txt?attrib -R "%userprofile%\AppData\Local\Microsoft\Windows Sidebar\Settings.ini" /S /DCOPY /Y "%~dp0Settings.ini" "%userprofile%\AppData\Local\Microsoft\Windows Sidebar\"SET KEY=HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceREG ADD %KEY%\001 /V 1 /D "%systemdrive%\Program Files\Windows Sidebar\sidebar.exe" /fI'll apprciate yr helpRegards
gora Posted May 20, 2011 Posted May 20, 2011 SetEnvironment="KEY=HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce"RunProgram="hidcon:attrib -R \"%userprofile%\\AppData\\Local\\Microsoft\\Windows Sidebar\\Settings.ini\" /S /D"RunProgram="hidcon:cmd /c COPY /Y Settings.ini \"%userprofile%\\AppData\\Local\\Microsoft\\Windows Sidebar\\\""RunProgram="hidcon:cmd /c REG ADD %KEY%\\001 /V 1 /D \"%systemdrive%\\Program Files\\Windows Sidebar\\sidebar.exe\" /f"File Settings.ini should be at the root of the archive
red death68 Posted May 25, 2011 Posted May 25, 2011 having issues with the 7zsd_All.sfx module everytime it extracts it extracts to a temp folder not the folder i specify and then it tries running setup.exe which i dont have as im using the archive to run a batch file to help with an uninstaller im making that uses a mix of batch vbs and hta to allow option selection then run based on options chosen any idea's on how to do this?
ricktendo Posted May 25, 2011 Posted May 25, 2011 having issues with the 7zsd_All.sfx module everytime it extracts it extracts to a temp folder not the folder i specify and then it tries running setup.exe which i dont have as im using the archive to run a batch file to help with an uninstaller im making that uses a mix of batch vbs and hta to allow option selection then run based on options chosen any idea's on how to do this?Post your config.txt and make sure not to use a SFX that you split using 7zsplit because it will retain the previous config.txt
red death68 Posted May 25, 2011 Posted May 25, 2011 this is my config file its pretty simple;!@Install@!UTF-8!GUIMode="1"Skip="yes"path="sounds";!@InstallEnd@!im using the 7zsd_All.sfx modual from the 1.5 beta iv also tried with like 5 other modules and getting to my wits endall i want it to do is so the extraction then run a vbs or batch file(depending on if i use the hide option from the module)(note i forgot the run command in the config file because i was testing without it)
gora Posted May 25, 2011 Posted May 25, 2011 ;!@Install@!UTF-8!GUIMode="1"Skip="yes"path="sounds";!@InstallEnd@!Where did you find these parameters?These parameters does not exist! (note i forgot the run command in the config file because i was testing without it)Can not be tested without the run command!
red death68 Posted May 25, 2011 Posted May 25, 2011 (edited) the skip and path parameters were from a differnt site on google i was originally using the ones from 7zsfx.info but then switched around heres a altered version;!@Install@!UTF-8!GUIMode="1"InstallPath="s"RunProgram="test.bat";!@InstallEnd@!note that test.bat may be replaced with a differnt one altogether or removed if i decide to use a start with wait from the cmd in my uninstallerif i do the cmd batch will simnply say to start /wait "sounds.exe" "%path%\sounds.exe"%path% will be defined earlier in the batch or defined as a differnt variable like %var% Edited May 25, 2011 by red death68
Asok Posted May 29, 2011 Posted May 29, 2011 (edited) Hi,The modified .sfx modules are great: they're the basis for all of my tools. In fact, my most important tool is an sfx-based tool that makes other sfx-based tools by providing a customized command line interface to build the config.txt file, specify the files to be zipped and included, and to copy everything to the .exe file. (That tool, makeexe.exe can be found here Download MakeExe.exe. Unzip it and then type MakeExe.exe /? and/or use 7z to unpack it and see the internal parts and readme files. I've also attached MakeExe.exe here.)At any rate, I have a great need to know the directory from which a tool is called, because many of my tools have relative file and/or directory names as parameters, for example:myuncompress.exe dir1 dir2 ...I need something like:myuncompress.exe -SetEnvironment="MY_CD=%CD%" dir1 dir2 ...only where the -SetEnvironment="MY_CD=%CD%"is instead done either in config.txt and/or is supplied by a new intrinsic variable akin to %%T or %%S,because I don't won't my users to have to specify irrelevant information as a tool parameter.I've tried several things and none work. For instance, includingSetEnvironment="MY_CD=%%CD%%" into config.txt merely yields:MY_CD=%CD%when the archive program accesses MY_CD.The situation is hopeless if a system temp directory is used for the extraction, so when I need a program that usesrelative file/directory names, I have the archive extracted into a directory relative to the invoking directory witha config.txt file similar to the following:;!@Install@!UTF-8!SetEnvironment="USE_TEMP_DIR=NO"InstallPath=".\\TempExtractDiretory"SetEnvironment="EXTRACT_DIR=%%T"GUIMode="1"ExtractTitle="Extracting myuncompress.bat"RunProgram="myuncompress.bat"Delete="%%T";!@InstallEnd@!Inside myuncompress.bat, I have code likeSet SavedExtractDir=%CD%IF DEFINED EXTRACT_DIR ( IF /I "%USE_TEMP_DIR%" NEQ "YES" (CD ..))to decide if the extraction directory is relative to the calling directory, and then by doingCD ..I can obtain the directory from which the archived program was invoked.It would be so much simpler, so much more useful, and so much more elegant if a new variable like %%Cwas made available to indicate the invoking directory. (Note that %%S does not work because that is thelocation of the archive program and not the directory from which it was invoked.)(Another possibility would be to add another well-defined environmental variable %InvocationDirectory% that contains the directory path of the invoking directory, similar to %CommonDesktop%, %CommonDocuments%, etc.)Thanks, Asok.PostScript:Well, at least I now know why SetEnvironment="MY_CD=%%CD%%"does not work.The source code uses the "ExpandEnvironmentStrings" string function to expand environmental variables, but a community comment on the MS msdn.microsoft.com web page that documents this functions notes:"The 'CD' and 'ERRORLEVEL' values are not expanded Note that this function really doesn't work the same way as the CMD shell at all -- like the documementation notes, it doesn't do the fancy expansion. But it also doesn't expand the CD or ERRORLEVEL "variables" either."I really need for the source code to make a call to GetCurrentDirectory and put the results in an evironmental value, because that looks like that is the only way this information will be available to the user program.MakeExe.zip Edited May 29, 2011 by Asok
eltunisie Posted June 18, 2011 Posted June 18, 2011 haiiiiiiiiiiiiiiiiiiI need to copy some files to c:\i used this code but not working :--------------------------------------------;!@Install@!UTF-8!GUIMode="2"RunProgram="cmd /c xcopy *.* \"%SystemDrive%" /y /h";!@InstallEnd@!---------------------------------------------What the true code i used to copy????????????
ricktendo Posted June 18, 2011 Posted June 18, 2011 (edited) ;!@Install@!UTF-8!GUIMode="2"RunProgram="cmd /c xcopy *.* \"%SystemDrive%\" /y /h";!@InstallEnd@!Probably because you were missing a backslash from one of your quotesEdit: try this slightly improved version (hides console window and added %%T=full extraction path);!@Install@!UTF-8!GUIMode="2"RunProgram="hidcon:xcopy \"%%T\\*.*\" \"%SystemDrive%\" /y /h";!@InstallEnd@! Edited June 18, 2011 by ricktendo64
gora Posted June 18, 2011 Posted June 18, 2011 (edited) and added %%T=full extraction pathThis is too much ... possible way:RunProgram="xcopy *.* %SystemDrive% /y /h" Edited June 18, 2011 by gora
eltunisie Posted June 18, 2011 Posted June 18, 2011 and added %%T=full extraction pathThis is too much ... possible way:RunProgram="xcopy *.* %SystemDrive% /y /h"not working
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now