Sonos

Informations

Creator Message
SKAL Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 1
Wine: System

Feedbacks

Description

Sonos is a system of HiFi wireless speakers and audio components designed for every space in your home. It unites your digital music collection in one app that you control from any device. Play what you want in every room - no skips, delays or drops.

Source code

#!/bin/bash
# Date : (2014-10-29 11-00)
# Last revision : (2014-10-29 11-00)
# Wine version used : wine-1.6.2
# Distribution used to test : Ubuntu 14.04.1 LTS
# Author : SKAL
# Last Ver : 1.01
# Changelog
# 2.00 implemented dowload part
# 1.02 Some minor changes, thank you Ronin DUSETTE
# 1.01 Set the virtual desktop AUTOMATICALY, started use translation system
#      left the POL_System_TmpCreate part for a future dowload feature
# 1.0 first release
#
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"


# Variables

TITLE="Sonos"
PREFIX="SonosPlayer"
BIN="SonosDesktopController511.exe"
#WINEVERSION=""
 
POL_SetupWindow_Init
 
# enable debug
POL_Debug_Init
 
# presentation program
POL_SetupWindow_presentation "$TITLE" "Sonos Inc." "http://www.sonos.com" "SKAL" "$PREFIX"
 


 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate
POL_System_TmpCreate "$PREFIX"

# Virtual Disc configuration

POL_System_SetArch "x86"
Set_OS "winxp"

# Install dotnet40 
POL_Call POL_Install_dotnet40

# Presentation
POL_SetupWindow_message "$(eval_gettext 'At the end of the installation DO NOT EXECUTE THE PROGRAMM AUTOMATICALY!!')" "Sonos installation"

# POL_SetupWindow_message "$(eval_gettext 'You can download the Sonos windows client at the following link \n\nhttp://www.sonos.com/redir/controller_software_pc \n\nAt the end of the installation DO NOT EXECUTE THE PROGRAMM AUTOMATICALY!!')" "Sonos installation"

# Choose Installation type
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "$BIN"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
    POL_Wine "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    cd "$POL_System_TmpDir"
    # Download the file
    POL_Download "http://www.sonos.com/redir/controller_software_pc"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
    POL_Wine "$BIN"
fi

# Set display 
Set_Desktop On 1024 768 
POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.\nIf you do not like the resolution used, you can change it in the “Graphics” tab of the wine configuration panel after the installation')" "Last Warning"
 
POL_System_TmpDelete

  
POL_Shortcut "Sonos.exe" "$TITLE"
  
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
SKAL Sunday 2 November 2014 at 9:32
SKAL Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Fixed the download part. Now everything works!

Differences

@@ -4,15 +4,16 @@
 # Wine version used : wine-1.6.2
 # Distribution used to test : Ubuntu 14.04.1 LTS
 # Author : SKAL
-# Last Ver : 1.01
+# Last Ver : 2.01
 # Changelog
+# 2.01 Now also the download part works + minor changes
 # 2.00 implemented dowload part
 # 1.02 Some minor changes, thank you Ronin DUSETTE
 # 1.01 Set the virtual desktop AUTOMATICALY, started use translation system
 #      left the POL_System_TmpCreate part for a future dowload feature
 # 1.0 first release
 #
- 
+
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
@@ -22,19 +23,19 @@
 TITLE="Sonos"
 PREFIX="SonosPlayer"
 BIN="SonosDesktopController511.exe"
-#WINEVERSION=""
- 
+WINEVERSION="1.6.2"
+
 POL_SetupWindow_Init
- 
+
 # enable debug
 POL_Debug_Init
- 
+
 # presentation program
 POL_SetupWindow_presentation "$TITLE" "Sonos Inc." "http://www.sonos.com" "SKAL" "$PREFIX"
- 
 
 
- 
+
+
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate
 POL_System_TmpCreate "$PREFIX"
@@ -44,7 +45,7 @@
 POL_System_SetArch "x86"
 Set_OS "winxp"
 
-# Install dotnet40 
+# Install dotnet40
 POL_Call POL_Install_dotnet40
 
 # Presentation
