Jump to content

mooms

Global Mods
  • Posts

    2,334
  • Joined

  • Last visited

  • Days Won

    138

Posts posted by mooms

  1. Thanks for sharing.

    I'm loooking for a tweak:

    no confirmation of file deletion.

    I've tried this one:

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies]
    "ConfirmFileDelete "=dword:00000000

    and this one:

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies]
    "NoConfirmFileDelete "=dword:00000001

    None works...

    Searched the web, found nothing....

  2. Thanks mooms for the upload in #19. I will do my own test with UAC set to default. (I manual run on the VM works, so I think should work unattendedly too)

    I personally would like to adapt your xml into my inf and see If it could be launch using postsetupcommand (for my personal build)

    Can I ask how you create the xml? Did you use the Task Scheduler's GUI to create it, then export the xml file?

    Do you know what would be the command if using schtasks.exe on the command line?

    Many thanks to you guys. With win7, learn something new always ...

    :)

    Yes i have created the task in Task Scheduler's GUI, exported it, and then i have changed some lines in the XML file, like removing author/owner, and replacing the absolute paths with variables.

  3. @RicaNega:

    Thay're all in French by default.

    Remove this line in Everything.ini

    localization=Français

    And Everything will be in English.

    You can use your own ini file if you want.

    You will need 7z SFX Archive splitter to decompose the sfx.

    Then you have to rebuild the 7z archive (LZMA) and remake the sfx with this command:

    copy /b Everything.sfx + Everything.txt + Everything.7z Everything.exe

    __________________________________________________

    I have made an other sfx, universal 32/64 bits, and asking for admin right, with this code:


    ;!@Install@!UTF-8!
    GUIMode="2"
    MiscFlags="4"
    InstallPath="%PROGRAMFILES%\\Everything"
    RunProgram="x86:hidcon:cmd /c schtasks /Create /XML Everything32.xml /TN Everything"
    RunProgram="x64:hidcon:cmd /c schtasks /Create /XML Everything64.xml /TN Everything"
    Delete="%PROGRAMFILES%\\Everything\\Everything32.xml"
    Delete="%PROGRAMFILES%\\Everything\\Everything64.xml"
    ;!@InstallEnd@!

    Thanks to myselfidem for the idea.

    Here it is:

    http://www.mediafire...k8k2dd884dcc69h

    udpate: an other version with shortcut in start menu and icon for the sfx:

    http://www.mediafire...yl8qsz1z27z2uvu

  4. Yes i know for both,

    With this setup, Everything will always be running with an icon in the taskbar to access it.

    If you access it from a shortcut, you will get an UAC prompt.

    For the icon, as the executable is only for integration purpose, I think it's not very important.

    For the command line, i thought it was because the parameters /TN and /XML was inversed.

    edit: thanks for testing!

    tested in integration in Windows 7 32 bits, works too.

  5. Geej: yes it's a good thing to keep UAC.

    I have remade the sfx with UPX'ed 7zip sfx mod .

    - no more cmd file inside the archive

    - no more cmd window flashing

    - smaller executable. (502 kb vs 415 kb, thanks to LZMA and UPX compression )

    - But you must execute them with admin right (Winrar sfx will automatically prompt, not 7zip sfx)

    Tested both in VM.

    Not tested in integration yet but should work fine:

    32bits:

    http://www.mediafire...aius5qs66mc94s7

    64bits:

    http://www.mediafire...iu0yri2ro9dl1kb

    Here is the config file for the 64 bits version: (juste replace the two 64 by 32 for the 32 bits version).

    As the sfx is a 32 bits executable, the %PROGRAMFILES% variable is working correctly on both architecture.

    the only real change between the two versions is the variable in the xml file.

    ;!@Install@!UTF-8!
    GUIMode="2"
    InstallPath="%PROGRAMFILES%\\Everything"
    RunProgram="hidcon:cmd /c schtasks /Create /XML Everything64.xml /TN Everything"
    Delete="%PROGRAMFILES%\\Everything\\Everything64.xml"
    ;!@InstallEnd@!

    myselfidem: the line

    cmd /c schtasks /Create /TN "Lancer Everything" /XML "%~dp0Everything.xml"

    throw me an error when used with 7zip sfx module. (tried multiple times)

    But again, thanks for the infos.

  6. Geej: thanks for the explanations, that's very instructive and will be handy in my future creations !

    About your solution for bypassing UAC, i don't want to disable it, juste create a task to launch everything with admin privileges as i explained.

    See my sfx below if you want to add that in you addon.

    myselfidem: thanks for the tips, that was very helpfull, i was able to create a SFX wich import the task after "installation".

    Here is my two prototypes of switchless "installer" of Everything if anyone want to check (Everything will be in french by default, no uninstall as it is not really needed)

    32bits:

    http://www.mediafire.com/?7fb9ok0bb44vkgd

    64bits:

    http://www.mediafire.com/?eezrg2md5rsoy5w

    Tested both in VM.

  7. Very interesting, so we can add variable in reg files, i always thougt it was impossible!

    But how to create reg files in hex format ?

    I always use RunOnceEx in my wa addons example, :

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\WinrarInstaller]
    "inf"="RUNDLL32 advpack.dll,LaunchINFSection Winrar.inf,Install"

    myselfidem: do you have a sample command to create a task ?

  8. Allright, i have understood, It's only to install it at runonce (but why it's in hex ?)

    So i still search a way to add autostart without UAC prompt,to my Everything addon (as it is explained in the FAQ:)

    1.12 How do I bypass the UAC to run "Everything" with administrative privileges on system startup?

    Disable run on system startup in "Everything".

    Follow the Make Vista launch UAC restricted programs at startup with Task Scheduler guide at

    http://blogs.techrepublic.com.com/window-on-windows/?p=616

    Make sure you use -startup in the Add Arguments box

  9. Hi Geej, thanks for sharing, i have a question:

    What this key do:

     [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
    "!EverythingSearchTool"=hex(2):72,00,75,00,6e,00,64,00,6c,00,6c,00,33,00,32,00,\
    20,00,61,00,64,00,76,00,70,00,61,00,63,00,6b,00,2e,00,64,00,6c,00,6c,00,2c,\
    00,4c,00,61,00,75,00,6e,00,63,00,68,00,49,00,4e,00,46,00,53,00,65,00,63,00,\
    74,00,69,00,6f,00,6e,00,20,00,25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,\
    00,5c,00,69,00,6e,00,66,00,5c,00,45,00,76,00,74,00,68,00,69,00,6e,00,67,00,\
    2e,00,69,00,6e,00,66,00,2c,00,49,00,6e,00,73,00,74,00,61,00,6c,00,6c,00,00,\
    00

    It is for bypassing UAC at Everything start ?

    Also, you can add two files in your addon:

    Everything.lng to add foreigns languagues support

    Everything.ini for customization.

    Content of mine:

    localization=Français

    show_highlighted_search_terms=1

    allow_multiple_windows=1

    allow_multiple_windows_from_tray=1

    I have made a french addon based on a sfx rar archive. (made it for XP originally but it it works in Windows7 X86 and X64 as a silent installer)

    my comment:

    Path=%PROGRAMFILES%\Everything
    SavePath
    Silent=1
    Overwrite=1
    Title=Everything Installation

    Shortcut=P,"Everything.exe", "", "indexe tous les fichiers", "Everything"

    Technical explanation: as the sfx archive is a 32 bit executable, the variable %ProgramFiles% is correctly set at Program Files (x86) on Windows 7 X64.

    If i want to extract to Program Files in a X64 environement with a RAR SFX archive, i have two choices:

    - replace %ProgramFiles% with %ProgramW6432% (advantage: the archive can be made in a 32 bits OS)

    - keep %ProgramFiles% but make a 64bits sfx archive (obviously only possible with Winrar 64 bits )

    But i don't have yet found how to add autostart with UAC bypassing in my addon, hence the first question.

×
×
  • Create New...