Install Pleasanter on Windows Using the Installer
## Overview
This procedure is for building the operating environment of Pleasanter using the "Installer". You can also install it using the previous procedure of manually placing modules and setting parameters. Please refer to the following for manual installation procedures.
[Install Pleasanter on Windows](getting-started-pleasanter-windows)
|Target|Environment/Version|
|------|:--------------|
|OS|Windows Server|
|DB|SQL Server, PostgreSQL, or MySQL|
|Web Server|IIS|
|Platform|.NET 8|
|Pleasanter|1.4.0.0 or later|
## Notes
1. When installing with version 1.4.6 or later, if you run CodeDefiner without specifying arguments, it will be set up with the language: English and the time zone: UTC, so please specify the language and time zone as necessary.
1. MySQL can be used with version 1.4.9.0 or later. Pleasanter versions earlier than 1.4.9.0 do not support MySQL.
1. If you want to configure a separate web server and DB server in MySQL, please refer to "".
## Limitations
Installation using the "Installer" applies to versions 1.4.0.0 and later. If you are installing versions 1.3.50.2 or earlier, please refer to the manual installation procedure.
[Install Pleasanter on Windows](getting-started-pleasanter-windows)
## Procedure
The construction procedure is as follows.
1. Advance preparation
1. Install the installer
1. Set up Pleasanter
1. Set up IIS
1. Check that Pleasanter starts
## 1. Advance Preparation
1. Make advance preparations according to the environment in which Pleasanter will be installed.
[Install Pleasanter on Windows Server 2022](getting-started-pleasanter-windows-server2022)
[Install Pleasanter on Windows Server 2019](getting-started-pleasanter-windows-server2019)
[Install Pleasanter on Windows Server 2016](getting-started-pleasanter-windows-server2016)
[Install Pleasanter on Windows 10/11](getting-started-pleasanter-windows10)
## 2. Install the Installer
Execute the following command to install the installer.
```
dotnet tool install -g Implem.PleasanterSetup
```
### If you are not connected to a network environment, install using the following procedure.
<details>
<summary> (Click here to open/close the details) </summary>
1. Open the Nuget Gallery for Implem.PleasanterSetup from [here](https://www.nuget.org/packages/Implem.PleasanterSetup/) and download the .nupkg file from "Download package".

1. Execute the following command to create a folder of your choice to place the .nupkg file.
*This procedure explains how to create C:\dotnet-tools.
```
mkdir C:\dotnet-tools
```
1. Place the .nupkg file downloaded in 2.1 in C:\dotnet-tools.
1. Execute the following command to install.
```
dotnet tool install -g --add-source C:\dotnet-tools Implem.PleasanterSetup
```
</details>
## 3. Set up Pleasanter
By using the installer, the latest version resources are automatically downloaded and the values of Service.json and Rds.json are automatically set based on the values entered.
#### The procedure when using SQL Server is as follows.
<details>
<summary> (Click here to open/close the details) </summary>
1. Run the following command to run the installer.
```
pleasanter-setup
```
**If you are not connected to a network environment, follow the steps below**
<details>
<summary> (Click here to open/close details) </summary>
1. Download the latest version of Pleasanter from the [Download Center](https://pleasanter.org/dlcenter) and place it in "C:\web\".
1. Run the following command.
**Please confirm that the configuration under the C:\web\** directory is as follows.
C:\web\Pleasanter_1.4.x.x.zip
```
pleasanter-setup -r C:\web\Pleasanter_1.4.11.0.zip
```
</details>
2. Enter the directory where you want to install Pleasanter.
If you want to install it in "C:\web\pleasanter", leave it blank and press the Enter key.

3. Enter the service name.
If you want to install it in "Implem.Pleasanter", leave it blank and press the Enter key.

4. Enter the number corresponding to the DBMS you want to use.
Enter "1" and press the Enter key.

5. Enter the port number you want to use.
If you are using the default port number for the DBMS, leave it blank and press the Enter key.

6. Enter the value to be set for Server in the connection string.
If you are using "localhost", leave it blank and press the Enter key.

7. Enter the value to be set for UID in SaConnectionString.
If you are using "sa", leave it blank and press the Enter key.

8. Enter the value to be set for PWD in SaConnectionString.
*The password will be displayed in a masked state.

9. Enter the value to be set in PWD of OwnerConnectionString.
*The password is displayed in a masked state.

10. Enter the value to be set in PWD of UserConnectionString.
*The password is displayed in a masked state.

11. Enter "Default language".
Enter the number of the corresponding language.

12. Enter the "Default time zone".
Enter the number of the corresponding time zone.
*If you entered "3", enter a time zone that can be used with the OS you are using.

13. The summary screen will be displayed.
If the entered values are correct, enter **y** after "Shall I install Pleasanter with this content? Please enter 'y(yes)' or 'n(no)'. :" and press Enter.
*The password is masked.

14. When the message "Type "y" (yes) if the license is correct, otherwise type "n" (no)" appears, enter **y** and execute.
When the following log appears, the setup is complete.
```
<SUCCESS> Starter.ConfigureDatabase: Database configuration has been completed.
<SUCCESS> Starter.Main: All of the processes have been completed.
Setup is complete.
```
</details>
#### The procedure for using PostgreSQL is as follows.
<details>
<summary>(Click here to open/close the details) </summary>
1. Run the following command to run the installer.
```
pleasanter-setup
```
**If you are not connected to a network environment, follow the steps below**
<details>
<summary>(Click here to open/close the details) </summary>
1. Download the latest version of Pleasanter from the [Download Center](https://pleasanter.org/dlcenter) and place it in "C:\web\".
1. Run the following command.
**Please make sure that the configuration under the C:\web\ directory is as follows.
C:\web\Pleasanter_1.4.x.x.zip
```
pleasanter-setup -r C:\web\Pleasanter_1.4.11.0.zip
```
</details>
2. Enter the directory where you want to install Pleasanter.
If you want to install it in "C:\web\pleasanter", leave it blank and press the Enter key.

3. Enter the service name.
If you want to install it in "Implem.Pleasanter", leave it blank and press the Enter key.

4. Enter the number corresponding to the DBMS you want to use.
Here, enter "2" and press the Enter key.

5. Enter the port number to be used.
If it is the default port number for the DBMS, leave it blank and press the Enter key.

6. Enter the value to be set in Server in the connection string.
If it is "localhost", leave it blank and press the Enter key.

7. Enter the value to be set in UID of SaConnectionString.
If it is "postgres", leave it blank and press the Enter key.

8. Enter the value to be set for PWD in SaConnectionString.
*The password will be displayed in a masked state.

9. Enter the value to be set for PWD in OwnerConnectionString.
*The password will be displayed in a masked state.

10. Enter the value to be set for PWD in UserConnectionString.
*The password will be displayed in a masked state.

11. Enter the default language.
Enter the number of the corresponding language.

12. Enter the default time zone.
Enter the number of the corresponding time zone.
*If you entered "3", enter the time zone available on the OS you are using.

13. The summary screen will be displayed.
If the entered values are correct, enter **y** after "Shall I install Pleasanter with this content? Please enter ‘y(yes)' or 'n(no)'. :" and press Enter to execute.
*The password is masked.

14. When "Type "y" (yes) if the license is correct, otherwise type "n" (no)" is displayed, enter **y** and execute.
When the following log is displayed, the setup is complete.
```
<SUCCESS> Starter.ConfigureDatabase: Database configuration has been completed.
<SUCCESS> Starter.Main: All of the processes have been completed.
Setup is complete.
```
</details>
#### The procedure for using MySQL is as follows.
<details>
<summary>(Click here to open/close the details) </summary>
1. Run the following command to run the installer.
```
pleasanter-setup
```
**If you are not connected to a network environment, follow the steps below**
<details>
<summary>(Click here to open/close the details) </summary>
1. Download the latest version of Pleasanter from the [Download Center](https://pleasanter.org/dlcenter) and place it in "C:\web\".
1. Run the following command.
**Please make sure that the configuration under the C:\web\ directory is as follows.
C:\web\Pleasanter_1.4.x.x.zip
```
pleasanter-setup -r C:\web\Pleasanter_1.4.11.0.zip
```
</details>
2. Enter the directory where you want to install Pleasanter.
If you want to install it in "C:\web\pleasanter", leave it blank and press the Enter key.

3. Enter the service name.
If you want to install it in "Implem.Pleasanter", leave it blank and press the Enter key.

4. Enter the number corresponding to the DBMS you want to use.
Here, enter "3" and press the Enter key.

5. Enter the port number to be used.
If it is the default port number of the DBMS, leave it blank and press the Enter key.

6. Enter the value to be set in Server of the connection string.
If it is "localhost", leave it blank and press the Enter key.

7. Enter the value to be set in UID of SaConnectionString.
If it is "root", leave it blank and press the Enter key.

8. Enter the value to be set for PWD in SaConnectionString.
*The password will be displayed in a masked state.

9. Enter the value to be set for PWD in OwnerConnectionString.
*The password will be displayed in a masked state.

10. Enter the value to be set for PWD in UserConnectionString.
*The password will be displayed in a masked state.

11. Enter the default language.
Enter the number of the corresponding language.

12. Enter the default time zone.
Enter the number of the corresponding time zone.
*If you entered "3", enter the time zone available on the OS you are using.

13. The summary screen will be displayed.
If the entered values are correct, enter **y** after "Shall I install Pleasanter with this content? Please enter ‘y(yes)' or 'n(no)'. :" and press Enter to execute.
*The password is masked.

14. When "Type "y" (yes) if the license is correct, otherwise type "n" (no)" is displayed, enter **y** and execute.
When the following log is displayed, the setup is complete.
```
<SUCCESS> Starter.ConfigureDatabase: Database configuration has been completed.
<SUCCESS> Starter.Main: All of the processes have been completed.
Setup is complete.
```
</details>
## 4. Set Up IIS
1. Open the "Tools" menu in "Server Manager" and launch "Internet Information Services (IIS) Manager".
1. Select "DefaultAppPool" in "Application Pools" and click "Basic Settings".

1. Change the Net CLR version to "No Managed Code".

1. Select "「Site」" - "Default Web Site" from the left pane and click Advanced Settings on the right pane.

1. Enter the physical path as "C:\web\pleasanter\Implem.Pleasanter".

1. From the left pane, select "「Site」" - "Default Web Site", and click "Restart" in the right pane to restart IIS.

1. After restarting, click "Browse *.80(http)" in the right pane to start Pleasanter.

## 5. Checking the operation of Pleasanter
1. On the Pleasanter login screen, enter "Login ID: Administrator" and "Initial password: pleasanter" and click the "Login" button.

1. After logging in, you will be asked to change the "Administrator" user password, so enter a password of your choice and click the "Change" button.

## Supported Versions
|Supported versions|Body|
|:--|:--|
|1.4.9.0 and later|Supports MySQL|
|1.4.10.0 and later|Fixed the issue where Owner and User connections were rejected due to MySQL's access control function<br>*Added a link to "" in the notes|