@@ -63,19 +64,19 @@
 then
     cd "$POL_System_TmpDir"
     # Download the file
-    POL_Download "http://www.sonos.com/redir/controller_software_pc"
+    POL_Download "http://update.sonos.com/software/pc/dcr/$BIN"
     POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
     POL_Wine "$BIN"
 fi
 
-# Set display 
-Set_Desktop On 1024 768 
+# Set display
+Set_Desktop On 1024 768
 POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.\nIf you do not like the resolution used, you can change it in the “Graphics” tab of the wine configuration panel after the installation')" "Last Warning"
- 
+
 POL_System_TmpDelete
 
-  
+ 
 POL_Shortcut "Sonos.exe" "$TITLE"
-  
+ 
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-10-29 11-00)
# Last revision : (2014-10-29 11-00)
# Wine version used : wine-1.6.2
# Distribution used to test : Ubuntu 14.04.1 LTS
# Author : SKAL
# Last Ver : 2.01
# Changelog
# 2.01 Now also the download part works + minor changes
# 2.00 implemented dowload part
# 1.02 Some minor changes, thank you Ronin DUSETTE
# 1.01 Set the virtual desktop AUTOMATICALY, started use translation system
#      left the POL_System_TmpCreate part for a future dowload feature
# 1.0 first release
#

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"


# Variables

TITLE="Sonos"
PREFIX="SonosPlayer"
BIN="SonosDesktopController511.exe"
WINEVERSION="1.6.2"

POL_SetupWindow_Init

# enable debug
POL_Debug_Init

# presentation program
POL_SetupWindow_presentation "$TITLE" "Sonos Inc." "http://www.sonos.com" "SKAL" "$PREFIX"




POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate
POL_System_TmpCreate "$PREFIX"

# Virtual Disc configuration

POL_System_SetArch "x86"
Set_OS "winxp"

# Install dotnet40
POL_Call POL_Install_dotnet40

# Presentation
POL_SetupWindow_message "$(eval_gettext 'At the end of the installation DO NOT EXECUTE THE PROGRAMM AUTOMATICALY!!')" "Sonos installation"

# POL_SetupWindow_message "$(eval_gettext 'You can download the Sonos windows client at the following link \n\nhttp://www.sonos.com/redir/controller_software_pc \n\nAt the end of the installation DO NOT EXECUTE THE PROGRAMM AUTOMATICALY!!')" "Sonos installation"

# Choose Installation type
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "$BIN"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
    POL_Wine "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    cd "$POL_System_TmpDir"
    # Download the file
    POL_Download "http://update.sonos.com/software/pc/dcr/$BIN"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
    POL_Wine "$BIN"
fi

# Set display
Set_Desktop On 1024 768
POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.\nIf you do not like the resolution used, you can change it in the “Graphics” tab of the wine configuration panel after the installation')" "Last Warning"

POL_System_TmpDelete

 
POL_Shortcut "Sonos.exe" "$TITLE"
 
POL_SetupWindow_Close
exit

Replies

Sunday 2 November 2014 at 9:54
- POL_Wine_PrefixCreate "$WINEVERSION" for use a wine version

- I told you to set an other resolution (why use a full screen resolution in windows mode ?)

