home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 September
/
PCWorld_2006-09_cd.bin
/
audio-video
/
sonique
/
s2beta_103_install.exe
/
install_gui_mml
< prev
next >
Wrap
Text File
|
2004-03-02
|
23KB
|
588 lines
7<?mml version="0.6" ?>
<mml>
<interface>
<fontstyle name="title" size="24" face="Tahoma" style="bold" />
<fontstyle name="edit" size="16" face="Impact" />
<fontstyle name="q" size="16" face="Tahoma" />
<fontstyle name="checkbox_font" size="12" face="Lucida Console" />
<!--
row0long 39
row1along 59/63
row2along 81/85
row3along 103/106
row3along 125/128
-->
<rect name="screen">5,5,395,395</rect>
<rect name="center" > 16,59,389,109 </rect>
<rect name="row0long" > 16,39,389,59 </rect>
<rect name="row1along" > 16,59,389,88 </rect>
<rect name="row1a" > 16,63,30,79 </rect>
<rect name="row1blong" > 36,59,389,81 </rect>
<rect name="row1b" > 36,59,150,81 </rect>
<rect name="row1c" > 156,63,170,79 </rect>
<rect name="row1d" > 176,59,240,81 </rect>
<rect name="row1e" > 246,63,310,79 </rect>
<rect name="row1f" > 316,59,389,81 </rect>
<rect name="row2along" > 16,81,389,109 </rect>
<rect name="row2a" > 16,85,30,99 </rect>
<rect name="row2blong" > 36,81,389,101 </rect>
<rect name="row2b" > 36,81,150,101 </rect>
<rect name="row2c" > 156,85,170,99 </rect>
<rect name="row2d" > 176,81,240,101 </rect>
<rect name="row3a" > 16,106,30,119 </rect>
<rect name="row3blong" > 36,103,389,123 </rect>
<rect name="row3b" > 36,103,150,123 </rect>
<rect name="row3c" > 156,106,170,119 </rect>
<rect name="row3d" > 176,103,240,123 </rect>
<rect name="row4a" > 16,128,29,141 </rect>
<rect name="row4blong" > 36,125,389,145 </rect>
<rect name="row4b" > 36,125,150,145 </rect>
<rect name="row4c" > 156,128,170,141 </rect>
<rect name="row4d" > 176,125,240,144 </rect>
<rect name="row5a" > 225,63,240,79 </rect>
<rect name="row5b" > 246,59,360,81 </rect>
<rect name="row5c" > 225,83,240,110</rect>
<rect name="row5d" > 246,80,400,110 </rect>
<window name="install" offset="200,200,600,500" alignment=".5,.5,.5,.5" hitstyle="drag">
<script name="OnInit">
screen_ctr = 9;
screen_pos = 0;
do_install = 7;
screens = {screen0,screen1,screen2,screen3,screen4,screen5,screen6,screen7,finalscreen};
screen0.Show();
</script>
<color name="dg" >0xFF015826</color>
<color name="lg" >0xFF598527</color>
<color name="do" >0xFFD55000</color>
<imagestyle name="background" >
<color_fill color = "dg" offset = "0,0,0,30" alignment = "0,0,1,0" />
<color_fill color = "do" offset="0,30,0,-50" alignment="0,0,1,1" />
<color_fill color = "dg" offset="0,-50,0,0" alignment="0,1,1,1" />
<text offset="10,0,0,0" alignment="0,0,1,1" color="0xFFFFFFFF" font_style="title">Sonique2 Beta</text>
</imagestyle>
<?macrodef textbutton
<window name="$(name)" type="button" offset="$(loc) @ 0,0,400,300" alignment="$(alignment)" transparent="true" hitstyle="active" hidden="$(hidden)" >
<imagestyle name="state0">
<color_rect
thickness="1.5"
cornerradius="6"
color="0xFFFFFFFF"
blendmode="PS_NORMAL"
opacity="0.75"
/>
<color_rect thickness="1.5" cornerradius="6" color="0xFFFFFFFF" blendmode="PS_NORMAL" state="hit" offset="1,1,-1,-1" alignment="0,0,1,1" />
<text font_style="edit" color="#FFFFFF" justification="h_center|v_center" state="normal" opacity="0.75" >$(name)</text>
<text font_style="edit" color="#FFFFFF" justification="h_center|v_center" state="hit" >$(name)</text>
</imagestyle>
?>
<?macrodef bkgrnd
<imagestyle name="background$(name)" >
<color_fill color="dg" />
<color_rect color="lg" thickness="3" />
</imagestyle>
?>
<?macrodef rndbtn
<window name="$(name)" type="button" offset="install.psd|$(name) @ install.psd" alignment="1,0,1,0" hitstyle="active" transparent="true" >
<imagestyle name="state0" >
<raster source="install.psd|$(name)"
blendmode="PS_NORMAL"
opacity="0.75"
/>
<raster source="install.psd|$(name)"
blendmode="PS_NORMAL"
state="HIT"
opacity="1.0"
/>
</imagestyle>
?>
<?macrodef checkbox
<window name="$(name)" type="button" offset="$(offset)" alignment="$(alignment)" transparent="true" hitstyle="active" >
<property hover="true" />
<imagestyle name="state0">
<raster source="install.psd|unchecked"
blendmode="PS_NORMAL"
/>
</imagestyle>
<imagestyle name="state1">
<raster source="install.psd|checked"
blendmode="PS_NORMAL"
/>
</imagestyle>
<script name="OnInit">
$(name).SetToggle(true);
$(name).SetButtonState($(state));
</script>
</window>
?>
<?macrodef checkbox_label
<window name="$(name)" type="textdisplay" offset="$(offset)" alignment="$(alignment)" transparent="true" >
<property font_color="0xFFFFFFFF" font_style="q" text="$(description)"/>
</window>
?>
<!-- minimize button -->
<?macroins rndbtn name="minimize" ?>
<script name="OnClick" > parent.MinimizeWindow(1); </script>
</window>
<!-- close button -->
<?macroins rndbtn name="close" ?>
<script name="OnClick" > parent.DestroyWindow(); </script>
</window>
<!-- about window -->
<window name="screen0" type="textdisplay" offset="center" alignment="0,0,0,0" transparent="true" hidden="true">
<property
text="You are about to install a pre-release version of Sonique2. Install at your own risk."
justification="h_center|v_center"
font_style="q" font_color="0xFFFFFFFF"
/>
</window>
<window name="screen1" type="textdisplay" offset="center" alignment="-1,0,-1,0" transparent="true">
<property
text="Before continuing, please ensure that there are no instances of sonique2.exe running."
justification="h_center|v_center"
font_style="q" font_color="0xFFFFFFFF"
/>
</window>
<!-- destination window -->
<window name="screen2" offset="screen" alignment="-1,0,-1,0" transparent="true">
<window name="screen2_txt" type="textdisplay" offset="row1along" transparent="true">
<property text="where?" font_style="q" font_color="0xFFFFFFFF" />
</window>
<window name="edit" type="EditBox" offset="row2along" hitstyle="active" >
<property
font_style = "edit"
font_color = "0xFFFFFFFF"
cursor_on_color = "0xFFFFFFFF"
cursor_off_color = "lg"
selection_color = "lg"
text_offset_rect = "4,4,-4,-4"
text = "c:\Program Files\Sonique2"
/>
<?macroins bkgrnd name="_active" ?>
<?macroins bkgrnd name="_inactive" ?>
</window>
<?macroins textbutton name="Browse" loc="322,25,393,58" alignment="1,1,1,1" hidden="false" ?>
<script name="OnClick">
$dir=:installer.BrowseForFolder("Select install path...");
if ($dir) {edit.SetText($dir);}
</script>
</window>
</window>
<window name="screen3" offset="screen" alignment="-1,0,-1,0" transparent="true">
<window name="screen3_txt" type="textdisplay" offset="row1along" transparent="true" >
<property text="please specify your preferences:" font_style="q" font_color="0xFFFFFFFF" />
</window>
<!-- startmenu check box -->
<?macroins checkbox name="startmenu" offset="row2a" alignment="0,0,0,0" state="1" ?>
<?macroins checkbox_label name="startmenu_label" offset="row2blong" alignment="0,0,0,0" description="Create a program group in your Start menu" ?>
<!-- desktop icon check box -->
<?macroins checkbox name="desktop_icon" offset="row3a" alignment="0,0,0,0" state="1" ?>
<?macroins checkbox_label name="desktop_icon_label" offset="row3blong" alignment="0,0,0,0" description="Create a shortcut on your desktop" ?>
</window>
<window name="screen4" offset="screen" alignment="-1,0,-1,0" transparent="true">
<!-- plugins window -->
<window name="plugins" type="textdisplay" offset="row0long" transparent="true" >
<property text="optional plugins:" font_style="q" font_color="0xFFFFFFFF" />
</window>
<!-- cdraw check box -->
<?macroins checkbox name="cdraw" offset="row1a" alignment="0,0,0,0" state="1" ?>
<?macroins checkbox_label name="cdraw_label" offset="row1blong" alignment="0,0,0,0" description="CD Support" ?>
<!-- wmafilter check box -->
<?macroins checkbox name="wmafilter" offset="row2a" alignment="0,0,0,0" state="1" ?>
<!-- <window name="wmafilter" type="button" offset="row2a" alignment="0,0,0,0" transparent="true" hitstyle="active" >
<property hover="true" />
<imagestyle name="state0">
<raster source="install.psd|unchecked"
blendmode="PS_NORMAL"
/>
</imagestyle>
<imagestyle name="state1">
<raster source="install.psd|checked"
blendmode="PS_NORMAL"
/>
</imagestyle>
<script name="OnInit">
wmafilter.SetToggle(true);
wmafilter.SetButtonState(1);
</script>
</window>
-->
<?macroins checkbox_label name="wmafilter_label" offset="row2blong" alignment="0,0,0,0" description="WMA Filter (Windows Media 9)" ?>
<!-- aorta check box -->
<?macroins checkbox name="aorta" offset="row3a" alignment="0,0,0,0" state="1" ?>
<?macroins checkbox_label name="aorta_label" offset="row3blong" alignment="0,0,0,0" description="Aorta Visual" ?>
<!-- cosmicbelt check box -->
<?macroins checkbox name="cosmicbelt" offset="row4a" alignment="0,0,0,0" state="1" ?>
<?macroins checkbox_label name="cosmicbelt_label" offset="row4blong" alignment="0,0,0,0" description="CosmicBelt Visual" ?>
</window>
<window name="screen5" offset="screen" alignment="-1,0,-1,0" transparent="true">
<!-- file associations window -->
<window name="associations" type="textdisplay" offset="row0long" alignment="0,0,0,0" transparent="true" >
<property text="file associations:" font_style="q" font_color="0xFFFFFFFF" />
</window>
<!-- mp3 check box -->
<?macroins checkbox name="mp3" offset="row1a" alignment="0,0,0,0" state="1" ?>
<?macroins checkbox_label name="mp3_label" offset="row1b" alignment="0,0,0,0" description=".mp3" ?>
<!-- ogg check box -->
<?macroins checkbox name="ogg" offset="row2a" alignment="0,0,0,0" state="1" ?>
<?macroins checkbox_label name="ogg_label" offset="row2b" alignment="0,0,0,0" description=".ogg" ?>
<!-- cda check box -->
<?macroins checkbox name="cda" offset="row3a" alignment="0,0,0,0" state="1" ?>
<?macroins checkbox_label name="cda_label" offset="row3b" alignment="0,0,0,0" description=".cda" ?>
<!-- wma check box -->
<?macroins checkbox name="wma" offset="row4a" alignment="0,0,0,0" state="0" ?>
<?macroins checkbox_label name="wma_label" offset="row4b" alignment="0,0,0,0" description=".wma" ?>
<!-- xpl check box -->
<?macroins checkbox name="xpl" offset="row1c" alignment="0,0,0,0" state="1" ?>
<?macroins checkbox_label name="xpl_label" offset="row1d" alignment="0,0,0,0" description=".xpl" ?>
<!-- pls check box -->
<?macroins checkbox name="pls" offset="row2c" alignment="0,0,0,0" state="1" ?>
<?macroins checkbox_label name="pls_label" offset="row2d" alignment="0,0,0,0" description=".pls" ?>
<!-- m3u check box -->
<?macroins checkbox name="m3u" offset="row3c" alignment="0,0,0,0" state="1" ?>
<?macroins checkbox_label name="m3u_label" offset="row3d" alignment="0,0,0,0" description=".m3u" ?>
<!-- wav check box -->
<?macroins checkbox name="wav" offset="row4c" alignment="0,0,0,0" state="0" ?>
<?macroins checkbox_label name="wav_label" offset="row4d" alignment="0,0,0,0" description=".wav" ?>
<!-- CD AutoPlay check box -->
<?macroins checkbox name="cd_autoplay" offset="row5a" alignment="0,0,0,0" state="0" ?>
<?macroins checkbox_label name="cd_autoplay_label" offset="row5b" alignment="0,0,0,0" description="CD AutoPlay" ?>
<!-- Right Click check box -->
<?macroins checkbox name="right_click" offset="row5c" alignment="0,0,0,0" state="0" ?>
<?macroins checkbox_label name="rightclick_label" offset="row5d" alignment="0,0,0,0" description="Right Click" ?>
</window>
<window name="screen6" type="textdisplay" offset="center" alignment="-1,0,-1,0" transparent="true">
<property
text="Click 'next' to begin installation of Sonique2."
justification="h_center|v_center"
font_style="q" font_color="0xFFFFFFFF"
/>
</window>
<window name="screen7" offset="screen" alignment="-1,0,-1,0" transparent="true">
<!-- installing window -->
<window name="installing" type="textdisplay" offset="row1along" alignment="0,0,0,0" transparent="true">
<property text="installing files..." font_style="q" font_color="0xFFFFFFFF" />
</window>
<!-- progress window -->
<window name="progress" type="fillbar" offset="row2along" alignment="0,0,0,0" >
<Property orientation="left_to_right"
bar_align_rect ="0,0,1,1"
bar_offset_rect="3,3,-3,-3"
/>
<?macroins bkgrnd name="" ?>
<ImageStyle name="barfilled">
<color_fill color="0xFFFFFFFF" />
</ImageStyle>
</window>
</window>
<window name="finalscreen" offset="screen" alignment="-1,0,-1,0" transparent="true">
<window name="done" type="textdisplay" offset="row1along" alignment="0,0,0,0" transparent="true">
<property text="done! enjoy." font_style="q" font_color="0xFFFFFFFF" />
</window>
<!-- readme check box -->
<?macroins checkbox name="readme" offset="row2a" alignment="-1,0,-1,0" state="0" ?>
<?macroins checkbox_label name="readme_label" offset="row2blong" alignment="-1,0,-1,0" description="View ReadMe file" ?>
<!-- launch check box jmc021804 disable until we can resolve the issues with the launched S2
todo fix and reenable this.
<?macroins checkbox name="launch" offset="row3a" alignment="-1,0,-1,0" state="0" ?>
<?macroins checkbox_label name="launch_label" offset="row3blong" alignment="-1,0,-1,0" description="Launch Sonique2"?>
-->
<!-- reboot check box -->
<?macroins checkbox_label name="reboot_message" offset="row2along" alignment="-1,0,-1,0" description="Your system requires a reboot."?>
<?macroins checkbox name="reboot" offset="row3a" alignment="-1,0,-1,0" state="0" ?>
<?macroins checkbox_label name="reboot_label" offset="row3blong" alignment="-1,0,-1,0" description="restart my computer"?>
</window>
<!-- Back button -->
<?macroins textbutton name="back" loc="155,264,226,290" _loc="100,264,171,290" alignment="1,1,1,1" hidden="true" ?>
<script name="OnClick">
cur = screens[screen_pos];
cur.SetAlignment({-1,0,-1,0},0,300,"linear_accel" );
screen_pos--;
if (screen_pos gt 0) {
nextscreen = screens[screen_pos];
nextscreen.SetAlignment({0,0,0,0},0,300,"linear_decel" );
} else {
screen_pos = 0;
Hide();
screen0.SetAlignment({0,0,0,0},0,300,"linear_decel" );
}
</script>
</window>
<!-- next button (and main install logic) -->
<?macroins textbutton name="next" loc="236,264,307,290" _loc="181,264,252,290" alignment="1,1,1,1" hidden="false" ?>
<script name="OnClick">
cur = screens[screen_pos];
cur.SetAlignment({-1,0,-1,0},0,300,"linear_accel" );
if (screen_pos lt screen_ctr - 1) {
back.Show();
screen_pos++;
nextscreen = screens[screen_pos];
if (screen_pos == 4) {
parent.TestWma();
}
nextscreen.SetAlignment({0,0,0,0},0,300,"linear_decel" );
}
if (screen_pos == do_install) {
parent.DoInstall();
}
</script>
</window>
<?macroins textbutton name="finish" loc="322,264,393,290" alignment="1,1,1,1" hidden="true" ?>
<script name="OnClick">
Close();
</script>
</window>
<?macroins textbutton name="cancel" loc="322,264,393,290" alignment="1,1,1,1" hidden="false" ?>
<script name="OnClick" > parent.DestroyWindow(); </script>
</window>
<window name="error" type="textdisplay" offset="15,78,388,106" transparent="true" />
<script name="TestWma">
if (:installer.TestForWma() == "false") {
screen4.wmafilter.SetButtonState(0);
:installer.Popup("Warning","Windows Media support will not be installed. Cancel this install and install a newer version of Windows Media from Windows Update to obtain this functionality in Sonique2." );
}
</script>
<script name="DoInstall">
$path = screen2.edit.GetText();
if( :installer.SetInstallPath($path) )
{
cancel.SetAlignment({-1,0,-1,0},0,300,"linear_accel" );
next.SetAlignment({2,1,2,1},0,300,"linear_accel" );
back.SetAlignment({2,1,2,1},0,300,"linear_accel" );
back.OnClick="";
next.OnClick= "";
// select main package
:installer.SelectPackageForInstall("{A717B122-2492-47af-9D41-960DA77A0865}");
// select media formats
if ( screen5.mp3.GetButtonState() )
{
:installer.SelectSubPackageForInstall("mp3");
if (screen5.right_click.GetButtonState()) {
:installer.SelectSubPackageForInstall("rc_mp3");
}
}
if ( screen5.ogg.GetButtonState() )
{
:installer.SelectSubPackageForInstall("ogg");
if (screen5.right_click.GetButtonState()) {
:installer.SelectSubPackageForInstall("rc_ogg");
}
}
if ( screen5.cda.GetButtonState() )
{
:installer.SelectSubPackageForInstall("cda");
if (screen5.right_click.GetButtonState()) {
:installer.SelectSubPackageForInstall("rc_cda");
}
}
if ( screen5.wav.GetButtonState() )
{
:installer.SelectSubPackageForInstall("wav");
if (screen5.right_click.GetButtonState()) {
:installer.SelectSubPackageForInstall("rc_wav");
}
}
if ( screen5.cd_autoplay.GetButtonState() )
{
:installer.SelectSubPackageForInstall("cd_autoplay");
if (screen5.right_click.GetButtonState()) {
:installer.SelectSubPackageForInstall("rc_cda");
}
}
if ( screen5.wma.GetButtonState() )
{
:installer.SelectSubPackageForInstall("wma");
if (screen5.right_click.GetButtonState()) {
:installer.SelectSubPackageForInstall("rc_wma");
}
}
// select playlist formats
if ( screen5.xpl.GetButtonState() )
{
:installer.SelectSubPackageForInstall("xpl");
if (screen5.right_click.GetButtonState()) {
:installer.SelectSubPackageForInstall("rc_xpl");
}
}
if ( screen5.pls.GetButtonState() )
{
:installer.SelectSubPackageForInstall("pls");
if (screen5.right_click.GetButtonState()) {
:installer.SelectSubPackageForInstall("rc_pls");
}
}
if ( screen5.m3u.GetButtonState() )
{
:installer.SelectSubPackageForInstall("m3u");
if (screen5.right_click.GetButtonState()) {
:installer.SelectSubPackageForInstall("rc_m3u");
}
}
// select plugins
if ( screen4.cdraw.GetButtonState() ) { :installer.SelectSubPackageForInstall("cdraw"); }
if ( screen4.wmafilter.GetButtonState() ) {:installer.SelectSubPackageForInstall("wmafilter");}
if ( screen4.aorta.GetButtonState() ) { :installer.SelectSubPackageForInstall("aorta"); }
if ( screen4.cosmicbelt.GetButtonState() ) { :installer.SelectSubPackageForInstall("cosmicbelt"); }
// create shortcuts?
if ( screen3.desktop_icon.GetButtonState() ) { :installer.SelectSubPackageForInstall("desktop"); }
if ( screen3.startmenu.GetButtonState() ) { :installer.SelectSubPackageForInstall("start_menu"); }
// register install progress callbacks
:installer.Register("installprogress","screen7.progress.SetRealPos( $params[1] );", this );
:installer.Register("installdone", "Done();", this );
// shut down any existing sonique2's
// jmctodo this is ugly. make it pretty.
while ( :installer.IsWindowOpen("Sonique2 Window Class", "Sonique2") )
{
:installer.Popup("Warning","Sonique2 is running. Please shut it down and then click 'next.'" );
}
// install selected packages
:installer.InstallSelectedPackages();
}
else
{
:installer.Popup("oops", "Bad Install path.");
}
</script>
<script name="Done" >
:installer.UnRegister("installprogress",this );
:installer.UnRegister("installdone",this );
// move in options, checkboxes
if ( :installer.IsRebootNeeded() )
{
finalscreen.reboot.SetButtonState(1);
finalscreen.reboot_message.SetAlignment({0,0,0,0},0,300,"linear_decel" );
finalscreen.reboot.SetAlignment({0,0,0,0},0,300,"linear_decel" );
finalscreen.reboot_label.SetAlignment({0,0,0,0},0,300,"linear_decel" );
finalscreen.readme.SetButtonState(0);
//finalscreen.launch.SetButtonState(0);
}
else
{
finalscreen.readme.SetButtonState(1);
finalscreen.readme.SetAlignment({0,0,0,0},0,300,"linear_decel" );
finalscreen.readme_label.SetAlignment({0,0,0,0},0,300,"linear_decel" );
//finalscreen.launch.SetButtonState(1);
//finalscreen.launch.SetAlignment({0,0,0,0},0,300,"linear_decel" );
//finalscreen.launch_label.SetAlignment({0,0,0,0},0,300,"linear_decel" );
}
screen7.SetAlignment({-1,0,-1,0},0,300,"linear_accel" );
finalscreen.SetAlignment({0,0,0,0},0,300,"linear_decel" );
finish.Show();
//finish.SetAlignment({1,1,1,1},0,300,"linear_decel" );
</script>
<script name="Close">
install.SetSize({400,0},0,200,"linear_accel" );
install.SetLocation({0,300/4},0,200,"linear_accel",1 );
if (finalscreen.reboot.GetButtonState())
{
if (:installer.SystemReboot() == 0)
{
:installer.Popup("Warning","The restart failed, please manually restart windows before using Sonique2." );
}
} else { // we can do this if we don't reboot.
if (finalscreen.readme.GetButtonState())
{
:installer.OpenFile("$(instdir)/readme.html");
}
//if (finalscreen.launch.GetButtonState())
//{
// :installer.Execute("\"$(instdir)\\Sonique2.exe\"", "$(instdir)" );
// :installer.LaunchS2AtEnd("\"$(instdir)\\Sonique2.exe\"", "$(instdir)" );
//}
}
install.DestroyWindow(300);
</script>
</window>
</interface>
</mml>