Difference between revisions of "BGInfo"
From WPKG | Open Source Software Deployment and Distribution
(corrected reg delete command and corrected install command to accept eula) |
(tidied up the xml, added an upgrade routine, and changed a hard coded path to %WINDIR%) |
||
Line 1: | Line 1: | ||
− | This is a silent installer and uninstaller for | + | == BgInfo v4.16 == |
+ | This is a silent installer and uninstaller for BgInfo v4.16 | ||
+ | Download from [http://technet.microsoft.com/en-us/sysinternals/bb897557.aspx here] | ||
+ | |||
+ | You need to make the bginfo.bgi configuration file yourself by running the application and saving a custom configuration. | ||
+ | |||
<source lang="xml"> | <source lang="xml"> | ||
− | + | <package | |
− | + | id="bginfo" | |
− | + | name="BgInfo v4.16" | |
− | + | revision="2012071301" | |
− | + | priority="10" | |
− | + | reboot="false"> | |
− | + | <check type="file" condition="exists" path="%WINDIR%\system32\bginfo.bgi" /> | |
− | + | <check type="file" condition="exists" path="%WINDIR%\system32\Bginfo.exe" /> | |
− | + | ||
− | + | <install cmd='cmd /c copy /y %SOFTWARE%\bginfo\bginfo.exe %WINDIR%\system32' /> | |
+ | <install cmd='cmd /c copy /y %SOFTWARE%\bginfo\bginfo.bgi %WINDIR%\system32' /> | ||
+ | <install cmd='reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v BGInfo /t REG_SZ /d "%WINDIR%\system32\bginfo.exe /accepteula /i%WINDIR%\system32\bginfo.bgi /timer:0" /f' /> | ||
+ | |||
+ | <upgrade cmd='cmd /c copy /y %SOFTWARE%\bginfo\bginfo.exe %WINDIR%\system32' /> | ||
+ | <upgrade cmd='cmd /c copy /y %SOFTWARE%\bginfo\bginfo.bgi %WINDIR%\system32' /> | ||
+ | <upgrade cmd='reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v BGInfo /t REG_SZ /d "%WINDIR%\system32\bginfo.exe /accepteula /i%WINDIR%\system32\bginfo.bgi /timer:0" /f' /> | ||
+ | |||
+ | <remove cmd='cmd /c del %WINDIR%\system32\bginfo.bgi' /> | ||
+ | <remove cmd='cmd /c del %WINDIR%\system32\bginfo.exe' /> | ||
+ | <remove cmd='reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v BGInfo /f' /> | ||
+ | </package> | ||
</source> | </source> | ||
[[category:Silent Installers]] | [[category:Silent Installers]] |
Latest revision as of 15:59, 13 July 2012
BgInfo v4.16
This is a silent installer and uninstaller for BgInfo v4.16 Download from here
You need to make the bginfo.bgi configuration file yourself by running the application and saving a custom configuration.
<package
id="bginfo"
name="BgInfo v4.16"
revision="2012071301"
priority="10"
reboot="false">
<check type="file" condition="exists" path="%WINDIR%\system32\bginfo.bgi" />
<check type="file" condition="exists" path="%WINDIR%\system32\Bginfo.exe" />
<install cmd='cmd /c copy /y %SOFTWARE%\bginfo\bginfo.exe %WINDIR%\system32' />
<install cmd='cmd /c copy /y %SOFTWARE%\bginfo\bginfo.bgi %WINDIR%\system32' />
<install cmd='reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v BGInfo /t REG_SZ /d "%WINDIR%\system32\bginfo.exe /accepteula /i%WINDIR%\system32\bginfo.bgi /timer:0" /f' />
<upgrade cmd='cmd /c copy /y %SOFTWARE%\bginfo\bginfo.exe %WINDIR%\system32' />
<upgrade cmd='cmd /c copy /y %SOFTWARE%\bginfo\bginfo.bgi %WINDIR%\system32' />
<upgrade cmd='reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v BGInfo /t REG_SZ /d "%WINDIR%\system32\bginfo.exe /accepteula /i%WINDIR%\system32\bginfo.bgi /timer:0" /f' />
<remove cmd='cmd /c del %WINDIR%\system32\bginfo.bgi' />
<remove cmd='cmd /c del %WINDIR%\system32\bginfo.exe' />
<remove cmd='reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v BGInfo /f' />
</package>