- You can replace "elif [......];then" by "else" (you have only 2 choices)
Anonymous
Sunday 2 November 2014 at 14:12
Sorry Tutui, I did not understood your post.
1) why it is mandatory do set the wine version? If you want I can set it but I don't think is needed
2) 1024x768 is the best resolution in order to see all the program interface, windows mode is need or the program does not work
3) ok, I will fix it as soon I will have your answares on point 1 and 2 in order to release only one time :)
Sunday 2 November 2014 at 14:24
- Define WINEVERSION but don't use it. For use a wine version, you must use : POL_Wine_PrefixCreate "$WINEVERSION" (instead of POL_Wine_PrefixCreate)
- yes but these is too big for 720p screen (it's limit for my screen too). Please, ask the resolution to the user and use he's choice.
And sorry for my english ^^"
Sunday 2 November 2014 at 14:30
And if a wine version work, set it is better than use system wine version. System change with update so a program can work + update => not working
Sunday 2 November 2014 at 16:22
From my earlier post when I was trying to help. lol.: "Set_OS should just be "winxp", POL_Wine does not need "start" and "/unix". It should just be POL_Wine "$APP_ANSWER". You also need to declare a "WINEVERSION", like this: WINEVERSION=1.7.20-PhotoshopBrushes. It should be near the top. You should list the working version of Wine in that variable at the top, before POL_SetupWindow_init."
Anonymous
Monday 22 December 2014 at 10:10
Hi all,
Anonymous
Monday 22 December 2014 at 10:11
I was trying tu update the script, but I'm having some problems with dotnet40.
It seems that the program does not recognize the DN4 installation. :( Could someone help me?
thanks
SKAL Saturday 1 November 2014 at 10:26
SKAL Anonymous

Information

This update has been approved by the team.

Message

I was trying to implement also the autodownload part in the script, but the POL_Download command seems not to work. Could you help me to understand why?

thanks to all

Differences

@@ -0,0 +1,81 @@
+#!/bin/bash
+# Date : (2014-10-29 11-00)
+# Last revision : (2014-10-29 11-00)
+# Wine version used : wine-1.6.2
+# Distribution used to test : Ubuntu 14.04.1 LTS
+# Author : SKAL
+# Last Ver : 1.01
+# Changelog
+# 2.00 implemented dowload part
+# 1.02 Some minor changes, thank you Ronin DUSETTE
+# 1.01 Set the virtual desktop AUTOMATICALY, started use translation system
+#      left the POL_System_TmpCreate part for a future dowload feature
+# 1.0 first release
+#
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+
+# Variables
+
+TITLE="Sonos"
+PREFIX="SonosPlayer"
+BIN="SonosDesktopController511.exe"
+#WINEVERSION=""
+ 
+POL_SetupWindow_Init
+ 
+# enable debug
+POL_Debug_Init
+ 
+# presentation program
+POL_SetupWindow_presentation "$TITLE" "Sonos Inc." "http://www.sonos.com" "SKAL" "$PREFIX"
+ 
+
+
+ 
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate
+POL_System_TmpCreate "$PREFIX"
+
+# Virtual Disc configuration
+
+POL_System_SetArch "x86"
+Set_OS "winxp"
+
+# Install dotnet40 
+POL_Call POL_Install_dotnet40
+
+# Presentation
+POL_SetupWindow_message "$(eval_gettext 'At the end of the installation DO NOT EXECUTE THE PROGRAMM AUTOMATICALY!!')" "Sonos installation"
+
+# POL_SetupWindow_message "$(eval_gettext 'You can download the Sonos windows client at the following link \n\nhttp://www.sonos.com/redir/controller_software_pc \n\nAt the end of the installation DO NOT EXECUTE THE PROGRAMM AUTOMATICALY!!')" "Sonos installation"
+
+# Choose Installation type
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "$BIN"
+    POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
+    POL_Wine "$APP_ANSWER"
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+    cd "$POL_System_TmpDir"
+    # Download the file
+    POL_Download "http://www.sonos.com/redir/controller_software_pc"
+    POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
+    POL_Wine "$BIN"
+fi
+
+# Set display 
+Set_Desktop On 1024 768 
+POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.\nIf you do not like the resolution used, you can change it in the “Graphics” tab of the wine configuration panel after the installation')" "Last Warning"
+ 
+POL_System_TmpDelete
+
+  
+POL_Shortcut "Sonos.exe" "$TITLE"
+  
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-10-29 11-00)
# Last revision : (2014-10-29 11-00)
# Wine version used : wine-1.6.2
# Distribution used to test : Ubuntu 14.04.1 LTS
# Author : SKAL
# Last Ver : 1.01
# Changelog
# 2.00 implemented dowload part
# 1.02 Some minor changes, thank you Ronin DUSETTE
# 1.01 Set the virtual desktop AUTOMATICALY, started use translation system
#      left the POL_System_TmpCreate part for a future dowload feature
# 1.0 first release
#
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"


# Variables

TITLE="Sonos"
PREFIX="SonosPlayer"
BIN="SonosDesktopController511.exe"
#WINEVERSION=""
 
POL_SetupWindow_Init
 
# enable debug
POL_Debug_Init
 
# presentation program
POL_SetupWindow_presentation "$TITLE" "Sonos Inc." "http://www.sonos.com" "SKAL" "$PREFIX"
 


 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate
POL_System_TmpCreate "$PREFIX"

# Virtual Disc configuration

POL_System_SetArch "x86"
Set_OS "winxp"

# Install dotnet40 
POL_Call POL_Install_dotnet40

# Presentation
POL_SetupWindow_message "$(eval_gettext 'At the end of the installation DO NOT EXECUTE THE PROGRAMM AUTOMATICALY!!')" "Sonos installation"

# POL_SetupWindow_message "$(eval_gettext 'You can download the Sonos windows client at the following link \n\nhttp://www.sonos.com/redir/controller_software_pc \n\nAt the end of the installation DO NOT EXECUTE THE PROGRAMM AUTOMATICALY!!')" "Sonos installation"

# Choose Installation type
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "$BIN"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
    POL_Wine "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    cd "$POL_System_TmpDir"
    # Download the file
    POL_Download "http://www.sonos.com/redir/controller_software_pc"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
    POL_Wine "$BIN"
fi

# Set display 
Set_Desktop On 1024 768 
POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.\nIf you do not like the resolution used, you can change it in the “Graphics” tab of the wine configuration panel after the installation')" "Last Warning"
 
POL_System_TmpDelete

  
POL_Shortcut "Sonos.exe" "$TITLE"
  
POL_SetupWindow_Close
exit

Replies

Saturday 1 November 2014 at 12:49
why set the resolution on 1024 768 ? If user don't have a screen resolution with 768p or upper, he can't see correctly the program. And the 4/3 screen too
Anonymous
Saturday 1 November 2014 at 13:28
it was just a starting resolution, the one that gives the chance to see all the main screen. Not many users now are under 1024, but if you think that lower the resolution is petter you are welcome to downgrade it
Anonymous
Saturday 1 November 2014 at 13:45
BTW I've tried once again to install it viaweb, but it still not working :( @tutul, could you help me to fix this part please?
Saturday 1 November 2014 at 13:55
for resolution, the screen should work for all screen (also 4/3). You can make a selection windows and ask the resolution for user. Dosn't work without virtual screen ???
Viaweb ? Download auto ?
Anonymous
Saturday 1 November 2014 at 14:15
Yes. It does not work without virtual screen (at least not for me)
Anonymous
Saturday 1 November 2014 at 14:16
And yes, the download part does not work on my system. Maybe beacause the download link is differend from the downloaded file.
Maybe you could test on you pc, or tell me how to debug it.
Saturday 1 November 2014 at 14:32
1- You can set these script compatible Linux (but not OSX, a native version exist)
2- Please found and change the wineversion with a working one (system change with update and may not working in the future)
3- the url is not a file url but redirect the download. Not working with POL. You muste find the url of the installer
=> http://update.sonos.com/software/pc/dcr/SonosDesktopController511.exe
SKAL Wednesday 29 October 2014 at 18:49
SKAL Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Here is a second version with some improvement

Differences

@@ -0,0 +1,55 @@
+#!/bin/bash
+# Date : (2014-10-29 11-00)
+# Last revision : (2014-10-29 11-00)
+# Wine version used : wine-1.6.2
+# Distribution used to test : Ubuntu 14.04.1 LTS
+# Author : SKAL
+# Last Ver : 1.01
+# Changelog
+# 1.01 Set the virtual desktop AUTOMATICALY, started use translation system
+#      left the POL_System_TmpCreate part for a future dowload feature
+# 1.0 first release
+# 
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="Sonos"
+PREFIX="SonosPlayer"
+
+
+POL_SetupWindow_Init
+
+# enable debug 
+POL_Debug_Init
+
+# presentation program
+POL_SetupWindow_presentation "$TITLE" "$TITLE" "http://www.sonos.com" "SKAL" "$PREFIX"
+
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate
+ 
+POL_System_TmpCreate "$PREFIX"
+
+
+POL_Call POL_Install_dotnet40
+Set_OS "winxp" "sp3"
+
+POL_SetupWindow_message "$(eval_gettext 'You can download the Sonos windows client at the following link \n\nhttp://www.sonos.com/redir/controller_software_pc \n\nAt the end of the installation DO NOT EXECUTE THE PROGRAMM AUTOMATICALY!!')" "Sonos installation"
+
+POL_SetupWindow_InstallMethod "LOCAL"
+ 
+POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
+POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
+POL_Wine start /unix "$APP_ANSWER"
+
+POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.\nIf you do not like the resolution used, you can change it in the “Graphics” tab of the wine configuration panel after the installation')" "Last Warning"
+
+POL_System_TmpDelete
+Set_Desktop On 1024 768
+ 
+POL_Shortcut "Sonos.exe" "$TITLE"
+ 
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-10-29 11-00)
# Last revision : (2014-10-29 11-00)
# Wine version used : wine-1.6.2
# Distribution used to test : Ubuntu 14.04.1 LTS
# Author : SKAL
# Last Ver : 1.01
# Changelog
# 1.01 Set the virtual desktop AUTOMATICALY, started use translation system
#      left the POL_System_TmpCreate part for a future dowload feature
# 1.0 first release
# 

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Sonos"
PREFIX="SonosPlayer"


