MSFN Forum: Windows Blinds & BSPlayer - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Windows Blinds & BSPlayer Scripts or another option Rate Topic: -----

#1 User is offline   Tristec 

  • Group: Members
  • Posts: 4
  • Joined: 01-August 08

Posted 05 January 2009 - 10:40 PM

First sorry for my bad English ...

I have a problem took several attempts to create scripts to silence two programs:

Windows Blinds 6.02
BSPlayer 2.34

I failed to create the perfect script to install without my intervention, when I was hanging with one hand and runs out of order but the script, I hope to achieve and help ^ ^ thank you very much


#2 User is offline   Nologic 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 461
  • Joined: 07-October 03

Posted 06 January 2009 - 01:09 AM

Well WinBlinds is a major pain in the a**...with AutoIt depending on how much you wish to tweak things...as the skinned interface is really not AutoIt friendly.

Course I haven't messed with any of this stuff in years...plus AutoIt isn't exactly silent...mostly just automated.

Exactly what are you getting hung up on?

#3 User is offline   radix 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 715
  • Joined: 08-February 07

Posted 06 January 2009 - 03:05 AM

@Tristec
AutoIt script for BS Player:
 
#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.0.0
 Author:         myName
 
 Webteh BSplayer Pro 2.34.980
 Application site: [url="http://www.bsplayer.org/"]http://www.bsplayer.org/[/url]
 
 Script Function:
	Template AutoIt script.

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

; Script Start - Add your code below here

Opt("TrayIconDebug", 1)

; Installer file name
$Installer = "setup.exe"
; Detect the Operating System type (32 bit or 64 bit)
$OS = _OSBit()

If $OS = 32 Then
    $PreviousInstallation = RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\BSPlayerp", "UninstallString")
    If StringRight($PreviousInstallation, 4) = '"' Then
	    $PreviousInstallation = StringTrimRight($PreviousInstallation, 4)
    EndIf
    If StringLeft($PreviousInstallation, 1) = '"' Then
	    $PreviousInstallation = StringTrimLeft($PreviousInstallation, 1)
    EndIf
    If FileExists($PreviousInstallation) Then
	    MsgBox(0x40010, @ScriptName, "Please uninstall previous version of BS Player before using this script", 4)
	    Exit
    EndIf
EndIf

If $OS = 64 Then
    $PreviousInstallation = RegRead("HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\BSPlayerp", "UninstallString")
    If StringRight($PreviousInstallation, 4) = '"' Then
	    $PreviousInstallation = StringTrimRight($PreviousInstallation, 4)
    EndIf
    If StringLeft($PreviousInstallation, 1) = '"' Then
	    $PreviousInstallation = StringTrimLeft($PreviousInstallation, 1)
    EndIf
    If FileExists($PreviousInstallation) Then
	    MsgBox(0x40010, @ScriptName, "Please uninstall previous version of BS Player before using this script", 4)
	    Exit
    EndIf
EndIf

; Start checking for bspcodecdl.exe process
AdlibEnable('_Adlib')

; Run the installer
RunWait($Installer & " /S")

; Stop checking for bspcodecdl.exe process
AdlibDisable()

Func _Adlib()
	; Close bspcodecdl.exe process
    $PID = ProcessExists("bspcodecdl.exe")
    If $PID Then
	    ProcessClose($PID)
	EndIf
EndFunc

Func _OSBit()
	Local $tOS = DllStructCreate("char[256]")
	Local $aGSWD = DllCall("Kernel32.dll", "int", "GetSystemWow64Directory", "ptr", DllStructGetPtr($tOS), "int", 256)
	If IsArray($aGSWD) And DllStructGetData($tOS, 1) Then Return 64
	Return 32
EndFunc 

This post has been edited by radix: 06 January 2009 - 03:06 AM


#4 User is offline   radix 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 715
  • Joined: 08-February 07

Posted 06 January 2009 - 08:12 AM

WindowBlinds 6.3 build 67 free:
 
#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.0.0
 Author:         myName
 
 WindowBlinds 6.3 build 67
 Application site: [url="http://www.stardock.com/products/windowblinds/"]http://www.stardock.com/products/windowblinds/[/url]
 Does not have support for Windows XP Professional 64 bit
 
 Script Function:
	Template AutoIt script.

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

; Script Start - Add your code below here

Opt("TrayIconDebug", 1)

; Installer file name
$Installer = "WindowBlinds6_public.exe"

$PreviousInstallation = RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\WindowBlinds", "UninstallString")
If $PreviousInstallation Then
	MsgBox(0x40010, @ScriptName, "Please uninstall previous version of WindowBlinds before using this script", 4)
	Exit
EndIf

; Start checking for wbconfig.exe process
AdlibEnable('_Adlib')

; Run the installer
RunWait($Installer & " /s")

; Wait to finish installation
ProcessWaitClose($Installer)

; Block WindowBlinds to run after the next reboot
RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce", "WindowBlinds")

; Stop checking for wbconfig.exe process
AdlibDisable()

Func _Adlib()
	; Close wbconfig.exe process
    $PID = ProcessExists("wbconfig.exe")
    If $PID Then
	    ProcessClose($PID)
	EndIf
EndFunc 


#5 User is offline   Tristec 

  • Group: Members
  • Posts: 4
  • Joined: 01-August 08

Posted 06 January 2009 - 05:04 PM

Thanks radix!!!

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy