Skip to content

Commit

Permalink
New: if no intenter connection, check %temp%\<shortname>.json for def…
Browse files Browse the repository at this point in the history
…inition
  • Loading branch information
rzander committed Aug 6, 2018
1 parent cd1fba5 commit d3ff910
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions RZUpdate/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.6.1.*")]
[assembly: AssemblyFileVersion("1.6.1.6")]
[assembly: AssemblyVersion("1.6.2.*")]
[assembly: AssemblyFileVersion("1.6.2.7")]
18 changes: 15 additions & 3 deletions RZUpdate/RZUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,21 @@ public SWUpdate(string Shortname)
var oGetSW = RZRestAPI.SWGet(Shortname).FirstOrDefault(); ;

SW = new AddSoftware();
SW.ProductName = oGetSW.ProductName;
SW.ProductVersion = oGetSW.ProductVersion;
SW.Manufacturer = oGetSW.Manufacturer;

if (oGetSW == null)
{
if (File.Exists(Path.Combine(Environment.ExpandEnvironmentVariables("%TEMP%"), Shortname + ".json")))
{
string sSWFile = Path.Combine(Environment.ExpandEnvironmentVariables("%TEMP%"), Shortname + ".json");
SW = new SWUpdate(RZUpdater.ParseJSON(sSWFile)).SW;
}
}
else
{
SW.ProductName = oGetSW.ProductName;
SW.ProductVersion = oGetSW.ProductVersion;
SW.Manufacturer = oGetSW.Manufacturer;
}

//Get Install-type
GetInstallType();
Expand Down
4 changes: 3 additions & 1 deletion RZUpdate/RZUpdate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x64</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
Expand All @@ -43,6 +43,7 @@
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -52,6 +53,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Download &amp; Upgrade.ico</ApplicationIcon>
Expand Down

0 comments on commit d3ff910

Please sign in to comment.