POL_SetupWindow_Init

# enable debug 
POL_Debug_Init

# presentation program
POL_SetupWindow_presentation "$TITLE" "$TITLE" "http://www.sonos.com" "SKAL" "$PREFIX"


POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate
 
POL_System_TmpCreate "$PREFIX"


POL_Call POL_Install_dotnet40
Set_OS "winxp" "sp3"

POL_SetupWindow_message "$(eval_gettext 'You can download the Sonos windows client at the following link \n\nhttp://www.sonos.com/redir/controller_software_pc \n\nAt the end of the installation DO NOT EXECUTE THE PROGRAMM AUTOMATICALY!!')" "Sonos installation"

POL_SetupWindow_InstallMethod "LOCAL"
 
POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
POL_Wine start /unix "$APP_ANSWER"

POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.\nIf you do not like the resolution used, you can change it in the “Graphics” tab of the wine configuration panel after the installation')" "Last Warning"

POL_System_TmpDelete
Set_Desktop On 1024 768
 
POL_Shortcut "Sonos.exe" "$TITLE"
 
POL_SetupWindow_Close
exit

Replies

Wednesday 29 October 2014 at 20:06
Set_OS should just be "winxp", POL_Wine does not need "start" and "/unix". It should just be POL_Wine "$APP_ANSWER". You also need to declare a "WINEVERSION", like this: WINEVERSION="1.7.20-PhotoshopBrushes. It should be near the top. You should list the working version of Wine in that variable at the top, before POL_SetupWindow_init.
SKAL Wednesday 29 October 2014 at 13:02
SKAL Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Was missing the install script :P

