Skip to content

Commit

Permalink
Windows Installer Package
Browse files Browse the repository at this point in the history
To get the installer working, Ijad to restructure the projects a bit and
I also fixed a few minor issues on the way.
  • Loading branch information
c0pperdragon committed Apr 24, 2015
1 parent c4d09f9 commit 7c01d39
Show file tree
Hide file tree
Showing 20 changed files with 1,288 additions and 60 deletions.
5 changes: 5 additions & 0 deletions CompilerTest/CompilerTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -80,6 +82,9 @@
<Name>LMSAssembler</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
3 changes: 3 additions & 0 deletions CompilerTest/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
4 changes: 4 additions & 0 deletions Documentation/Documentation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<AssemblyName>Documentation</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -55,6 +57,7 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="Resources\Styles.txt" />
</ItemGroup>
<ItemGroup>
Expand All @@ -63,6 +66,7 @@
<ItemGroup>
<None Include="Resources\Appendix.txt" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
35 changes: 16 additions & 19 deletions Documentation/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Documentation/Resources/Manual.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ on the Small Basic website to help you with this.
</P>
<P>
Next step is to download and install the EV3-extension for Small Basic to actually be able to control the EV3 brick with your program.
From the <a href="https://github.com/c0pperdragon/EV3Basic/releases">newest release of EV3-Basic</a>, download the file "ev3extension.zip" and
uncompress its contents into the install folder of Small Basic (this is probably located on your PC in 'C:\Program Files (x86)\Microsoft' and you
probably need Administrator rights to do it). This should create a '/lib' - folder inside of the 'Small Basic' folder.
From the <a href="https://github.com/c0pperdragon/EV3Basic/releases">newest release of EV3-Basic</a>, download and install the file "EV3BasicInstaller.msi".
This should install the extension right into the installation directory of Small Basic. If you have before chosen a non-standard location for Small Basic,
use this same location here.
At the next start of Small Basic (restart it if it was still running), you have access to various objects to control different aspects of the brick
and some additional multi-purpose objects as well.
Now create your very first EV3-program by writing
Expand All @@ -46,20 +46,20 @@ Now create your very first EV3-program by writing
<P>
into the program window.
Then connect the EV3 brick with your computer using the USB cable, start it up, and when it is running,
press the big blue "Start" button of Small Basic. This will compile and start the program that remote-controls the brick from the PC.
press the big blue "Run" button of Small Basic. This will compile and start the program that remote-controls the brick from the PC.
</P>
<P>
When writing your own programs, the Intellisense - system of Small Basic will show you the possible library functions and usage
documentation which contains the same information that is also available in this document in the chapter "Library Documentation".
Many more examples for the EV3 programming are also available on the releases page (probably named 'examples.zip').
</P>
<P>
Remote controlling the brick with a program on the PC is a cool thing, but for many uses you will need an independet robot that
Remote controlling the brick with a program on the PC is a cool thing, but for many uses you will need an independend robot that
has its own program and does not need the PC to tell it every single step.
</P>
<P>
To get the program to the brick, you need the EV3Explorer which is also available on the releases page (as file 'ev3explorer.zip'). Uncompress it to
some location of your choice and start the contained EV3Explorer.exe. This will open a window where you can see the files that are stored on the EV3 brick
To get the program to the brick, you need the EV3Explorer which was already installed along with the EV3-extension and is available on the
windows start menu (EV3Basic/EV3Explorer). Starting this program will open a window where you can see the files that are stored on the EV3 brick
(on the left side of the window) and also the files stored on your PC (on the right side of the window).
You can compile any of the examples and your own programs by selecting the source code
file (ends with .sb) and click "Compile and Run".
Expand Down
3 changes: 3 additions & 0 deletions Documentation/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
22 changes: 15 additions & 7 deletions Documentation/ev3basic_manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ <H1 class="chapter">Getting Started</H1>
</P>
<P>
Next step is to download and install the EV3-extension for Small Basic to actually be able to control the EV3 brick with your program.
From the <a href="https://github.com/c0pperdragon/EV3Basic/releases">newest release of EV3-Basic</a>, download the file "ev3extension.zip" and
uncompress its contents into the install folder of Small Basic (this is probably located on your PC in 'C:\Program Files (x86)\Microsoft' and you
probably need Administrator rights to do it). This should create a '/lib' - folder inside of the 'Small Basic' folder.
From the <a href="https://github.com/c0pperdragon/EV3Basic/releases">newest release of EV3-Basic</a>, download and install the file "EV3BasicInstaller.msi".
This should install the extension right into the installation directory of Small Basic. If you have before chosen a non-standard location for Small Basic,
use this same location here.
At the next start of Small Basic (restart it if it was still running), you have access to various objects to control different aspects of the brick
and some additional multi-purpose objects as well.
Now create your very first EV3-program by writing
Expand All @@ -128,20 +128,20 @@ <H1 class="chapter">Getting Started</H1>
<P>
into the program window.
Then connect the EV3 brick with your computer using the USB cable, start it up, and when it is running,
press the big blue "Start" button of Small Basic. This will compile and start the program that remote-controls the brick from the PC.
press the big blue "Run" button of Small Basic. This will compile and start the program that remote-controls the brick from the PC.
</P>
<P>
When writing your own programs, the Intellisense - system of Small Basic will show you the possible library functions and usage
documentation which contains the same information that is also available in this document in the chapter "Library Documentation".
Many more examples for the EV3 programming are also available on the releases page (probably named 'examples.zip').
</P>
<P>
Remote controlling the brick with a program on the PC is a cool thing, but for many uses you will need an independet robot that
Remote controlling the brick with a program on the PC is a cool thing, but for many uses you will need an independend robot that
has its own program and does not need the PC to tell it every single step.
</P>
<P>
To get the program to the brick, you need the EV3Explorer which is also available on the releases page (as file 'ev3explorer.zip'). Uncompress it to
some location of your choice and start the contained EV3Explorer.exe. This will open a window where you can see the files that are stored on the EV3 brick
To get the program to the brick, you need the EV3Explorer which was already installed along with the EV3-extension and is available on the
windows start menu (EV3Basic/EV3Explorer). Starting this program will open a window where you can see the files that are stored on the EV3 brick
(on the left side of the window) and also the files stored on your PC (on the right side of the window).
You can compile any of the examples and your own programs by selecting the source code
file (ends with .sb) and click "Compile and Run".
Expand Down Expand Up @@ -435,6 +435,14 @@ <H4 class="parameter">handle</H4>
<P class="parametersummary">The file handle (previously obtained from an Open... call)</P>
<H4 class="returns">Returns</H4>
<P class="returnssummary">The text from the current line in the file.</P>
<H3 class="operation">EV3File.ReadNumberArray (handle, size)</H3>
<P class="operationsummary">Read a whole array of numbers in binary from from the file. The numbers are encoded in IEEE single precision floating point representation.</P>
<H4 class="parameter">handle</H4>
<P class="parametersummary">The file handle (previously obtained from an Open... call)</P>
<H4 class="parameter">size</H4>
<P class="parametersummary">Number of values to read</P>
<H4 class="returns">Returns</H4>
<P class="returnssummary">An array of size elements holding the values.</P>
<H3 class="operation">EV3File.TableLookup (filename, bytes_per_row, row, column)</H3>
<P class="operationsummary">Utility function to read bytes from potentially huge data files that are too big to be transfered to memory as a whole.<BR>Because the file could be so big that the numerical precision of the normal numbers is not enough, a row/column addressing is possible.</P>
<H4 class="parameter">filename</H4>
Expand Down
5 changes: 5 additions & 0 deletions EV3Basic.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Documentation", "Documentat
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SmallBasic10EV3Extension", "SmallBasic10EV3Extension\SmallBasic10EV3Extension.csproj", "{3A59574F-9711-4B3B-A713-0A3F3161205E}"
EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "EV3BasicInstaller", "EV3BasicInstaller\EV3BasicInstaller.vdproj", "{77F4EC78-B79A-42C6-ABDE-15C1AE2D48B1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -59,6 +61,9 @@ Global
{3A59574F-9711-4B3B-A713-0A3F3161205E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A59574F-9711-4B3B-A713-0A3F3161205E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A59574F-9711-4B3B-A713-0A3F3161205E}.Release|Any CPU.Build.0 = Release|Any CPU
{77F4EC78-B79A-42C6-ABDE-15C1AE2D48B1}.Debug|Any CPU.ActiveCfg = Debug
{77F4EC78-B79A-42C6-ABDE-15C1AE2D48B1}.Release|Any CPU.ActiveCfg = Release
{77F4EC78-B79A-42C6-ABDE-15C1AE2D48B1}.Release|Any CPU.Build.0 = Release
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Loading

0 comments on commit 7c01d39

Please sign in to comment.