Jump to content

ckislam

Member
  • Posts

    137
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Egypt

Posts posted by ckislam

  1. New Year and New Future Plans for TGUP:

    I'm planning in the near future to add a possibility for users to integrate their own Applications/Installers in TGUP.

    An Extra Tool will published for that purpose, which intends to make the creating of the Application List (Source) easier.

    The Lists or Sources can be on a local drive, network share or an internet URL.

    Who likes can publish his own source for other users. Similar to the Cydia (iPhone) method. :rolleyes:

    Hope it finds satisfaction

  2. Replace Special Characters by query to readable characters in batch files

    I had the same issue recently when trying to retrieve the common programs path from the registry of a german windows.

    the retrieved path couldn't be readable.

    Here is how I solved it:

    @echo off

    SET LS=HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    SET CS=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

    for /f "tokens=3* delims= " %%i in ('reg query "%LS%" /v "Common Programs"') do CALL :SPCHARS "ComProgs" "%%j"
    for /f "tokens=3* delims= " %%i in ('reg query "%LS%" /v "Common Startup"') do CALL :SPCHARS "ComStart" "%%j"
    for /f "tokens=3* delims= " %%i in ('reg query "%LS%" /v "Common Desktop"') do CALL :SPCHARS "ComDesk" "%%j"
    for /f "tokens=3* delims= " %%i in ('reg query "%LS%" /v "Common AppData"') do CALL :SPCHARS "ComAppD" "%%j"
    for /f "tokens=3* delims= " %%i in ('reg query "%CS%" /v "AppData"') do CALL :SPCHARS "AppD" "%%j"
    for /f "tokens=3* delims= " %%i in ('reg query "%CS%" /v "Programs"') do CALL :SPCHARS "Progs" "%%j"
    for /f "tokens=3* delims= " %%i in ('reg query "%CS%" /v "Startup"') do CALL :SPCHARS "Start" "%%j"
    for /f "tokens=3* delims= " %%i in ('reg query "%CS%" /v "Desktop"') do CALL :SPCHARS "Desk" "%%j"


    ECHO "%ComProgs%"
    PAUSE
    EXIT


    REM MOVE THIS TO THE END OF YOUR BATCH FILES
    :SPCHARS
    REM Replaces Special Characters to Readable Characters in Batch File
    REM VAR 1=Variable Name to SET, VAR 2=Variable Value
    set t=
    FOR /F %%i in ("%~2") DO SET t=%~2
    SET t=%t:ä=„%
    SET t=%t:á= %
    SET t=%t:à=…%
    SET t=%t:é=‚%
    SET t=%t:è=Š%
    SET t=%t:í=¡%
    SET t=%t:ì=�%
    SET t=%t:ö=”%
    SET t=%t:ó=¢%
    SET t=%t:ò=•%
    SET t=%t:ü=�%
    SET t=%t:ù=—%
    SET t=%t:ú=£%
    SET t=%t:ß=á%
    SET t=%t:ç=‡%
    set %~1=%t%
    set t=
    GOTO :EOF
    EXIT

    For delims I used [TAB] followed by [sPACE]

  3. Here Updated Switches for Opera 10:

    /L1033 /S /V"/qb ALLUSERS=1 CREATE_DESKTOP_ICON=1 CREATE_DESKTOP_ICON_REG=0 CREATE_DESKTOP_ICON_REG_USR=0 CREATE_QUICKLAUNCH_ICON=0 CREATE_QUICKLAUNCH_ICON_REG=0 CREATE_QUICKLAUNCH_ICON_REG_USR=0 CREATE_STARTMENU_ICONS=0 CREATE_STARTMENU_ICONS_REG=0 CREATE_STARTMENU_ICONS_REG_USR=0 MULTI_USER_SETTING=1"

    english 1033

    german 1031

    french 1036

    italian 1040

    spanish 1034

  4. Here's a method I've used which should always work, (unless your crazy enough to have disabled the workstation service)!

    ThisOS.cmd

    @Echo off&Setlocal enableextensions
    For /f "delims=" %%# In ('Net config work^|Find /i " Windows "') Do Call :OSis %%#
    If Defined HostOS (Echo Detected OS is Windows %HostOS%) Else (
    Echo Host OS not Detected!)
    Pause&Goto :Eof
    :OSis
    Echo %*|Find "2000">Nul 2>&1&&(Set "HostOS=2000"&Goto :Eof)
    Echo %*|Find "2002">Nul 2>&1&&(Set "HostOS=XP"&Goto :Eof)
    Echo %*|Find "2003">Nul 2>&1&&(Set "HostOS=2003"&Goto :Eof)
    Echo %*|Find "Vista">Nul 2>&1&&(Set "HostOS=Vista"&Goto :Eof)
    Echo %*|Find "2008">Nul 2>&1&&(Set "HostOS=2008"&Goto :Eof)
    Echo %*|Find "7">Nul 2>&1&&(Set "HostOS=7"&Goto :Eof)
    (Set HostOS=)

    Make it simple (in one line) :)

    FOR %%i in (2000 2002 2003 Vista 2008 7) DO NET CONFIG WORK|Find "%%i">Nul 2>&1&&(Set "HostOS=%%i"&ECHO %HOSTOS%)

  5. Technically incorrect, this will detect the version of the Command Interpreter not that of Windows!

    May be you should try this:

    ver /?

    Displays the Windows version

    I get this:

    at XP: Microsoft Windows XP [Version 5.1.2600]

    at 7: Microsoft Windows [Version 6.1.7600]

    Also stated at microsoft documentation:

    http://www.microsoft.com/resources/documen...r.mspx?mfr=true

    Ver

    Displays the Windows XP version number.

    How did you find out that it detects the command Interpreter version not that windows?!

    Funny that microsoft was mistaken :)

    Anyhow you know it better than them ;)

    Thanks

  6. one script, which detects which OS it is being run on..

    To Detect Windows version from the command line use the VER command, with find and errorlevels you can then redirect your commands

    Example for usage:

    VER | FIND.exe /i "xp" >NUL
    if %errorlevel%==0 ECHO You are using XP..

    to identify x86 and x64 CPU, use the variable %processor_architecture%

    also see this:

    http://support.microsoft.com/kb/556009

    I hope this helps

  7. Is there a way I can prevent tgup from creating it's own idea of organization in the Start menu? I'd like to be able to have applications show up as the normally would (for example: Firefox is located in "Mozilla Firefox" under the Start menu).

    Answer: No (You are the first to ask about such a function, if there is a big demand >5 people, I would implement a switch to make it possible)

    New TGUP version 00.18 has been released. Now with proxy support

  8. I discovered a way for making Windows Live Messenger 8.5.1302.1018 Silent Setup. It works only online. But it is not a problem because I suppose you have to be online if you use Windows Live Messenger.

    It is actually Switchless. All you need is to generate a cookie,that tells Windows Live Installer which components have to be installed.

    Create the Following Batch File

    SET CO="%userprofile%\Cookies\%username%@get.live[999].txt"
    @echo off
    Title Windows Live Messenger Silent Setup
    ECHO Installing Windows Live Messenger...
    >%CO% ECHO wlxp
    >>%CO% ECHO p=A26D7C8B-875D-48E2-BED1-7168268D022A*0^&m=en-us^&t=1^&s=0^&h=0^&c=0
    >>%CO% ECHO get.live.com/
    >>%CO% ECHO 1088
    >>%CO% ECHO 4219999999
    >>%CO% ECHO 99999999
    >>%CO% ECHO 9999999999
    >>%CO% ECHO 99999999
    >>%CO% ECHO *
    "WLinstaller.exe"

    Put it in the same folder of "WLinstaller.exe" (Windows Live Installer) and run the batch File.

    You can add these optional Tweaks to the Batch File:

    To Disable Sharing Folders and Avoid Autostart

    reg.exe delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "MsnMsgr" /f 2>NUL>NUL
    reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\usnjsvc" /v "Start" /t REG_DWORD /d "0x4" /f 2>NUL>NUL
    reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{FC9FB64A-1EB2-4CCF-AF5E-1A497A9B5C2D}" /f 2>NUL>NUL

    Add This at the end to Uninstall Windows Live Installer

    Start /wait "WLIU" "MsiExec.exe" /X{A7E4ECCA-4A8E-4258-8EC8-2DCCF5B11320} /qb /quiet

  9. as soon as i disable the networkconnection and rerun the program i receive an error "no network connection"

    The generated Silent Installers can't be installed using TGUP.

    You can run them either manually or using a simple Batch File.

    @echo off
    App1.exe
    App2.exe

    If you want this Batch File to be automatically generated, then I will consider this as a Feature request. :rolleyes:

  10. ipodservice.exe is a process belonging to Apple's iTunes mp3 media suite and is a core process. This is a non-essential process. Disabling or enabling it is down to user preference.

    ituneshelper.exe is a process belonging to Itunes MP3 streaming tool by Apple, which allows you to play MP3's. This process speeds up iTunes when it starts, and the program also monitors for connected iPod devices. This is a non-essential process. Disabling or enabling it is down to user preference.

×
×
  • Create New...