3 added 253 characters in body
source | link

I think that the menu item File -> Install... is very convenient, even for power users. The only problem is that there is no uninstall option. However, if the package consists of a single file, upgrading is easy: the old file will be overwritten with the new file.

You can write some simple instructions for users:

  1. Open the .m file you sent them
  2. Choose File -> Install...
  3. Choose Type -> Package, Source -> (the open notebook), Install Name -> SomePackage
  4. Load the package by evaluating <<SomePackage`.

The only thing that can go wrong is that they mistype the install name.

The Install... menu item will put the package into

FileNameJoin[{$UserBaseDirectory, "Applications"}]

which on Windows is

%appdata%\Mathematica\Applications

(Press Win-R and type the above to get to that directory.)

When necessary, the package file can be deleted from that directory.

This is the usual way I install and upgrade palettes myself.


Putting packages into the Mathematica installation directory is not really advantageous because they will get lost when Mathematica is upgraded (for example, from 8.0.1 to 8.0.4). Instead they can be put into $BaseDirectory/Application (for all users) or $UserBaseDirectory/Application (for the current user). This is what the Install... menu item does.


It seems that the Install... menu item can deal with multi-file packages too. "Type of Item to Install" should be set to "Applications", "Source" -> "From File..." and the package files need to be inside an archive (.zip file). I have not used this personally, so I have no experience with it (e.g. about what happens on upgrade).


@AlbertRetey noted below that the Wolfram Player Pro does not have this menu item at all. The only way to install packages into it is to do it manually or create a script that does it.

I think that the menu item File -> Install... is very convenient, even for power users. The only problem is that there is no uninstall option. However, if the package consists of a single file, upgrading is easy: the old file will be overwritten with the new file.

You can write some simple instructions for users:

  1. Open the .m file you sent them
  2. Choose File -> Install...
  3. Choose Type -> Package, Source -> (the open notebook), Install Name -> SomePackage
  4. Load the package by evaluating <<SomePackage`.

The only thing that can go wrong is that they mistype the install name.

The Install... menu item will put the package into

FileNameJoin[{$UserBaseDirectory, "Applications"}]

which on Windows is

%appdata%\Mathematica\Applications

(Press Win-R and type the above to get to that directory.)

When necessary, the package file can be deleted from that directory.

This is the usual way I install and upgrade palettes myself.


Putting packages into the Mathematica installation directory is not really advantageous because they will get lost when Mathematica is upgraded (for example, from 8.0.1 to 8.0.4). Instead they can be put into $BaseDirectory/Application (for all users) or $UserBaseDirectory/Application (for the current user). This is what the Install... menu item does.


It seems that the Install... menu item can deal with multi-file packages too. "Type of Item to Install" should be set to "Applications", "Source" -> "From File..." and the package files need to be inside an archive (.zip file). I have not used this personally, so I have no experience with it (e.g. about what happens on upgrade).

I think that the menu item File -> Install... is very convenient, even for power users. The only problem is that there is no uninstall option. However, if the package consists of a single file, upgrading is easy: the old file will be overwritten with the new file.

You can write some simple instructions for users:

  1. Open the .m file you sent them
  2. Choose File -> Install...
  3. Choose Type -> Package, Source -> (the open notebook), Install Name -> SomePackage
  4. Load the package by evaluating <<SomePackage`.

The only thing that can go wrong is that they mistype the install name.

The Install... menu item will put the package into

FileNameJoin[{$UserBaseDirectory, "Applications"}]

which on Windows is

%appdata%\Mathematica\Applications

(Press Win-R and type the above to get to that directory.)

When necessary, the package file can be deleted from that directory.

This is the usual way I install and upgrade palettes myself.


Putting packages into the Mathematica installation directory is not really advantageous because they will get lost when Mathematica is upgraded (for example, from 8.0.1 to 8.0.4). Instead they can be put into $BaseDirectory/Application (for all users) or $UserBaseDirectory/Application (for the current user). This is what the Install... menu item does.


It seems that the Install... menu item can deal with multi-file packages too. "Type of Item to Install" should be set to "Applications", "Source" -> "From File..." and the package files need to be inside an archive (.zip file). I have not used this personally, so I have no experience with it (e.g. about what happens on upgrade).


@AlbertRetey noted below that the Wolfram Player Pro does not have this menu item at all. The only way to install packages into it is to do it manually or create a script that does it.

2 added 350 characters in body
source | link

I think that the menu item File -> Install... is very convenient, even for power users. The only problem is that there is no uninstall option. However, if the package consists of a single file, upgrading is easy: the old file will be overwritten with the new file.

You can write some simple instructions for users:

  1. Open the .m file you sent them
  2. Choose File -> Install...
  3. Choose Type -> Package, Source -> (the open notebook), Install Name -> SomePackage
  4. Load the package by evaluating <<SomePackage`.

