Jump to content


  • Posts

  • Joined

  • Last visited

  • Donations

  • Country


Everything posted by visegrip

  1. 1. XP SP3 x86 2. SetEnvironment="Var=%^SYSTEMDRIVE%" RunProgram="hidcon:cmd /V:ON /c Set Var=%Var:^=%& Reg Add \"HKCU\\Software\\Some Software Name\" /v \"Location\" /t REG_EXPAND_SZ /d \"!Var!\\Program Files\\Some Software Name\" /f" Result for data in that registry key: %SYSTEMDRIVE%\Program Files\Some Software Name If I use your two lines, I get this for data: %%SYSTEMDRIVE%%\Program Files\Some Software Name which seems odd. I hope that helps. Let me know if you need any more information.
  2. Interesting... On my system I had to use: SetEnvironment="Var=%^SYSTEMDRIVE%" instead of: SetEnvironment="Var=%%^SYSTEMDRIVE%%" for it to work correctly.
  3. Wow, thanks gora--I would not have got that. Seems like I must read the manual more carefully. Now I see one reason you often include a batch or cmd file in many of your releases.
  4. gora, From command prompt run something like this: reg add "HKCU\SOFTWARE\Some Software Name" /v Location /t REG_EXPAND_SZ /d "%%SYSTEMDRIVE%%\Program Files\Some Software Name" /f Look at the resulting entry in the registry. I want the same result when run from the config.txt. The CHM manual says to get the variable name instead of its value use: %^SYSTEMDRIVE% But I can't get the correct syntax yet.
  5. gora, OK, thanks. I will continue working on 2, and if I can't solve it, I will post a sample reg entry here.
  6. 2 Oleg_Sch or gora, Question: What is the command line to add two languages in a 7zSFX with many language sections? I have tried: 7zSFX.exe -sfxlang:nnnn:mmmm 7zSFX.exe -sfxlang:nnnn+mmmm 7zSFX.exe -sfxlang:nnnn;mmmm 7zSFX.exe -sfxlang:nnnn,mmmm Is it possible? Next Question, I'm having problems with: \"%^PROGRAMFILES%\\Some Software Name\" I want: %PROGRAMFILES%\Some Software Name I don't want: C:\Program File\Some Software Name What I am getting: %^PROGRAMFILES%\Some Software Name Purpose: I am trying to add a Type REG_EXPAND_SZ value to the registry. How do I get the string name returned instead of the string value for %PROGRAMFILES% ? Thanks.
  7. 2 Oleg_Sch or gora, Is %7zSfxFolder43% equivalent to: %PROGRAMFILES%\Common Files or C:\Program Files\Common Files ??
  8. Yes, something like that would be nice to use with config.txt.
  9. This explains everything. I guess I was expecting too much after receiving syntax error messages in the past which helped me to correct mistakes I had made. I guess syntax highlighting for \" would be nice in the text editor. Thanks again, gora. You have helped me to understand the working of the module a bit better.
  10. Hmmmm. I understand both your examples. Thanks for those. So, to allow the possibility of your examples, my example is not detected as a syntax error by the module? Or to say it another way, if line 11 in my example is not a syntax error according to the module--what should be the expected result of line 11?
  11. First, I am sorry but my description of the issue in my previous post is not correct. So, ignore my previous post completely. After more testing, this particular syntax error is not detected by the module at all. It doesn't matter if it is in the main section or a language section of the config.txt. I am sorry if this is a previously known limitation of the module. Therefore, I have reduced the config.txt to: ;!@Install@!UTF-8! GUIMode="2" MiscFlags="4" Title="PhotoScape v.3.6.2" SetEnvironment="app_name=PhotoScape" SetEnvironment="app_path=%ProgramFiles%\\%app_name%\\" SetEnvironment="add_reg=rundll32.exe advpack.dll,LaunchINFSection PhotoScapeReg.inf,DefaultInstall,3,N" SetEnvironment="add_files=hidcon:xcopy %app_name% \"%app_path%\" /s /e /i /y" RunProgram="%add_files%" RunProgram="%add_reg%" RunProgram="hidcon:cmd /c copy Lang\\ar\\lang_3_6.txt\" \"%app_path%\" /y" Shortcut="P,{%app_path%\\%app_name%.exe},{},{%app_name%},{},{%app_name%}" Shortcut="Du,{%app_path%\\%app_name%.exe},{},{},{},{%app_name%}" Shortcut="26,{%app_path%\\%app_name%.exe},{},{Microsoft\\Internet Explorer\\Quick Launch},{},{%app_name%}" ;!@InstallEnd@! The syntax error is on line 11. There is \" after lang_3_6.txt (which should not be there.) This mistake causes line 11 to fail however no error message is ever given by module. So, apparently the module is not capable of detecting this type of syntax error. ("hanging": \") Perhaps it could be added to the detection method of the module?
  12. 2 Oleg_Sch, I am using version of the modified module on XP SP3 x86. I created a config.txt with Language Sections. By chance, there were syntax errors in the Language Sections, but the Main Section was without any syntax errors. After I made the SFX with this config.txt, I tested it by running the SFX with the language switch -sfxlang:nnnn. The software was installed but the language section was NOT run. There were NO error messages. Usually, if the main section has syntax errors there is an error message giving the line number where the syntax error is located. After I corrected the syntax error in the config.txt and rebuilt the SFX. I tested again with the language switch and the result was that the software was installed and the language section WAS run. So, I think this would be a bug. Shouldn't the module give a similar error message for syntax errors in the language sections of the config.txt? Otherwise it appears as if the installation is complete, including the language section parameters. Thanks again, for a very useful tool.
  13. There is a package at RyanVM forum for creating a silent, switchless installer for the current version of AvastFree which prevents GoogleUpdate and the older VC runtimes from installing. Be sure you have VC runtimes installed before using the created installer. Works at RunOnceEx also. Look here: http://www.ryanvm.net/forum/viewtopic.php?t=9413&sid=ce75bd66d348e7d2ee8a5af5e145228e
  14. Thanks ricktendo64!, That makes it really easy. Argh, WordPad is trying to be a smartass. I find I still have manually edit some of the parameters to get things to look the way I want.
  15. Thanks gora for the Russian version Help for version 2100, that is nice to have. But I think you misunderstood what I was looking for. I am trying to use this: 7zsd_LZMA_Dialogs.sfx The Dialog text parameters are different from those in: 7zsd_LZMA.sfx For example, a line break in a text message in 7zsd_LZMA.sfx uses: \n But in 7zsd_LZMA_Dialogs.sfx uses: \par And there appear to many more parameters available in the "Dialogs" version for controlling appearance of text. None of this is mentioned in the 7zSD_RU.CHM. Anyway thanks for that updated version of the help manual. I will begin looking at it.
  16. Oleg_Sch or gora, Is there a complete list of parameters to use with the "Dialog" versions of the modified module with a few words explaining each parameter in English? To use when composing the dialog text messages. A link somewhere? I have managed to guess many of the obvious parameters but a complete list with syntax use would be most helpful. If there is no English version, throw a Russian version at me and I will try my best to translate it.
  17. Thanks Tripredacus. I have tried all the above switches except /autorun in various combinations, and both with and without /"Chrome"="false" as an additional switch, but none prevent Google Update from being added to ProgramFiles and the registry (HKLM). If a silent install without Chrome or Google Update is possible using only command line switches, then there must be another switch or a parameter added to one of the switches.
  18. A user in the Avast Forums posted the following command line to silently install Avast and prevent Google Chrome installation: /VERYSILENT /NORESTART /SP- /"Chrome"="false" The poster claimed it worked for a Win7 unattended installation. I've tried that command line with the latest version of Avast (6.0.1279.0) on Win XP SP3 and it doesn't work for me. Can anyone confirm that command on any Win version?
  19. I confirm the information in bitlover's post. The following config.txt works with avast Free 6.0.1203 and the modified 7zsfx module (v. beta) to create an AVAST FREE 6 silent installer with no Chrome or Google update. ;!@Install@!UTF-8! GUIMode="2" MiscFlags="4" RunProgram="regedit /s \"%%T\\Avast6Registration.reg\"" RunProgram="hidcon:cmd /c reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\avsx.exe\" /v Debugger /t REG_SZ /d logonui.exe /f" RunProgram="hidcon:cmd /c reg add \"HKLM\\SOFTWARE\\AVAST Software\\Avast\" /v UpdateReady /t REG_DWORD /d 00000001 /f" RunProgram="setup_av_free.exe /Silent" RunProgram="hidcon:cmd /c reg delete HKLM\\SOFTWARE\\Google /f" RunProgram="hidcon:cmd /c reg delete \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\avsx.exe\" /f" ;!@InstallEnd@! Avast6Registration.reg contains two entries ("RegData" and "Registration") exported from the registry ( HKLM\SOFTWARE\AVAST Software\Avast). This installer works in an XP SP3 virtual machine, I haven't tested it at RunOnceEx yet. If anyone wants Chrome or Google Update don't use this.
  20. From command line: LibO_3.4.1_Win_x86_install_multi.exe /S will initiate a passive install of LibreOffice. There will be dialog windows and progress windows visible, but no user interaction is necessary. This version still does not correctly detect MS VC runtimes installed on the system, so it will install an older version. (if you have the latest version just uninstall the one LibreOffice installs.) If you want a a real quiet installation, start the normal installation and let the installer extract the msi and other files to your system. When the extraction is completed, cancel the install. Then use the extracted msi installation files with the /qn switch. libreoffice34.msi /qn For an installation this size and lengthy, passive installation is probably best in most cases.
  21. I am looking at this, but haven't come up with anything yet. I can't find any way to extract the msi from setup_av_free.exe to have a peek at the property table to see if there are any values that can disable the Google software installation. Even if the user opts out using the GUI install, a Google key is added to HKLM/Software, which is annoying. One possible solution will be to create an AutoIT script to run the GUI install and opt out, then delete the google registry key afterwards. The mods in the Avast forum have not revealed anything, so it appears their new policy is to force the Google software installation with the free version of Avast when the install is done silently. BTW, if AvastFree is installed when the system is offline, only Google Update is put on the system.
  22. I know this is an old thread, but I thought I would add some info since this thread appears to get a high number of hits with google. quote biatche, The command line syntax for using the -sp switch with a rarsfx installer which contains another setup installer that can take switches is as follows: rarsfx.exe -sp" switch" where "switch" is the argument you want to pass on to the embedded installer. If the rarsfx has dialogs and the embedded installer supports silent install, then you can make it silent with this command line: rarsfx.exe -s -sp" silentswitch" So, some examples could be: myrarsfx.exe -s -sp" /S" myrarsfx.exe -s -sp" /quiet" myrarsfx.exe -s -sp" -silent" etc. other types of switches should work, but I haven't done extensive testing. The WinRar SFX documentation on this switch simply describes it without giving any examples on the correct syntax for using it.
  23. Thanks again, gora! Where exactly is that history file so I don't have to ask again in the future?
  24. Thanks gora, I just looked through the log for from revision 1 - 80 and make out four feature additions: 1."waitall" prefix ('wait all childs' of the executed process) 2. MiscFlag '4' - run as administrator 3. BeginPrompt timeout 4. New module variable %%P - OS platform Also, one initial addition has been removed: Deletion of redefined config parameters "Parameter=-" As far as differences from version, is this list correct and complete? Thanks again.

  • Create New...