Differences

@@ -0,0 +1,53 @@
+#!/bin/bash
+# Date : (2014-10-29 11-00)
+# Last revision : (2014-10-29 11-00)
+# Wine version used : wine-1.6.2
+# Distribution used to test : Ubuntu 14.04.1 LTS
+# Author : SKAL
+# Ver : 1.0
+# Changelog
+# 1.0 first release
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="Sonos"
+PREFIX="SonosPlayer"
+
+
+POL_SetupWindow_Init
+
+# enable debug 
+# POL_Debug_Init
+
+# presentation program
+POL_SetupWindow_presentation "$TITLE" "$TITLE" "http://www.sonos.com" "SKAL" "$PREFIX"
+
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate
+ 
+POL_System_TmpCreate "$PREFIX"
+
+
+POL_Call POL_Install_dotnet40
+Set_OS "winxp" "sp3"
+
+POL_SetupWindow_message "You can download the Sonos windows client at the following link \n\nhttp://www.sonos.com/redir/controller_software_pc \n\nAt the end of the installation DO NOT EXECUTE THE PROGRAMM AUTOMATICALY!!" "Sonos installation"
+
+POL_SetupWindow_InstallMethod "LOCAL"
+ 
+POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
+POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
+POL_Wine start /unix "$APP_ANSWER"
+
+POL_SetupWindow_wait "Message" "Title"
+
+POL_SetupWindow_message "To make the program work you have to emulate a virtual desktop. This can be done on the “Graphics” tab in the wine configuration panel after the installation " "Last Warning"
+
+POL_System_TmpDelete
+ 
+POL_Shortcut "Sonos.exe" "$TITLE"
+ 
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-10-29 11-00)
# Last revision : (2014-10-29 11-00)
# Wine version used : wine-1.6.2
# Distribution used to test : Ubuntu 14.04.1 LTS
# Author : SKAL
# Ver : 1.0
# Changelog
# 1.0 first release

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Sonos"
PREFIX="SonosPlayer"


