Backinfo self contained install script

This is a simple installer which I created using AutoIT, which will do the following:

  1. Copy the backinfo files to C:\Programdata\backinfo
  2. Create the registry entries to run at startup for all users in HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run
  3. Run BackInfo.exe

Here is the source code if anyone wishes to modify it:

#cs ----------------------------------------------------------------------------
AutoIt Version:

Script Function:
Backinfo script, set deskto pbackgound colour if required before running the script

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

;Admin rights are required for writing to HKLM for all users

$iResult = MsgBox(1, "BackInfo Install Script", "Install and set backinfo?")

If $iResult = 2 Then
; No Button pressed

;Set variables
$vWinDir = @WindowsDir
$vInstallDir = @AppDataCommonDir & "\BackInfo\"

;Create the directory

If @error Then
Msgbox(16,"Error","Error creating directory")

;Install the backinfo files, these will be complied and included with the exe
FileInstall("C:\temp\BackInfo\BackInfo.exe", $vInstallDir)
FileInstall("C:\temp\BackInfo\BackInfo.ini", $vInstallDir)
; Create the registry entry which will be under Wow6432node

RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "BackInfo", "REG_SZ", "C:\Programdata\Backinfo\BackInfo.exe")

If @error Then
$error = "There is an error writing the reg key: " & @error
MsgBox(16, "Error", $error)

;run backinfo now

Run($vInstallDir & "BackInfo.exe" & " " & $vInstallDir & "BackInfo.ini")

MsgBox(0,"Complete", "BackInfo installed")


26 thoughts on “Backinfo self contained install script”

  1. Let me know if any issues with this, seems to work great so far for me on all the PCs and servers I have tried it on. I also tried using the default wallpaper and converting using autoIT to a bitmap, which worked, but it was too problematic with different screen resolutions. This is also why the text is in the middle of the screen.

    1. Heya this is somewhat of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding know-how so I wanted to get guidance from someone with experience. Any help would be enormously appreciated!

      1. Katherine,I called Jesus a progressive instead of a liberal for this very purpose. The values of helping one another, seeing that each gets her fill, those are progressive values. You can be conservative, liberal, Republican, anything and be progressive. In this society we have the power to steer our government. It is our duty to use it (and our own resources) to help those less fortunate than us. We also have an obligation to Christ, to protect his name from being misused by those who only seek power and wealth.

      2. Bravo d-na Udrea!!! Cu asa realizari importante, in curand ne vor vizita la Roman si extraterestrii!!! Macar daca ar lua cu ei gunoaiele societatii ca Tase, Aspazie si alti vaietuci portocalii care tot incearca, sarmanii, sa dea impresia ca udrea are sustinere in acest oras. Pe cand vedem si un exemplu de proiect in urma caruia sa se produca ceva, nu doar bazat pe consum ??? Ar lua asta si pielea de pe noi…daca ar fi in stare sa prosteasca mai mult de 20% din votanti sa ii acorde credit…

    1. dit :En plus de l’amélioration du temps du boot, ce serait cool de voir une amélioration au niveau du temps de chargement de la session.Affaire à suivre, mais ça s’annonce bien !

    2. Nice!! no sabia q solo se podia usar una vez al dia!! saludos desde veenzuela! y ahorita no uso ninguno en realidad pero me encantaria participar en el sorteo para usarlo de nuevo jeje! y enamorarme!

  2. I might add that Microsoft Forefront Endpoint Protection 2010 doesnt detect anything wrong with the AutoBackInfo.exe.

  3. I don’t understand why, but all the time, my background is black.
    By default, background is black, and if I add “BackgroundBitmap = C:\Windows\Web\Wallpaper\Windows\img0.bmp” My background does’nt change… always black…

    Can you help me ?

  4. Can anyone confirm that this is a malicious file or not? Symantec detected it as a Trojan horse! until otherwise proven DO NOT DOWNLOAD THIS FILE!!!!!

  5. I am pulling this file, it is not a virus but google detects it as malware because of the scripting. You can create it yourself from the code.

Leave a Reply

Your email address will not be published. Required fields are marked *