The only thing that can go wrong is that they mistype the install name.

The Install... menu item will put the package into

FileNameJoin[{$UserBaseDirectory, "Applications"}]

which on Windows is

%appdata%\Mathematica\Applications

(Press Win-R and type the above to get to that directory.)

When necessary, the package file can be deleted from that directory.

This is the usual way I install and upgrade palettes myself.


Putting packages into the Mathematica installation directory is not really advantageous because they will get lost when Mathematica is upgraded (for example, from 8.0.1 to 8.0.4). Instead they can be put into $BaseDirectory/Application (for all users) or $UserBaseDirectory/Application (for the current user). This is what the Install... menu item does.


It seems that the Install... menu item can deal with multi-file packages too. "Type of Item to Install" should be set to "Applications", "Source" -> "From File..." and the package files need to be inside an archive (.zip file). I have not used this personally, so I have no experience with it (e.g. about what happens on upgrade).

I think that the menu item File -> Install... is very convenient, even for power users. The only problem is that there is no uninstall option. However, if the package consists of a single file, upgrading is easy: the old file will be overwritten with the new file.

You can write some simple instructions for users:

  1. Open the .m file you sent them
  2. Choose File -> Install...
  3. Choose Type -> Package, Source -> (the open notebook), Install Name -> SomePackage
  4. Load the package by evaluating <<SomePackage`.

The only thing that can go wrong is that they mistype the install name.

The Install... menu item will put the package into

FileNameJoin[{$UserBaseDirectory, "Applications"}]

which on Windows is

%appdata%\Mathematica\Applications

(Press Win-R and type the above to get to that directory.)

When necessary, the package file can be deleted from that directory.

This is the usual way I install and upgrade palettes myself.


Putting packages into the Mathematica installation directory is not really advantageous because they will get lost when Mathematica is upgraded (for example, from 8.0.1 to 8.0.4). Instead they can be put into $BaseDirectory/Application (for all users) or $UserBaseDirectory/Application (for the current user). This is what the Install... menu item does.

I think that the menu item File -> Install... is very convenient, even for power users. The only problem is that there is no uninstall option. However, if the package consists of a single file, upgrading is easy: the old file will be overwritten with the new file.

You can write some simple instructions for users:

  1. Open the .m file you sent them
  2. Choose File -> Install...
  3. Choose Type -> Package, Source -> (the open notebook), Install Name -> SomePackage
  4. Load the package by evaluating <<SomePackage`.

The only thing that can go wrong is that they mistype the install name.

The Install... menu item will put the package into

FileNameJoin[{$UserBaseDirectory, "Applications"}]

which on Windows is

%appdata%\Mathematica\Applications

(Press Win-R and type the above to get to that directory.)

When necessary, the package file can be deleted from that directory.

This is the usual way I install and upgrade palettes myself.


Putting packages into the Mathematica installation directory is not really advantageous because they will get lost when Mathematica is upgraded (for example, from 8.0.1 to 8.0.4). Instead they can be put into $BaseDirectory/Application (for all users) or $UserBaseDirectory/Application (for the current user). This is what the Install... menu item does.


It seems that the Install... menu item can deal with multi-file packages too. "Type of Item to Install" should be set to "Applications", "Source" -> "From File..." and the package files need to be inside an archive (.zip file). I have not used this personally, so I have no experience with it (e.g. about what happens on upgrade).

1
source | link

I think that the menu item File -> Install... is very convenient, even for power users. The only problem is that there is no uninstall option. However, if the package consists of a single file, upgrading is easy: the old file will be overwritten with the new file.

You can write some simple instructions for users:

  1. Open the .m file you sent them
  2. Choose File -> Install...
  3. Choose Type -> Package, Source -> (the open notebook), Install Name -> SomePackage
  4. Load the package by evaluating <<SomePackage`.

The only thing that can go wrong is that they mistype the install name.

The Install... menu item will put the package into

FileNameJoin[{$UserBaseDirectory, "Applications"}]

which on Windows is

%appdata%\Mathematica\Applications

(Press Win-R and type the above to get to that directory.)

When necessary, the package file can be deleted from that directory.

This is the usual way I install and upgrade palettes myself.


Putting packages into the Mathematica installation directory is not really advantageous because they will get lost when Mathematica is upgraded (for example, from 8.0.1 to 8.0.4). Instead they can be put into $BaseDirectory/Application (for all users) or $UserBaseDirectory/Application (for the current user). This is what the Install... menu item does.