POL_SetupWindow_Init

# enable debug 
# POL_Debug_Init

# presentation program
POL_SetupWindow_presentation "$TITLE" "$TITLE" "http://www.sonos.com" "SKAL" "$PREFIX"


POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate
 
POL_System_TmpCreate "$PREFIX"


POL_Call POL_Install_dotnet40
Set_OS "winxp" "sp3"

POL_SetupWindow_message "You can download the Sonos windows client at the following link \n\nhttp://www.sonos.com/redir/controller_software_pc \n\nAt the end of the installation DO NOT EXECUTE THE PROGRAMM AUTOMATICALY!!" "Sonos installation"

POL_SetupWindow_InstallMethod "LOCAL"
 
POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
POL_Wine start /unix "$APP_ANSWER"

POL_SetupWindow_wait "Message" "Title"

POL_SetupWindow_message "To make the program work you have to emulate a virtual desktop. This can be done on the “Graphics” tab in the wine configuration panel after the installation " "Last Warning"

POL_System_TmpDelete
 
POL_Shortcut "Sonos.exe" "$TITLE"
 
POL_SetupWindow_Close
exit

Replies

Wednesday 29 October 2014 at 13:34
Please use the translation système (goto http://www.playonlinux.com/en/dev-documentation-10.html). Why do you create Tmp ? You don't use it ! Why don't enable POL_Debug ? The script must download the installer and/or propose a local installation (check other script). For the virtual desktop, you can define it in the script (check the documentation). I can't validate your script until you corrected it, sorry
Anonymous
Wednesday 29 October 2014 at 18:13
Hi,
Anonymous
Wednesday 29 October 2014 at 18:20
Don't blame me. It is my first attempt to create a script for POL. So maybe I did some mistake. If you have some suggestions, I will be glad to make it better.
About the download, I have a dowload link, but it bring to download a file with a different name so I don't know how to manage the different md5sum test.
About the debug, I thought it is useful only for debug porpoise, not always. Ok. il will enable it.
About the Virtual Desktop, I found just now the way how to do it. Later I will send a new version of the scritp. Should I post a diff file or just the new version and your platform makes the diffs?
Wednesday 29 October 2014 at 18:24
MD5 sum is not an obligation but recommended. And these command isn't usefull (why use a selection of install methode if you make a script with only one ?). But, I recommand to make LOCAL and DOWNLOAD (DOWNLOAD with POL_Download and LOCAL as for now)
Wednesday 29 October 2014 at 18:25
@SKAL - No need to get defensive. You can look at other scripts (like LoL and WoT) and things like that, so that you can see how some other scripts do it. Really, it is just positional arguments for the MD5. Also, for sure use the POL tmp function in the script (check the scripting docs), as it will automatically create the tmp folder to work in without doing it manually. Hope this helps.
Anonymous
Wednesday 29 October 2014 at 18:54
thank you @Tutul @Ronin DUSETTE for you answers. This is my first attempt to create a POL script. I released a second version with some improvements, based on your suggestions and I hope tomorrow to have some time to send you a 3rd release with the download part too.
Wednesday 29 October 2014 at 20:07
It just takes time to learn it. No problem. lol.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com