Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installer #366

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions appleseed-Installer/ErrorDialog.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--//**********************************************************************/
OmidGhotbi marked this conversation as resolved.
Show resolved Hide resolved
// Copyright (c) 2021 appleseed.
// All rights reserved.
//
//**************************************************************************/
// DESCRIPTION: Contains the Dll Entry stuff
// AUTHOR: Omid Ghotbi (TAO) [email protected] www.3dfine.com
//***************************************************************************/-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI Id="ErrorDialogUI">

<Dialog Id="ErrorDialog" Width="555" Height="416" NoMinimize="yes" Title="appleseed : Setup Error">
OmidGhotbi marked this conversation as resolved.
Show resolved Hide resolved

<Control Id="background" Type="Bitmap" Text="bgImage" Width="555" Height="416" X="0" Y="0" TabSkip="no" FixedSize="yes"/>

<Control Id="ErrorText" Type="Text" X="290" Y="110" Width="350" Height="22" Transparent="yes" Text="{\TahomaHeader}Installation Faild" />
<Control Id="ErrorExplanationText" X="240" Y="150" Width="270" Height="100" NoWrap="no" RightAligned="no" Transparent="yes" Type="Text" Text="{\TahomaNormal}Installation has been faild, please contact our team or check for help on appleseed website https://appleseedhq.net" />
OmidGhotbi marked this conversation as resolved.
Show resolved Hide resolved

<Control Id="cancelButton" Type="PushButton" Text="[Close]" X="460" Y="380" Width="75" Height="18" Cancel="yes" FixedSize="yes" Bitmap="yes">
<Publish Event="EndDialog" Value="Exit" />
</Control>

</Dialog>

</UI>

<InstallUISequence>
<Show Dialog="ErrorDialog" OnExit="error" />
</InstallUISequence>
</Fragment>
</Wix>
OmidGhotbi marked this conversation as resolved.
Show resolved Hide resolved
33 changes: 33 additions & 0 deletions appleseed-Installer/FinishedDialog.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--//**********************************************************************/
// Copyright (c) 2021 appleseed.
// All rights reserved.
//
//**************************************************************************/
// DESCRIPTION: Contains the Dll Entry stuff
// AUTHOR: Omid Ghotbi (TAO) [email protected] www.3dfine.com
//***************************************************************************/-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI Id="FinishedDialogUI">

<Dialog Id="FinishedDialog" Width="555" Height="416" NoMinimize="yes" Title="appleseed : Setup Finished">
OmidGhotbi marked this conversation as resolved.
Show resolved Hide resolved

<Control Id="background" Type="Bitmap" Text="bgImage" Width="555" Height="416" X="0" Y="0" TabSkip="no" FixedSize="yes"/>

<Control Id="finishedText" Type="Text" X="230" Y="110" Width="300" Height="22" Transparent="yes" Text="{\TahomaHeader}Installation Finished Seccessfully" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo Seccessfully -> Successfully

What about this instead:

Installation completed successfully.

<Control Id="finishedExplanationText" X="230" Y="150" Width="310" Height="100" NoWrap="no" RightAligned="no" Transparent="yes" Type="Text" Text="{\TahomaNormal}Please close the setup application and restart 3dsmax, you will find the appleseed in renderer selection panel. For more information check AppleSeed website https://appleseedhq.net" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some details:

  • We spell appleseed in lower case
  • 3dsmax -> 3ds Max

Also, doesn't appleseed appear in the "Render Setup" dialog in 3ds Max?

What about this:

Please close the installation program and restart Autodesk® 3ds Max®. You can then enable appleseed from the Render Setup dialog.

Please visit https://appleseedhq.net/ for additional information and resources.


<Control Id="cancelButton" Type="PushButton" Text="[Close]" X="460" Y="380" Width="75" Height="18" Cancel="yes" FixedSize="yes" Bitmap="yes">
<Publish Event="EndDialog" Value="Exit" />
</Control>

</Dialog>

</UI>

<InstallUISequence>
<Show Dialog="FinishedDialog" OnExit="success" />
</InstallUISequence>
</Fragment>
</Wix>
54 changes: 54 additions & 0 deletions appleseed-Installer/LicenseAgreeDlg.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--//**********************************************************************/
// Copyright (c) 2021 appleseed.
// All rights reserved.
//
//**************************************************************************/
// DESCRIPTION: Contains the Dll Entry stuff
// AUTHOR: Omid Ghotbi (TAO) [email protected] www.3dfine.com
//***************************************************************************/-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI Id="LicenseAgreeDialogUI">

<DialogRef Id="VersionSelectDlg"/>

<Property Id="IAGREE" Secure="yes" />
<Property Id="License">Licensebtn</Property>
<Binary Id="Licensebtn" SourceFile="Resources/btAgree.png"/>
<Property Id="Back">backbtn</Property>
<Binary Id="backbtn" SourceFile="Resources/btBack.png"/>

<Dialog Id="LicenseAgreeDlg" Width="555" Height="416" Title="appleseed : License Agreement">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that for open source, MIT-licensed software, we should skip the any license agreement step (which would technically be a EULA), as discussed in this post: https://opensource.stackexchange.com/questions/2865/does-open-source-software-need-an-eula-to-protect-the-developer

