# PDDesignerV5 Setup Project This directory contains the Inno Setup script for building a setup package for [PDDesignerV5 (FEMA)](https://github.com/Greenfield-Investments/PDDesignerV5). ## Configuration Variables During installation using the compiled setup package for PDDesignerV5, the user is prompted for values for the following configuration variables: 1. Database connection string: server name, initial catalog, username, and password. 2. iWS5 API URL. The database connection string is used to update the `config.ini` file after installation has completed, and the iWS5 API URL is used to update the `PD2015.exe.config` file. ## Dependencies The following dependencies are required to run PDDesignerV5: 1. The [.NET Framework 4.5.2 runtime](https://download.microsoft.com/download/E/2/1/E21644B5-2DF2-47C2-91BD-63C560427900/NDP452-KB2901907-x86-x64-AllOS-ENU.exe) must be installed. This file should be located at `redist/NDP452-KB2901907-x86-x64-AllOS-ENU.exe`. 2. Microsoft Visio 2021 (build 16.0.14326) or later, licensed. ## Additional Notes 1. When building the PDDesignerV5 setup package, the `PublishPath` pre-processor variable in the Inno Setup script ([PDDesignerV5_Setup.iss](PDDesignerV5_Setup.iss)) should be set to the publish directory created after publishing the application from Visual Studio. 2. When building the PDDesignerV5 setup package, the `MyAppVersion` pre-processor variable will be set by the output of the [Generate_Version.ps1](Generate_Version.ps1) PowerShell script, which reads the Git repository info in the `PublishPath` directory, combined with the compiled EXE's version string. 3. The setup package checks to make sure Microsoft Visio 2021 or later is installed, and blocks installation if Visio is not detected. This can be bypassed by running the setup package from the command line with the flag: `/SkipVisioCheck=true`