Jump to content

twizt3d

Member
  • Posts

    105
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by twizt3d

  1. FirefoxSetDefaultBrowser.cmd

    @ECHO OFF &SETLOCAL ENABLEEXTENSIONS

    ::javascript file to patch
    SET "JSTOPATCH=components\nsBrowserContentHandler.js"
    ::javascript line in the file: line to search for deciding to patch or not
    SET "ESCSEARCH= if (cmdLine.handleFlag(\"silent\", false))"
    ::javascript lines in the file: marker lines to insert the patch after
    SET "MARKER1= if (cmdLine.handleFlag("preferences", false)) {"
    SET "MARKER2= }"
    ::javascript lines in the file: actual patch lines to insert
    SET "PATCHLINE1= if (cmdLine.handleFlag("silent", false))"
    SET "PATCHLINE2= cmdLine.preventDefault = true;"

    ::Find Firefox install directory. ©Yzöwl
    FOR /F "TOKENS=3 DELIMS= " %%? IN (
    'REG QUERY "HKLM\SOFTWARE\Mozilla\Mozilla Firefox" /S ^|FINDSTR "\<Install Directory\>" 2^>NUL'
    ) DO (IF ERRORLEVEL 0 (SET JSCRIPT=%%~s?%JSTOPATCH%))
    IF NOT EXIST %JSCRIPT% (ENDLOCAL &GOTO :EOF)

    ::check if the -silent option already exists, if yes, no need to patch
    FINDSTR /B /C:"%ESCSEARCH%" %JSCRIPT% >nul
    IF NOT ERRORLEVEL 1 GOTO SETDEFAULT

    :patch : add the -silent command line option on versions <1.6
    ::according to Bugzilla: [url="https://bugzilla.mozilla.org/show_bug.cgi?id=324023"]https://bugzilla.mozilla.org/show_bug.cgi?id=324023[/url]
    echo Patching Firefox: re-add the -silent command line option...

    SET INSERTHERE=NOWAITNOTHERE
    IF EXIST %JSCRIPT%.patch DEL %JSCRIPT%.patch
    FOR /F "TOKENS=* DELIMS=" %%? IN (%JSCRIPT%) DO (
    >>%JSCRIPT%.patch ECHO\%%?
    IF "%%?"=="%MARKER1%" SET INSERTHERE=YESHERE
    IF "%%?"=="%MARKER2%" CALL :SUB_INSERT "%%?"
    )
    IF EXIST %JSCRIPT%.patch MOVE /Y %JSCRIPT%.patch %JSCRIPT%

    :SETDEFAULT
    echo Set Firefox as the default browser...

    ::Find Firefox exe path. ©Yzöwl
    FOR /F "TOKENS=3 DELIMS= " %%? IN (
    'REG QUERY "HKLM\SOFTWARE\Mozilla\Mozilla Firefox" /S ^|FINDSTR "\<PathToExe\>" 2^>NUL'
    ) DO (IF ERRORLEVEL 0 (SET SPF=%%~s?))
    IF NOT DEFINED SPF (ENDLOCAL &GOTO :EOF)

    ::Backup the actual profile folder and create a dummy one (needed by firefox)
    IF EXIST "%APPDATA%\Mozilla\Firefox" RENAME "%APPDATA%\Mozilla\Firefox" FirefoxTempFolderSetDefault
    START /WAIT %SPF% -CreateProfile default

    START /WAIT %SPF% -silent -setDefaultBrowser
    PING -n 2 LOCALHOST>nul

    ::Remove the dummy profile and set back the existing one if any
    RD /S /Q "%APPDATA%\Mozilla\Firefox" >nul
    IF EXIST "%APPDATA%\Mozilla\FirefoxTempFolderSetDefault" (
    RENAME "%APPDATA%\Mozilla\FirefoxTempFolderSetDefault" Firefox >nul
    )

    echo ...Done!
    pause
    ENDLOCAL &GOTO :EOF


    :SUB_INSERT
    ::Patching function
    IF NOT "%INSERTHERE%"=="YESHERE" EXIT/B
    >>%JSCRIPT%.patch ECHO\%PATCHLINE1%
    >>%JSCRIPT%.patch ECHO\%PATCHLINE2%
    echo\************ PATCHED ****************
    SET INSERTHERE=ALREADYDONE
    EXIT/B

    For unattended use, remove the 'pause' after 'echo ...Done!'. All 'echo' lines (with 'echo' in small letters) can also be removed safely.

    Could you write one for thunderbird?

  2. my onboard audio actually worked at a time, but too many programs didnt, aparently aim wasnt happy, so i needed to download that new triton thing.... then something in the boot secter got messed up i think, because after restarting the computer decided to not load all of windows, it would restart again at random times....

  3. by hide you mean install correct? So basically i install xpsp2 then go to wu and install windows messenger 4.7, restart in safe mode and copy the datastore file, then copy it into $OEM$\$$\SoftwareDistribution\DataStore, and when i install using my UACD messenger wont be installed but windows update will think it is. Did i get that correct? i guess the only way to find out is try, but please correct me if im wrong.

  4. ya, supprising the thread got 10 pages long and no one else noted that, anyway, another 2 problems....

    I added a shortcut to the start menu that points to %PROGRAMFILES%\Nero\Nero 7\Nero\Uninstall\UNNERO.exe but when you run that file, you get this error message.

    There is already a newer Nero application on your system.
    Please uninstall the newer applications and start the installation again.

    Ok well control panel - Add/Remove Programs - Remove Nero Ultra Edition works, but still complains about that .ax file (you know, the one thats actually there, but setup cant see it.) ok well its still uninstalled. There are some files that are left over tho, mainly empty folders in %PROGRAMFILES%\Nero\. Any idea on how to delete that dir when uninstalling?

    Second problem, /qn doesnt work. It still complains about setupx.exe missing, /qb seems to be the only switch that works. As soon as i figure all this out im gonna start a thread with a switchless installer file, i havnt seen any for Nero 7 yet and im pretty close (YAY! MY FIRST RELEASE) Uhh anyway, anyone have any ideas on how to fix any of this. Or does anyone know how to get rid of snake mites lol? (My pet pyton has little black things crawling on him and he doesnt seem happy)

  5. Hey guys, great guide keytotime, i have a contrabution to it (ok so i found a typo) then 2 questions.

    there is a typo in post one below 2)In order to add the shortcut's add this your cleanup.cmd. This is for the tools and nero itself.

    If Exist "%PROGRAMFILES%\Nero\Nero 7\Core\nero.exe" md "%ALLUSERSPROFILE%\Start Menu\Programs\Nero 7 Ultra"
    If Exist "%PROGRAMFILES%\Nero\Nero 7\Core\nero.exe" md "%ALLUSERSPROFILE%\Start Menu\Programs\Nero 7 Ultra\Tools"
    XMKLINK "%ALLUSERSPROFILE%\Start Menu\Programs\Nero 7 Ultra\Nero Burning Rom" "%PROGRAMFILES%\Nero\Nero 7\Core\nero.exe"
    XXMKLINK "%ALLUSERSPROFILE%\Start Menu\Programs\Nero 7 Ultra\Tools\Nero CDSpeed" "%PROGRAMFILES%\Nero\Nero 7\Nero Toolkit\CDSpeed.exe"
    XXMKLINK "%ALLUSERSPROFILE%\Start Menu\Programs\Nero 7 Ultra\Tools\Nero DriveSpeed" "%PROGRAMFILES%\Nero\Nero 7\Nero Toolkit\DriveSpeed.exe"
    XXMKLINK "%ALLUSERSPROFILE%\Start Menu\Programs\Nero 7 Ultra\Tools\Nero InfoTool" "%PROGRAMFILES%\Nero\Nero 7\Nero Toolkit\InfoTool.exe"

    there is an x missing in the first XXMKLINK line of the cleanup file which prevents loading the start menu shortcut to nero.exe

    Question/Problem 1

    I also get the uninstal error complain about NEResize.ax (I did check the location, and the file is actually there ??? any other ideas on how to fix this)

    Question/Problem 2

    Has anyone figured out how to run the msi file with anything besides the /qb switch, Basically what im doing is creating a cmd file to install nero, then packaging that along with all the install files in a sfx file and calling my install.cmd file after extracting to a temp dir, thus creating my own switchless installer, now i all ready have this 100% working, my only complaint is running it with quiet basic UI. Too many dialogue boxes, I tried all the other switches and they complain about setupx.exe. Has anyone figured out how to trick setup into using setupx.exe but with our own configuration so to speak?

  6. what i do is install aim, then middle man (logging), then aim ad hack. Copy the entire c:\program files\aim and c:\program files\middle man, then extract them to thoughs directorys on the new install, then open regedit and copy everything in aim then import the res. works fine for me.

    has anyone gotten the new aim triton to work yet?

×
×
  • Create New...