Jump to content

ar_seven_am

Member
  • Posts

    62
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Indonesia

Posts posted by ar_seven_am

  1. as for ar_seven_am

    "actually the "\w+" is only match for alphanumeric character (a-z, A-Z, 0-9), but

    not underscore or other simbolic (sic) character "

    if you could be so kind next time to state at the start exactly which regular

    expression engine (regex) you are using, or custom RE engine you are using,

    or minimally that the engine you are using is not ECMAScript compliant, that

    would help prevent time being wasted...

    as CharacterClassEscape 'w' has since oh, year 2000, been True for the 63

    characters cited [ A-Za-z0-9_ ] in all ECMAScript compliant expression engines

    - buy yourself a cheap copy of ECMA-262, 3rd Edition, Section 15.10.2.12

    and 2.6 if you have any doubts...

    I'm just including ur previous comment :

    From; http://www.pagecolumn.com/tool/pregtest.htm

    it seems;

    \w+ is 'matches any alphanumeric character including the underscore', 'one or more times'.

    and matchable character range is actually this: A-Za-z0-9_

  2. jaclaz, yzowl and bhlpt, thx for the advice as for

    From; http://www.pagecolumn.com/tool/pregtest.htm

    it seems;

    \w+ is 'matches any alphanumeric character including the underscore', 'one or more times'.

    and matchable character range is actually this: A-Za-z0-9_

    actually the "\w+" is only match for alphanumeric character (a-z, A-Z, 0-9), but not underscore or other simbolic character

  3. Hi everyone, I'm having difficulty extracting some string in text file, an example the content of mytext.txt

    Drive : SystemList Directory : System:\Backup\Scripting\PHP\header.phpList Directory : System:\Backup\Scripting\PHP\content.phpList Directory : System:\Backup\Scripting\PHP\footer.phpList Directory : System:\Backup\Scripting\HTML\header.phpList Directory : System:\Backup\Scripting\HTML\content.phpList Directory : System:\Backup\Scripting\HTML\footer.php

    how to output only "PHP" or "HTML" string with batch command? with php I can use regex like :

    $r = file_get_contents('mytext.txt');preg_match_all('/\\Scripting\\(\w+)\\/', $r, $w);print_r($w[1]);

    how do I use batch command to output similar like that?

  4. Well, I normally tend to fall short rather than long so it surprises me I removed too much.

    What do you mean with package? You mean hotfixes?

    btw I find many different comments, does setupcomplete.cmd goes to "Windows\Setup\scripts" or "sources\$oem$\$$\Setup\scripts"? I have it on the former if that matters.

    well, I think u remove the needed component in windows (I dont know exactly, but what I see there's an update for system restore in ur hotfix/update list but u do remove system restore feature, I dont know if it stand alone or only update the previous system restore feature).

    as for setupcomplete.cmd, both are the same, becuz this :

    sources\$oem$\$$\Setup\scripts

    will goes to :

    Windows\Setup\scripts

    but I prefer to use the $OEM$ instead injecting to the wim (is that what u mean with comparing those? )

  5. have u check the list package available with dism command?

    dism /image:"mounted drive" /get-packages > "path to save file"\"name of the list package file".txt 

    Yes, I realized that /h key doesn't restore original permissions for a registry but only hides back a packages. Will try to do it by SubinACL.

    kels have stated in the previous post :

    */d will not delete owners keys.

    is that what u means? but u need to use that before unhide the hidden package...

  6. Is a /h key a really working? When I put it as parameter to restore original permissions for registry, install_wim_tweak just ignore it and take ownership again:

    D:\Test>utils\install_wim_tweak /p Mount /h---------------------------------------------------Registry Tweak Tool v1.4.6.0----------------------for Windows 6.x----------------------Created by Michal Wnuowski-------------------Modified by Legolash2o-----------------------------------------------------MountPath : "Mount"------------------Starting-----------------Creating BKP of registry file...         OKMounting registry file...                OKTaking Ownership...                      OKEditing 'Packages' subkeys        571/571OKEditing 'PackagesPending' subkeys        FAIL - Key not existModifying registry completed sucessfully.-------------------Ending------------------Unmounting key...                        OK

    have u check the list package available with dism command?

    dism /image:"mounted drive" /get-packages > "path to save file"\"name of the list package file".txt 
  7. note: I'm not sure it's becuz IIS and some networking stuff enabled, or is it?

    That could be it. I don't have any IIS at all.

    Or maybe some of your files have Streams in them. When I robocopy I use

    robocopy D:\_Backup %~dp0_Backup /E /COPY:DT /MT:32 /PURGE /R:1 /W:5

    The DT supposed to remove the S=Security=NTFS ACLs

    Checking my Update download dir I get this on some files if right click properties

    vdyk.png

    So I do this to process all at once. Then just right click on a folder and choose

    Unblock the files inside

    EDIT: Upon doing this it removes the prompt "Do you want to run this file" mess when you normally double click to run

    EX:

    filterpack2010-kb2810071-fullfile-x64-glb.exe:

    Deleted :Zone.Identifier:$DATA

    Windows Registry Editor Version 5.00;Download the *Sysinternals* *Streams.exe* from the link below. (Remember to unblock the zip file.);Unzip and copy streams.exe to \Windows\System32 or any other directory in your path;http://technet.microsoft.com/en-us/sysinternals/bb897440.aspx[HKEY_CLASSES_ROOT\*\shell\unblockfile]@="Unblock file"[HKEY_CLASSES_ROOT\*\shell\unblockfile\command]@="cmd /k streams -d \"%1\""[HKEY_CLASSES_ROOT\Directory\shell\unblockallthefiles]@="Unblock the files inside"[HKEY_CLASSES_ROOT\Directory\shell\unblockallthefiles\command]@="cmd /k streams.exe -d -s \"%1\""

    yes, that's exactly my problem in the previous post....and also the stream is work fine here, no need to run the installer as administrator by now for skip the file security warning.... :thumbup

    note: sorry for the late reply

  8. I've uac disabled too in offline servicing and also generalize, and enabled that again in cleanup.cmd (after all software installed).

    note: I'm not sure it's becuz IIS and some networking stuff enabled, or is it? and also edit, it appear the registry doesn't affect at all, I forget I add the command with runas (as administrator) which work without asking permission to run installer...

  9. normal hotfix (like windows defender update)?

    defender silent switch is mpas-feX64.exe -q or /q works also

    You could run the command line version for that "%ProgramFiles%\Windows Defender\MpCmdRun.exe" -SignatureUpdate

    Either way you have to have Admin rights on that one. Perhaps setupcomplete.cmd?

    in setupcomplete.cmd we cant hear the mp3 (I'd like to use ur sevenua and playing some mp3 files while installing :D ), by the way, I've test that again, even in setupcomplete still the same, the security file warning appear (something related with signature verification, I dont know if it becuz some update package I've been integrated/installing in the windows image, but I use only critical update (which appear in windows update but I download the msu n integrated manually) )

    I'll report again with a test in vmware later (currently I'm working by now)...

    Out Of Topic : I need to thx for ur jump2reg application, I fix some of my friend lappy which caused by usb autorun virus (6 fixed manually, 2 needs to reinstall :huh: )

  10. max, could u add some registry entries to disable security file warning while processing silent installation? currently I'm doing manually with adding the registry in specialize section (autounattend.xml) with this :

    REG ADD "HKCU\Environment" /V SEE_MASK_NOZONECHECKS /T REG_SZ /D 1 /FREG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V SEE_MASK_NOZONECHECKS /T REG_SZ /D 1 /F

    then I reenable that again after first gui (cleanup.cmd) :

    REG Delete "HKCU\Environment" /V SEE_MASK_NOZONECHECKS /FREG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V SEE_MASK_NOZONECHECKS /T REG_SZ /D 0 /F

    without that, I get warning message in some silent installation (not all) :

    zrl1z.jpg

  11. sorry, seem it blocked by the Avast which I use auto sandbox (that's why I didn't see the process, it goes in sandbox).

    yes, this switch "/silent /install" is silent switch for google chrome offline installer, thx myselfidem!. (I'm searching the silent switch yesterday in this forum, but maybe due to the slow internet connection the page keep loading without ending).

  12. Can you share the same with me? I have found one over here: https://www.google.com/chrome/eula.html?system=true&standalone=1

    but I don't think this one is a silent installer further I don't want that first run window as well.

    yes, I use that link to download google chrome offline installer for all user. it doesn't work for u? I login into my built in admin account I also found google chrome menu in all programs in start menu, but still we need to reconfigure that.

    note: I dont trim my windows image (I'm not windows lite fans boys), I prefer use the existing windows component instead installing third party's software.

  13. I think u better use "%SystemRoot%" instead "%WinDir%", even it's the same but the variable use for different purpose.

    See initiation of the installation is not the problem other silent installers are running fine, but "Administrator" is read only folder so chrome installer is unable to put the files in the Administrator folder, I have tried "ShellExecute" command of Autoit and it is also not working.

    Anymore suggestions?

    what chrome installer do u use? I use chrome offline instaler for "all user" (not only single user) n it work fine?

  14. Again, I told you many times, removes those lines, because they are deprecated for Windows 7:

    <OOBE>

    <SkipMachineOOBE>true</SkipMachineOOBE>

    <SkipUserOOBE>true</SkipUserOOBE>

    </OOBE>

    And try to give another name for your computer!

    You have only one Administrator account !

    Set SetupComplete.cmd inside: %DVD%\sources\$OEM$\$$\Setup\scripts\SetupComplete.cmd

    http://technet.microsoft.com/en-us/library/dd744268(WS.10).aspx

    Did you, I am sorry mate I don't remember. BTW thanks for your help. But can't we use "%windir%\Setup\Scripts\setupcomplete.cmd" to install some applications which require permission to access User (Administrator) folder, like google Chrome? Runonce registry is also not working

    I also wish to know can shell command do the trick? I have already

    I think u better use "%SystemRoot%" instead "%WinDir%", even it's the same but the variable use for different purpose.

  15. @slinkydonkey: if u want, u can make that by ur self, unlike windows 7, vista takes A LOT OF TIME when slipstreaming update/hotfix to the image becuz the temporary file for hotfix/update package need to delete that manually (vlite do this), u could look in magic andre site (I use that in the past time) or collect it manually.

    note: if u have package manager warning, u can replace an existing "pkgmgr.exe" in vlite installation directory with the one from ur existing vista sp2 installation disk. also since u install that for other n not for ur self, I dont recommend for removal component that exist in vlite section since it might broken the image.

  16. it's HKEY_LOCAL_MACHINE setting in registry, even with build in admin n advance take ownership, windows system reject that until the driver have properly configured.

    this is part of the registry entry (taken from ur registry tweak, notebook with bluetooth or wireless lan always have problem with such this service entry) :


    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\DPS]
    "Start"=dword:00000003
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\iphlpsvc]
    "Start"=dword:00000003
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RemoteRegistry]
    "Start"=dword:00000004
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TrkWks]
    "Start"=dword:00000003

    I think it's becuz related to network, right?

    oooh I almost forget, Windows 7 SP0 seems always set numlock on in notebook (not PC) keyboard setting, but SP1 seems have fix this.

×
×
  • Create New...