Skip to content

Commit f026c48

Browse files
author
ohumeniuk
committed
eform api installer #3
1 parent be67fe8 commit f026c48

File tree

847 files changed

+52915
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

847 files changed

+52915
-7
lines changed
Binary file not shown.
Binary file not shown.

eFormAPI/Bundle/Bundle.wxs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
</Bundle>
1111

1212
<Fragment>
13-
<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Node.js" Variable="NODEJS"/>
14-
<util:RegistrySearch Root="HKLM" Key="SOFTWARE\GitForWindows" Variable="GIT"/>
15-
<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\IIS Extensions\URL Rewrite" Variable="URLREWRITE"/>
16-
<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\IIS Extensions\Application Request Routing" Variable="ARR"/>
13+
<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Node.js" Variable="NODEJS" Win64="yes" Value="InstallPath"/>
14+
<util:RegistrySearch Root="HKLM" Key="Software\GitForWindows" Win64="yes" Variable="GIT" Value="InstallPath"/>
15+
<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\IIS Extensions\URL Rewrite" Variable="URLREWRITE" Value="Version"/>
16+
<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\IIS Extensions\Application Request Routing" Variable="ARR" Value="Version"/>
1717

1818
<PackageGroup Id="ReqiredPackages">
19-
<ExePackage Id="Git" DisplayName="Git" Cache="no" Compressed="yes" Permanent="yes" Vital="yes" SourceFile=".\Git-2.14.2-64-bit.exe" PerMachine="yes" InstallCondition="NOT GIT" InstallCommand="/VERYSILENT"/>
20-
<MsiPackage Id="NodeJS" DisplayName="NodeJS" Cache="no" Compressed="yes" DisplayInternalUI="no" Permanent="yes" Vital="yes" SourceFile=".\node-v8.6.0-x64.msi" ForcePerMachine="yes" InstallCondition="NOT NODEJS"/>
19+
<ExePackage Id="Git" DisplayName="Git" Cache="no" Compressed="yes" Permanent="yes" Vital="yes" SourceFile=".\Git-2.14.2-64-bit.exe" InstallCondition="NOT GIT" InstallCommand="/VERYSILENT"/>
20+
<MsiPackage Id="NodeJS" DisplayName="NodeJS" Cache="no" Compressed="yes" DisplayInternalUI="no" Permanent="yes" Vital="yes" SourceFile=".\node-v8.6.0-x64.msi" InstallCondition="NOT NODEJS"/>
2121
<MsiPackage Id="URLRewrite" DisplayName="URL Rewrite" Cache="no" Compressed="yes" DisplayInternalUI="no" Permanent="yes" Vital="yes" SourceFile=".\rewrite_amd64.msi" ForcePerMachine="yes" InstallCondition="NOT URLREWRITE"/>
2222
<MsiPackage Id="ARR" DisplayName="Application Request Routing" Cache="no" Compressed="yes" DisplayInternalUI="no" Permanent="yes" Vital="yes" SourceFile=".\requestRouter_amd64.msi" ForcePerMachine="yes" InstallCondition="NOT ARR"/>
2323
<MsiPackage Id="MainInstaller" DisplayName="eFormsAPI" Cache="no" Compressed="yes" DisplayInternalUI="yes" Permanent="yes" Vital="yes" Visible="no" SourceFile=".\maininstaller.msi" ForcePerMachine="yes" InstallCondition="1"/>

eFormAPI/Bundle/maininstaller.msi

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

eFormAPI/CustomActions/CustomAction.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,9 @@ private static void BuildAngularApp(string appLocation, string appSolutionLocati
321321

322322
private static void BuildWebApi(string solutionLocation, string iisDir)
323323
{
324-
RunProcess(@"msbuild", $@"{solutionLocation}\eFormAPI.Web.csproj /p:DeployOnBuild=true /p:PublishProfile=FolderProfile.pubxml");
324+
var parentDir = new DirectoryInfo(solutionLocation).Parent.FullName;
325+
RunProcess(parentDir + @"\nuget\nuget.exe", "restore -PackagesDirectory packages", parentDir);
326+
RunProcess(parentDir + @"\msbuild\msbuild.exe", $@"{solutionLocation}\eFormAPI.Web.csproj /p:DeployOnBuild=true /p:PublishProfile=FolderProfile.pubxml");
325327

326328
if (Directory.Exists(iisDir))
327329
DeleteDirectory(iisDir);
Binary file not shown.
102 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)