Jump to content

vkcelik

Member
  • Posts

    8
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Denmark

Posts posted by vkcelik

  1. Place the hard disk into the enclosure and plug into another computer with a cd/dvd drive

    Copy the content of the XP cd to the harddisk (the one in the enclosure)

    There is a \I386\winnt32.exe at a XP CD. Use this application.

    Prepare external drive e:

    winnt32.exe /makelocalsource /noreboot /sysdrive:e /tempdrive:e

    Edit file migrate.inf at drive e: You may change e: to c:

    Or delete file migrate.inf.

    Heh. A little to late reply, but it WORKED. thanx

  2. Ashampoo Burning Studio 10 was released, someone has updated script allready?

    - no dekstop icon

    - no myshampoo toolbar

    - no internet explorer start after install

    Thanks!

    Im rather new to AutoIt and it took me quite some time to make it but here it is. The silent installation script for Ashampoo Burning Studio 10:

    #cs ----------------------------------------------------------------------------

    AutoIt Version: 3.3.6.1
    Author: Veli Kerim Celik (based on script by DaRk MaDnEsS)

    Ashampoo Burning Studio 10
    Application site: http://www.ashampoo.com

    Script Function:
    Installs ABS 10 silently. Preserves internet explorer start page and search provider. Preventing default browser and burning studio gadget to open after installation. Deletes desktop shortcut.

    #ce ----------------------------------------------------------------------------

    ; Script Start - Add your code below here

    #Include <Misc.au3>

    If _Singleton("Nullsoft Winamp 5.5.7.2830",1) = 0 Then
    Exit
    EndIf

    Opt("TrayIconDebug", 1)

    ; Installer file name
    $Installer = "ashampoo_burning_studio_10_10.0.1_sm.exe"
    ; Serial number reg file installer
    $SN = "sn.bat"

    ; Save and disable the default internet browser, start page and search engine (to prevent Ashampoo Burning Studio installer to change it and open it at the end of installation)
    $DefaultHttpBrowser = RegRead("HKCR\http\shell\open\command\", "")
    $DefaultHttpsBrowser = RegRead("HKCR\https\shell\open\command\", "")
    $DefaultStartPage = RegRead("HKCU\Software\Microsoft\Internet Explorer\Main", "Start Page")
    $DefaultSearch = RegRead("HKCU\Software\Microsoft\Internet Explorer\SearchScopes", "DefaultScope")
    RegDelete("HKCR\http\shell\open\command\", "")
    RegDelete("HKCR\https\shell\open\command\", "")

    ; Unregistering windows sidebar gadget handler (to prevent Ashampoo Burning Studio installer to open its gadget at the end of installation)
    RunWait(@ComSpec & " /C " & "regsvr32 /u /s" & "%programfiles%\Windows Sidebar\sbdrop.dll")

    ; Start checking
    AdlibRegister("_Adlib")

    ; Run the installer
    RunWait($Installer & " /sp- /verysilent /norestart")

    Sleep(2000)

    ; Inserts serial number
    RunWait($SN)

    ; Restore the default internet browser
    RegWrite("HKCR\http\shell\open\command\", "", "REG_SZ", $DefaultHttpBrowser)
    RegWrite("HKCR\https\shell\open\command\", "", "REG_SZ", $DefaultHttpsBrowser)
    RegWrite("HKCU\Software\Microsoft\Internet Explorer\Main", "Start Page", "REG_SZ", $DefaultStartPage)
    RegWrite("HKCU\Software\Microsoft\Internet Explorer\SearchScopes", "DefaultScope", "REG_SZ", $DefaultSearch)

    ; Delete Desktop icon
    FileDelete(@DesktopCommonDir & "\Ashampoo Burning Studio 10.lnk")

    ; Registering windows sidebar gadget handler
    RunWait(@ComSpec & " /C " & "regsvr32 /s" & "%programfiles%\Windows Sidebar\sbdrop.dll")

    ; Stop checking
    AdlibUnRegister("_Adlib")

    Func _Adlib()
    ; Close toolbar installation process
    $PID = ProcessExists("MyAshampoo.exe")
    If $PID Then
    ProcessClose($PID)
    EndIf

    ; Close Ashampoo Burning Studio process
    $PID = ProcessExists("burningstudio10.exe")
    If $PID Then
    ProcessClose($PID)
    EndIf

    ; Close Internet Explorer process if was started
    $PID = ProcessExists("IEXPLORE.EXE")
    If $PID Then
    ProcessClose($PID)
    EndIf
    EndFunc

    The script calls the file sn.bat to apply the serial number. sn.bat checks if it is a 32 or 64 bit system and calls the respective reg file. Contents of sn.bat:

    IF EXIST "%PROGRAMFILES(X86)%" GOTO 64BIT ELSE GOTO 32BIT

    :32BIT
    REGEDIT /S x86.reg
    EXIT

    :64BIT
    REGEDIT /S x64.reg
    EXIT

    The contents of the x86.reg file:

    REGEDIT4

    [HKEY_LOCAL_MACHINE\SOFTWARE\Ashampoo\Ashampoo Burning Studio 10\ash_inet]
    "SharewareType"=dword:00000001
    "RegKey"="XXXXXX-XXXXXX-XXXXXX"
    "firststart"=dword:00000000

    The contents of the x64.reg file:

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Ashampoo\Ashampoo Burning Studio 10\ash_inet]
    "SharewareType"=dword:00000001
    "RegKey"="XXXXXX-XXXXXX-XXXXXX"
    "firststart"=dword:00000000

    This was tested on a 32 bit machine. Should work on a 64 bit but haven't tested yet. Would be happy if somebody did.. Made this for use with WPI for my unattended Windows 7 installation.

    Remember to run as Administrator!!!!

    Enjoy :P

    ABSp.au3

  3. Hello

    Yeah as the title says i wanted to know if it possible to run a program (batch script) at first logon after the desktop is displayed.

    I know this is possible using the HKCU\...\CurrentVersion\Run or HKLM\...\CurrentVersion\Run registry keys. This will execute after the desktop is loaded but it will also get executed at every logon. I only need to have it executed 1 time at the first logon. I could try to delete the Run keys using the batch file after it has invoked it but the batch file doesnt have rights to edit in the registry

    I also tried using the RunOnce keys but it gets executed before the desktop is loaded causing the batch file not to function properly

  4. Hi

    I want to format (re-install XP) my laptop, BUT the laptop DOESN'T have any cd/dvd drive, floppy drive and it CAN'T boot from usb sticks or stuff like that :realmad:.

    I have the windows cd that came with the laptop and a hard disk enclosure.. :yes:

    So in that regard I want to know if it's possible to do the following:

    Remove the hard disk from the laptop which needs be to formatted

    Place the hard disk into the enclosure and plug into another computer with a cd/dvd drive

    Copy the content of the XP cd to the harddisk (the one in the enclosure)

    Plug the hard disk back in the laptop and run the XP setup from it?

×
×
  • Create New...