Skip to content

Commit f6a477e

Browse files
committed
Merge branch 'cazac9-master'
2 parents a688e98 + f2da746 commit f6a477e

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

eFormAPI/Installation/CustomActions/CustomAction.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,12 @@ public static ActionResult InstallCA(Session session)
235235
if (session.CustomActionData["GENERATESSL"] == "1")
236236
{
237237
var siteId = GetSiteId(uiName);
238-
RunProcess(Path.Combine(installFolder, "letsencrypt\\letsencrypt.exe"), $"--plugin iissite --siteid { siteId } --accepttos --usedefaulttaskuser");
238+
var email = session.CustomActionData["EMAIL"];
239+
RunProcess(Path.Combine(installFolder, "letsencrypt\\letsencrypt.exe"), $"--plugin iissite --siteid { siteId } --emailaddress { email } --accepttos --usedefaulttaskuser");
239240
}
240241

241-
CongigureSecurity(clientLocation);
242-
CongigureSecurity(webApiLocation);
242+
ConfigureSecurity(clientLocation);
243+
ConfigureSecurity(webApiLocation);
243244
//DeleteDirectory(Path.Combine(installFolder, "letsencrypt"));
244245
IncrementProgressBar(session);
245246

@@ -348,8 +349,8 @@ public static ActionResult UpdateCA(Session session)
348349
ControlSites(customerNumber, domain, apiPort, uiPort, true);
349350
IncrementProgressBar(session);
350351

351-
CongigureSecurity(uiIisDir);
352-
CongigureSecurity(webApiLocation);
352+
ConfigureSecurity(uiIisDir);
353+
ConfigureSecurity(webApiLocation);
353354

354355
DeleteDirectory(apiTemp);
355356
DeleteDirectory(clientTemp);
@@ -510,7 +511,7 @@ private static void RenameFolders(string location, string apiName, string uiName
510511
DeleteDirectory(Path.Combine(location, "eform-client"));
511512
}
512513

513-
public static void CongigureSecurity(string folder)
514+
public static void ConfigureSecurity(string folder)
514515
{
515516
using (var powershell = PowerShell.Create())
516517
{

eFormAPI/Installation/MainInstaller/DomainNameDlg.wxs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,19 @@
99
<Control Type="Edit" Id="CustomerNumber" Width="220" Height="15" X="45" Y="132" Property="CUSTOMERNUMBER" Text="{80}" />
1010

1111
<Control Type="CheckBox" Id="certgen" Property="GENERATESSL" Width="215" Height="17" X="45" Y="165" CheckBoxValue="1" Text="Generate SSL certificate" />
12+
13+
<Control Id="EmailText" Type="Text" X="45" Y="182" Width="220" Height="15" Text ="&amp;Email address:">
14+
<Condition Action="show" >GENERATESSL</Condition>
15+
<Condition Action="hide"><![CDATA[GENERATESSL <> "1"]]></Condition>
16+
</Control>
17+
<Control Id="EmailBox" Type="Edit" X="45" Y="196" Width="220" Height="15" Property="EMAIL" Text="{80}">
18+
<Condition Action="show" >GENERATESSL</Condition>
19+
<Condition Action="hide"><![CDATA[GENERATESSL <> "1"]]></Condition>
20+
</Control>
1221

1322
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&amp;Back" />
1423
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Text="&amp;Next">
15-
<Publish Event="SpawnDialog" Value="EmptyFieldDlg">NOT DOMAINNAME OR NOT CUSTOMERNUMBER</Publish>
24+
<Publish Event="SpawnDialog" Value="EmptyFieldDlg">(NOT DOMAINNAME OR NOT CUSTOMERNUMBER) OR (GENERATESSL AND NOT EMAIL)</Publish>
1625
</Control>
1726
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel">
1827
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>

eFormAPI/Installation/MainInstaller/MaintenanceTypeModifiedDlg.wxs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<Publish Property="DOMAINNAME" Value="{}" >1</Publish>
1414
<Publish Property="CUSTOMERNUMBER" Value="{}" >1</Publish>
1515
<Publish Property="GENERATESSL" Value="{}" >1</Publish>
16+
<Publish Property="EMAIL" Value="{}" >1</Publish>
1617
<Publish Property="CONFIGURATIONEXISTS" Value="{}" >1</Publish>
1718
</Control>
1819
<Control Id="Update" Type="PushButton" X="98" Y="139" Width="139" Height="33" Text="&amp;Update" >

eFormAPI/Installation/MainInstaller/Product.wxs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<Property Id="DOMAINNAME" Value="{}" Secure="yes" />
3939
<Property Id="CUSTOMERNUMBER" Value="{}" Secure="yes" />
4040
<Property Id="GENERATESSL" Value="{}" Secure="yes" />
41+
<Property Id="EMAIL" Value="{}" Secure="yes" />
4142
<Property Id="INSTALLFOLDER" Value="C:\inetpub\wwwroot" Secure="yes" />
4243
<Property Id="KEEPFOLDERS" Value="eform-api\output" Secure="yes"/>
4344
<Property Id="KEEPSETTINGS" Value="1" Secure="yes"/>
@@ -70,7 +71,7 @@
7071

7172
<Binary Id="BinaryCA" SourceFile="BuildedCustomActions\CustomActions.CA.dll" />
7273

73-
<CustomAction Id="SetInstalValues" Property="Install" Value="INSTMODE=[INSTMODE];DOMAINNAME=[DOMAINNAME];CUSTOMERNUMBER=[CUSTOMERNUMBER];GENERATESSL=[GENERATESSL];INSTALLFOLDER=[INSTALLFOLDER];USEEXISTINGCONFIGURATION=[USEEXISTINGCONFIGURATION];CONFIGURATIONEXISTS=[CONFIGURATIONEXISTS];KEEPFOLDERS=[KEEPFOLDERS];KEEPFILES=[KEEPFILES]"/>
74+
<CustomAction Id="SetInstalValues" Property="Install" Value="INSTMODE=[INSTMODE];DOMAINNAME=[DOMAINNAME];CUSTOMERNUMBER=[CUSTOMERNUMBER];GENERATESSL=[GENERATESSL];INSTALLFOLDER=[INSTALLFOLDER];USEEXISTINGCONFIGURATION=[USEEXISTINGCONFIGURATION];CONFIGURATIONEXISTS=[CONFIGURATIONEXISTS];KEEPFOLDERS=[KEEPFOLDERS];KEEPFILES=[KEEPFILES];EMAIL=[EMAIL]"/>
7475
<CustomAction Id="SetRemoveValues" Property="RemoveService" Value="INSTMODE=[INSTMODE];DOMAINNAME=[DOMAINNAME];KEEPFOLDERS=[KEEPFOLDERS];KEEPSETTINGS=[KEEPSETTINGS];KEEPFILES=[KEEPFILES]" />
7576
<CustomAction Id="SetUpdateServiceValues" Property="UpdateService" Value="INSTMODE=[INSTMODE];DOMAINNAME=[DOMAINNAME];INSTALLFOLDER=[INSTALLFOLDER]" />
7677

0 commit comments

Comments
 (0)