Skip to content

Commit

Permalink
Version 1.9.8941
Browse files Browse the repository at this point in the history
Version 1.9.8941
-----------------------------------------------------------------
Backend related changes:
- fix: parameter position "autorun" is not mandatory anymore
- fix: parameter position "customprojectfile" is not mandatory anymore
  • Loading branch information
c3rebro committed Jun 24, 2024
1 parent 0643549 commit f8e3d1a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,13 @@ await Task.Run(() =>
var p = new Process();
var info = new ProcessStartInfo()
{
/*
FileName = "msiexec.exe",
Verb="runas",
Arguments = string.Format("/i \"{0}\" ", Path.Combine(appDataPath, WorkPath, "Setup.msi")),
Arguments = string.Format("/i \"{0}\" ", Path.Combine(appDataPath, WorkPath, "RFiDGearBundleSetup.exe")),
*/
FileName = Path.Combine(appDataPath, WorkPath, "RFiDGearBundleSetup.exe"),
Verb = "runas",
UseShellExecute = false
};

Expand Down
2 changes: 1 addition & 1 deletion RFiDGear/RFiDGear.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<StartWorkingDirectory>D:\CardCheck_data</StartWorkingDirectory>
<StartArguments>REPORTTARGETPATH="D:\CardCheck_data\KP-000005-5_final.pdf" CUSTOMPROJECTFILE="D:\CardCheck_data\KPruefung_Vorlagen\00_RFID_Gear_Vorlage\CardCheck_OhneSchreibvorgang_Deutsch_DESFire-Classic-Unbekannt_01_mitEXIT.rfPrj" %24JOBNUMBER="KP-000005" %24CHIPNUMBER="5" AUTORUN=1</StartArguments>
<StartArguments>REPORTTARGETPATH="D:\CardCheck_data\KP-000222\KP-000222-3_final.pdf" REPORTTEMPLATEFILE="D:\CardCheck_data\KP-000222\KP-000222-3_.pdf" CUSTOMPROJECTFILE="D:\CardCheck_data\KPruefung_Vorlagen\00_RFID_Gear_Vorlage\CardCheckAssistant_FreeMemDesfireOnly.rfPrj" %24JOBNUMBER="KP-000222" %24CHIPNUMBER="3" AUTORUN=1</StartArguments>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<StartArguments>REPORTTARGETPATH="D:\CardCheck_data\KP-000005-5_final.pdf" REPORTTEMPLATEFILE="D:\CardCheck_data\KP-000005-5_.pdf" CUSTOMPROJECTFILE="D:\CardCheck_data\KPruefung_Vorlagen\00_RFID_Gear_Vorlage\CardCheckAssistant_FreeMem.rfPrj" %24JOBNUMBER="KP-000005" %24CHIPNUMBER="5" AUTORUN=1</StartArguments>
Expand Down
17 changes: 12 additions & 5 deletions RFiDGear/ViewModel/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2384,6 +2384,8 @@ private void CloseThreads(object sender, CancelEventArgs e)

private async void LoadCompleted(object sender, EventArgs e)
{
var autorun = false;

Application.Current.MainWindow.Activated -= new EventHandler(LoadCompleted);

mw = (MainWindow)Application.Current.MainWindow;
Expand All @@ -2392,7 +2394,6 @@ private async void LoadCompleted(object sender, EventArgs e)
checkUpdate = new Timer(CheckUpdate, null, 100, 5000); // ! UI-Thread !
checkReader = new Timer(CheckReader, null, 5000, 3000); // ! UI-Thread !
var projectFileToUse = "";
await InitOnFirstRun(projectFileToUse);

using (var settings = new SettingsReaderWriter())
{
Expand Down Expand Up @@ -2456,8 +2457,7 @@ private async void LoadCompleted(object sender, EventArgs e)
case "AUTORUN":
if (arg.Split('=')[1] == "1")
{
await OnNewReadChipCommand();
await OnNewWriteToChipOnceCommand();
autorun = true;
}
break;

Expand Down Expand Up @@ -2486,7 +2486,15 @@ private async void LoadCompleted(object sender, EventArgs e)
}
}
}
}
}

await InitOnFirstRun(projectFileToUse);

if (autorun)
{
await OnNewReadChipCommand();
await OnNewWriteToChipOnceCommand();
}
}

private async Task InitOnFirstRun(string projectFileToUse)
Expand Down Expand Up @@ -2534,7 +2542,6 @@ private async Task InitOnFirstRun(string projectFileToUse)
{
await OpenLastProjectFile(projectFileToUse);
}

}

Task.Run(async () =>
Expand Down
2 changes: 1 addition & 1 deletion RFiDGearBundleSetup/Bundle.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
-->
<!--DetectCondition="(LibLogicalAccess_1_87x64 &gt; 22478847 OR LibLogicalAccess_1_87x32 &gt; 22478847)"-->
<!--InstallCommand="/q"-->
<MsiPackage Id="MainPackage" SourceFile="$(var.Setup.ProjectDir)bin\Release\en-us\Setup.msi" Cache="no" Compressed="yes" Vital="yes" />
<MsiPackage Id="MainPackage" SourceFile="$(var.Setup.ProjectDir)bin\Release\de-de\Setup.msi" Cache="no" Compressed="yes" Vital="yes" />
</Chain>

<!--
Expand Down

0 comments on commit f8e3d1a

Please sign in to comment.