Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Sign in to follow this  
Followers 0
sahra

Ashampoo Burning Studio 9.20

39 posts in this topic

i have a problem in script that i found in this forum

the script:

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

AutoIt Version: 3.3.0.0
Author: myName

Ashampoo Burning Studio 9.20
Application site: http://www2.ashampoo.com/webcache/html/1/product_2_2210___USD.htm

Script Function:
Template AutoIt script.

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

; Script Start - Add your code below here

Opt("TrayIconDebug", 1)

; Installer file name
$Installer = "ashampoo_burning_studio_9_9.20_sm.exe"
; Serial number
$SN = "xxxxxx-xxxxxx-xxxxxx"

$PreviousInstallation = RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Ashampoo Burning Studio 9_is1", "InstallLocation")
If StringRight($PreviousInstallation, 1) = '\' Then
$PreviousInstallation = StringTrimRight($PreviousInstallation, 1)
EndIf
If FileExists($PreviousInstallation & "\burningstudio9.exe") Then
MsgBox(0x40010, @ScriptName, "Please uninstall previous version of Ashampoo Burning Studio before using this script", 4)
Exit
EndIf

; Save and disable the default internet browser (to prevent Ashampoo Burning Studio installer to open it at the end of installation)
$DefaultHttpBrowser = RegRead("HKCR\http\shell\open\command\", "")
$DefaultHttpsBrowser = RegRead("HKCR\https\shell\open\command\", "")
RegDelete("HKCR\http\shell\open\command\", "")
RegDelete("HKCR\https\shell\open\command\", "")

; Start checking
AdlibEnable('_Adlib')

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

Sleep(2000)

; Settings
RegWrite("HKLM\Software\Ashampoo\Ashampoo Burning Studio 9", "RegKey", "REG_SZ", $SN)
RegWrite("HKLM\Software\Ashampoo\Ashampoo Burning Studio 9", "InfoChannelsEnabled", "REG_DWORD", "0")
RegWrite("HKLM\Software\Ashampoo\Ashampoo Burning Studio 9\ash_inet", "Enabled", "REG_DWORD", "0")

; Restore the default internet browser
RegWrite("HKCR\http\shell\open\command\", "", "REG_SZ", $DefaultHttpBrowser)
RegWrite("HKCR\https\shell\open\command\", "", "REG_SZ", $DefaultHttpsBrowser)

; Delete page folder and Desktop icon
DirRemove(@AppDataCommonDir & "\page", 1)
FileDelete(@DesktopCommonDir & "\Go to WWW.THE-PAGE.COM.lnk")

; Stop checking
AdlibDisable()

Func _Adlib()
; Close MSN toolbar installation process
$PID = ProcessExists("toolbarsetup_SL1.0_ash_de-DE.exe")
If $PID Then
ProcessClose($PID)
EndIf

; Close Ashampoo Burning Studio process
$PID = ProcessExists("burningstudio9.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

Func OnAutoItStart()
; One script instance only
If WinExists(@ScriptName & '_Interpreter') Then Exit
AutoItWinSetTitle(@ScriptName & '_Interpreter')
EndFunc

now when i run the script a msg show up that AdlibEnable('_Adlib')

^ERROR

what is wrong in this script?

0

Share this post


Link to post
Share on other sites

Try this script with the latest stable AutoIt release:

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

AutoIt Version: 3.3.0.0
Author: myName

Ashampoo Burning Studio 9.21
Application site: http://www2.ashampoo.com/webcache/html/1/product_2_2210___USD.htm

Script Function:
Template AutoIt script.

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

; Script Start - Add your code below here

#include <Misc.au3>
If _Singleton("Ashampoo Burning Studio 9.21",1) = 0 Then
Exit
EndIf

Opt("TrayIconDebug", 1)

; Installer file name
$Installer = "ashampoo_burning_studio_9_9.21_sm.exe"
; Disable InfoChannel
$DisableInfoChannel = 1
; Serial number
$SN = ""

$PreviousInstallation = RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Ashampoo Burning Studio 9_is1", "InstallLocation")
If StringRight($PreviousInstallation, 1) = '\' Then
$PreviousInstallation = StringTrimRight($PreviousInstallation, 1)
EndIf
If FileExists($PreviousInstallation & "\burningstudio9.exe") Then
MsgBox(0x40010, @ScriptName, "Please uninstall previous version of Ashampoo Burning Studio before using this script", 4)
Exit
EndIf

; Save and disable the default internet browser (to prevent Ashampoo Burning Studio installer to open it at the end of installation)
$DefaultHttpBrowser = RegRead("HKCR\http\shell\open\command\", "")
$DefaultHttpsBrowser = RegRead("HKCR\https\shell\open\command\", "")
RegDelete("HKCR\http\shell\open\command\", "")
RegDelete("HKCR\https\shell\open\command\", "")

; Start checking
AdlibRegister("_Adlib")

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

Sleep(2000)

; Disable InfoChannel
If $DisableInfoChannel = 1 Then
RegWrite("HKCU\Software\Ashampoo\Ashampoo Burning Studio 9\ash_inet", "InfoChannel_-updates-_Enabled", "REG_DWORD", 0)
RegWrite("HKCU\Software\Ashampoo\Ashampoo Burning Studio 9\ash_inet", "InfoChannel_ashnews_Enabled", "REG_DWORD", 0)
RegWrite("HKCU\Software\Ashampoo\Ashampoo Burning Studio 9\General", "FirstStart", "REG_DWORD", 0)
EndIf

; Registration
RegWrite("HKLM\Software\Ashampoo\Ashampoo Burning Studio 9", "RegKey", "REG_SZ", $SN)

; Restore the default internet browser
RegWrite("HKCR\http\shell\open\command\", "", "REG_SZ", $DefaultHttpBrowser)
RegWrite("HKCR\https\shell\open\command\", "", "REG_SZ", $DefaultHttpsBrowser)

; Stop checking
AdlibUnRegister("_Adlib")

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

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

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

; Close Mozilla Firefox process if was started
$PID = ProcessExists("firefox.exe")
If $PID Then
ProcessClose($PID)
EndIf

; Close Opera process if was started
$PID = ProcessExists("opera.exe")
If $PID Then
ProcessClose($PID)
EndIf
EndFunc

Edit

Edited by radix
0

Share this post


Link to post
Share on other sites

OK thanks you very match but i don't understand for what is that code:

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

what its does?

or i just need to replace this :

; Start checking
AdlibEnable('_Adlib')

in this:

; Start checking
AdlibRegister("_Adlib")

and it should work?

0

Share this post


Link to post
Share on other sites

_Singleton is a function which prevent to run multiple instance of the same script or compiled script (this mean that you can double click as many times you want on the file, only one instance will run).

AdlibEnable and AdlibDisable is deprecated. Download the last stable version and read the changelog.

0

Share this post


Link to post
Share on other sites

_Singleton is a function which prevent to run multiple instance of the same script or compiled script (this mean that you can double click as many times you want on the file, only one instance will run).

AdlibEnable and AdlibDisable is deprecated. Download the last stable version and read the changelog.

OK thanks you very match you really help me

something last:

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

i need to change "Nullsoft Winamp 5.5.7.2830" to my software Or it does not matter?

0

Share this post


Link to post
Share on other sites

Doesn't matter. gfhdfghdfh is good also. :)

0

Share this post


Link to post
Share on other sites

Doesn't matter. gfhdfghdfh is good also. :)

thanks you but the "#include" is important? because its say Error :

#include
Error:Cannot parse #include

and if i remove the "#include"

its say Error:

If _Singleton("Nullsoft Winamp 5.5.7.2830",1) = 0 Then
If ^ ERROR

Error: Unknown function name.

what is the problem?

Edited by sahra
0

Share this post


Link to post
Share on other sites

Doesn't matter. gfhdfghdfh is good also. :)

thanks you but the "#include" is important? because its say Error :

#include
Error:Cannot parse #include

and if i remove the "#include"

its say Error:

If _Singleton("Nullsoft Winamp 5.5.7.2830",1) = 0 Then
If ^ ERROR

Error: Unknown function name.

what is the problem?

make it #Include <Misc.au3>

that should fix the problem

0

Share this post


Link to post
Share on other sites

Doesn't matter. gfhdfghdfh is good also. :)

thanks you but the "#include" is important? because its say Error :

#include
Error:Cannot parse #include

and if i remove the "#include"

its say Error:

If _Singleton("Nullsoft Winamp 5.5.7.2830",1) = 0 Then
If ^ ERROR

Error: Unknown function name.

what is the problem?

make it #Include <Misc.au3>

that should fix the problem

thanks you very match its fix the problem

thanks you to radix !!

0

Share this post


Link to post
Share on other sites

I am using AutoIT v3.3.4.0, and both scripts give errors?

0

Share this post


Link to post
Share on other sites

I am using AutoIT v3.3.4.0, and both scripts give errors?

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

AutoIt Version: 3.3.4.0

Author: myName

Ashampoo Burning Studio 9.20

Application site: http://www2.ashampoo.com/webcache/html/1/product_2_2210___USD.htm

Script Function:

Template AutoIt script.

#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_9_9.20_sm.exe"

; Serial number

$SN = "xxxxxx-xxxxxx-xxxxxx"

$PreviousInstallation = RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Ashampoo Burning Studio 9_is1", "InstallLocation")

If StringRight($PreviousInstallation, 1) = '\' Then

$PreviousInstallation = StringTrimRight($PreviousInstallation, 1)

EndIf

If FileExists($PreviousInstallation & "\burningstudio9.exe") Then

MsgBox(0x40010, @ScriptName, "Please uninstall previous version of Ashampoo Burning Studio before using this script", 4)

Exit

EndIf

; Save and disable the default internet browser (to prevent Ashampoo Burning Studio installer to open it at the end of installation)

$DefaultHttpBrowser = RegRead("HKCR\http\shell\open\command\", "")

$DefaultHttpsBrowser = RegRead("HKCR\https\shell\open\command\", "")

RegDelete("HKCR\http\shell\open\command\", "")

RegDelete("HKCR\https\shell\open\command\", "")

; Start checking

AdlibRegister("_Adlib")

; Run the installer

RunWait($Installer & " /sp- /verysilent /norestart")

Sleep(2000)

; Settings

RegWrite("HKLM\Software\Ashampoo\Ashampoo Burning Studio 9", "RegKey", "REG_SZ", $SN)

RegWrite("HKLM\Software\Ashampoo\Ashampoo Burning Studio 9", "InfoChannelsEnabled", "REG_DWORD", "0")

RegWrite("HKLM\Software\Ashampoo\Ashampoo Burning Studio 9\ash_inet", "Enabled", "REG_DWORD", "0")

; Restore the default internet browser

RegWrite("HKCR\http\shell\open\command\", "", "REG_SZ", $DefaultHttpBrowser)

RegWrite("HKCR\https\shell\open\command\", "", "REG_SZ", $DefaultHttpsBrowser)

; Delete page folder and Desktop icon

DirRemove(@AppDataCommonDir & "\page", 1)

FileDelete(@DesktopCommonDir & "\Go to WWW.THE-PAGE.COM.lnk")

; Stop checking

AdlibUnRegister("_Adlib")

Func _Adlib()

; Close MSN toolbar installation process

$PID = ProcessExists("toolbarsetup_SL1.0_ash_de-DE.exe")

If $PID Then

ProcessClose($PID)

EndIf

; Close Ashampoo Burning Studio process

$PID = ProcessExists("burningstudio9.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

this should work fine

and if there is any error

submit it in here and i will have a look

ABS.au3

ABS.au3

Edited by DaRk MaDnEsS
0

Share this post


Link to post
Share on other sites

Hi,

Thanks.

But now I get this when compiling:

error.png

Edited by Raoul90
0

Share this post


Link to post
Share on other sites

Hi,

Thanks.

But now I get this when compiling:

error.png

well there was a small thing while i copied the code

make this line

$PreviousInstallation = RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\
Ashampoo Burning Studio 9_is1", "InstallLocation")

like this

$PreviousInstallation = RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Ashampoo Burning Studio 9_is1", "InstallLocation")

after the Uninstall\Ashampoo

Edited by DaRk MaDnEsS
0

Share this post


Link to post
Share on other sites

I have changed the script to work with their latest installer for v9.21.

Here

Enjoy.

Edited by radix
0

Share this post


Link to post
Share on other sites

Thanks, works now! :)

Edited by Raoul90
0

Share this post


Link to post
Share on other sites

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

- no dekstop icon

- no myshampoo toolbar

- no internet explorer start after install

Thanks!

0

Share this post


Link to post
Share on other sites

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

Edited by vkcelik
0

Share this post


Link to post
Share on other sites

Vkcelik,

I'm more or less the same as it concerns AutoIt, was looking at the task of doing it myself but I just stumbled upon your post.

Tested on Vista 32 and working. I got a warning about the gadget installation (security risk, file from Internet) but that's on my side.

The script does the job and all is well, search is not changed, IE doesn't launch and the gadget does not install.

I do find that Ashampoo has become a little bloated with the toolbar, ebay stuff and info channel. Lot of unneeded stuff, too bad.

I'll check on x64 OS soon, but it should work OK.

Cheers!

0

Share this post


Link to post
Share on other sites

Well after looking at the AutoIt script I was still not satisfied.

Some processes have to be killed afterwards and I also got problems with the sidebar popup on Vista.

After a lot of reading I decided to take apart the setup and rebuild it without the junk.

The result is a new Ashampoo Burning Studio 10 installer that:

1. Does not install the MyAshampoo toolbar

2. Does not autostart IE (or any browser)

3. Does not change default search scope

4. Does not install gadgets

5. Does not autostart ASBS after install.

Shortcuts will be created.

The offending components have been completely removed from the package AND from the script.

Default silent switches can be used for Inno (/VERYSILENT /SP-) and it will be completely silent.

Last but not least, key is of course not included, if you have your legit key or reg file you can add it with the help of the regfiles from Vkcelik.

You can even compress them together as a 7z SFX silent installer so there should be no problem there.

Legit key is not required for install, the program will function in trial mode for some days and you can add the key later.

I'll release this on MSFN because I've learned so much here and now it's time to give something back to the community.

Please test it and leave your comments.

Cheers!

EDIT: Read on for updated version.

Edited by Escorpiom
0

Share this post


Link to post
Share on other sites

@Escorpiom

Thanks for your contribution, will give it a try and see how it goes.

0

Share this post


Link to post
Share on other sites

thx, works perfect

would be great if you can update to 10.0.7

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.