Difference between revisions of "BGInfo"
From WPKG | Open Source Software Deployment and Distribution
m |
(corrected reg delete command and corrected install command to accept eula) |
||
Line 6: | Line 6: | ||
<install cmd="cmd /c copy /y %SOFTWARE%\bginfo\bginfo.exe %WINDIR%\system32" /> | <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='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 "c:\windows\system32\bginfo.exe /accepteula /i%windir%\system32\bginfo.bgi /timer:0" /f' /> | |
− | <remove cmd="cmd /c del | + | <remove cmd="cmd /c del %WINDIR%\system32\bginfo.bgi" /> |
− | <remove cmd="cmd /c del | + | <remove cmd="cmd /c del %WINDIR%\system32\bginfo.exe" /> |
− | <remove cmd='reg | + | <remove cmd='reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v BGInfo /f' /> |
</package> | </package> | ||
</source> | </source> | ||
[[category:Silent Installers]] | [[category:Silent Installers]] |
Revision as of 10:51, 16 March 2009
This is a silent installer and uninstaller for BGInfo.
<package id="bginfo" name="BGInfo" revision="1" priority="0" 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 "c:\windows\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>