Skip to content

Commit

Permalink
Added Feature Request
Browse files Browse the repository at this point in the history
+ add Variable: %DATE
  • Loading branch information
c3rebro committed May 27, 2022
1 parent 3655237 commit 876c00a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,13 @@ private void OnNewWriteReportCommand(ReportReaderWriter _reportReaderWriter)
hasVariable = true;
}

if (temporaryContent.Contains("%FREEMEM"))
if (temporaryContent.Contains("%DATE"))
{
temporaryContent = temporaryContent.Replace("%DATE", DateTime.Now.ToString("dd/MM/yyyy") ?? "");
hasVariable = true;
}

if (temporaryContent.Contains("%FREEMEM"))
{
temporaryContent = temporaryContent.Replace("%FREEMEM", GenericChip.FreeMemory.ToString() ?? "");
hasVariable = true;
Expand Down
2 changes: 1 addition & 1 deletion RFiDGearBundleSetup/Bundle.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<?define ISLOG_RegistrySearch_Value = "C:\Program Files (x86)\Common Files\ISLOG\LibLogicalAccess\1.87.3.0214\liblogicalaccess.com.dll" ?>
<?endif ?>

<Bundle Name="$(var.RFiDGear.ProjectName)" Version="$(var.VersionNumber)" Manufacturer="Messgeraetetechnik Hansen" UpgradeCode="$(var.UpgradeCode)" Copyright="Messgeraetetechnik Hansen 2018" IconSourceFile="$(var.RFiDGear.ProjectDir)Resources\logo.ico" AboutUrl="http://rfidgear.hyperstack.de">
<Bundle Name="$(var.RFiDGear.ProjectName)" Version="$(var.VersionNumber)" Manufacturer="Messgeraetetechnik Hansen" UpgradeCode="$(var.UpgradeCode)" Copyright="Messgeraetetechnik Hansen 2022" IconSourceFile="$(var.RFiDGear.ProjectDir)Resources\logo.ico" AboutUrl="http://rfidgear.hyperstack.de">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
<bal:WixStandardBootstrapperApplication LicenseFile="$(var.RFiDGear.ProjectDir)Resources\gpl_v3_license.rtf" LogoFile="setuplogo.ico" ThemeFile="rtftheme.xml"/>
</BootstrapperApplicationRef>
Expand Down

0 comments on commit 876c00a

Please sign in to comment.