I'd suggest to drop this step entirely (as well as the LICENSE.rtf file).


<Control Id="background" Type="Bitmap" Text="bgImage" Width="555" Height="416" X="0" Y="0" TabSkip="no" FixedSize="yes" />

<Control Id="explanationText" X="230" Y="100" Width="295" Height="100" NoWrap="no" RightAligned="no" Transparent="yes" Type="Text" Text="{\TahomaNormal}Before you can install this plugin (appleseed) you must agree the license terms and conditions. Click on the Cancel button to exit." />

<Control Id="AgreementText" Type="ScrollableText" X="226" Y="130" Width="300" Height="200" Sunken="yes" TabSkip="yes" >
<Text SourceFile="Resources\License.rtf" />
</Control>
<Control Id="AuthenticationType" Type="CheckBox" X="226" Y="338" Width="10" Height="10" CheckBoxValue="1" Property="IAGREE" Text="{}" FixedSize="yes" ></Control>
<Control Id="agreeText" X="242" Y="338" NoWrap="no" RightAligned="no" Transparent="yes" Type="Text" Width="250" Height="12" Text="{\TahomaNormal}I agree to the terms and conditions." />

<Control Id="LicenseButton" Type="PushButton" Text="[License]" X="375" Y="380" Width="75" Height="18" Bitmap="yes" FixedSize="yes">
<Condition Action="disable"><![CDATA[IAGREE <> "1"]]></Condition>
<Condition Action="enable"><![CDATA[IAGREE = "1"]]></Condition>
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>

<Control Id="cancelButton" Type="PushButton" Text="[Cancel]" X="460" Y="380" Width="75" Height="18" Cancel="yes" Bitmap="yes" FixedSize="yes">
<Publish Event="EndDialog" Value="Exit" />
</Control>

</Dialog>

</UI>

<InstallUISequence>
<Show Dialog="LicenseAgreeDlg" After="SetupDialog" />
</InstallUISequence>

</Fragment>

</Wix>
50 changes: 50 additions & 0 deletions appleseed-Installer/PathSelectDialog.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--//**********************************************************************/
// Copyright (c) 2021 appleseed.
// All rights reserved.
//
//**************************************************************************/
// DESCRIPTION: Contains the Dll Entry stuff
// AUTHOR: Omid Ghotbi (TAO) [email protected] www.3dfine.com
//***************************************************************************/-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI Id="PathSelectDialogUI">

<DialogRef Id="ProgressDialog"/>

<Property Id="Install">installbtn</Property>
<Binary Id="installbtn" SourceFile="Resources/btInstall.png"/>

<Dialog Id="PathSelectDialog" Width="555" Height="416" Title="appleseed : Path Selection">

<Control Id="background" Type="Bitmap" Text="bgImage" Width="555" Height="416" X="0" Y="0" TabSkip="no" />

<Control Id="explanationText" X="230" Y="100" Width="300" Height="100" NoWrap="no" RightAligned="no" Transparent="yes" Type="Text" Text="{\TahomaNormal}Setup should automatically find the path to 3dsmax, but if it did not you must point it to the root of 3dsmax folder. " />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3dsmax -> Autodesk® 3ds Max®

At least for the first mention; the second one can probably remain "3ds Max".


<Control Id='BrowseText' Type='Text' X='230' Y='140' Width='30' Height='12' Text="{\TahomaNormal}Browse:" TabSkip='no' Transparent='yes' NoWrap="no"/>
<Control Id='FolderCombo' Type='DirectoryCombo' X='265' Y='136' Width='265' Height='12' Property='INSTALLDIR' Text='MsiDirectoryCombo' TabSkip='no' Indirect='yes' Removable='yes' Fixed='yes' Remote='yes' RAMDisk='yes' Floppy='yes' />
<Control Id='FolderList' Type='DirectoryList' X='265' Y='160' Width='265' Height='150' Property='INSTALLDIR' Text='MsiDirectoryList' TabSkip='no' Sunken='yes' Indirect='yes' />
<Control Id='FolderText' Type='Text' X='230' Y='320' Width='30' Height='12' Text="{\TahomaNormal}Folder:" TabSkip='no' Transparent='yes' NoWrap="no"/>
<Control Id='FolderPathEdit' Type='PathEdit' X='265' Y='318' Width='265' Height='18' Property='INSTALLDIR' Text='MsiPathEdit' TabSkip='no' Sunken='yes' Indirect='yes' />

<Control Id="installButton" Type="PushButton" Text="[Install]" X="375" Y="380" Width="75" Height="18" Bitmap="yes" FixedSize="yes">
<Publish Event='SetTargetPath' Value='[INSTALLDIR]'><![CDATA[1]]></Publish>
<Publish Event='EndDialog' Value='Return'><![CDATA[1]]></Publish>
</Control>

<Control Id="cancelButton" Type="PushButton" Text="[Cancel]" X="460" Y="380" Width="75" Height="18" Cancel="yes" Bitmap="yes" FixedSize="yes">
<Publish Event="EndDialog" Value="Exit" />
</Control>

</Dialog>

</UI>

<InstallUISequence>
<Show Dialog="PathSelectDialog" After="VersionSelectDlg" />
</InstallUISequence>

</Fragment>

</Wix>
Loading