Skip to content

Commit e4d8da3

Browse files
authored
Merge pull request #37 from neuralpain/v0.21.2-beta
Fix patch validation and pos launch bug
2 parents ef47ab1 + ce1497e commit e4d8da3

16 files changed

+42
-20
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# testing
22
*.exe
33
*.zip
4-
log.txt
4+
˜log.txt
55

66
# build files
77
build/
@@ -13,6 +13,7 @@ intuit
1313
QuickBooks Tool Hub
1414

1515
# misc
16+
.DS_Store
1617
.history/
1718
target/
18-
.DS_Store
19+
earlier_releases/

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22

3-
## v0.21.1
3+
## v0.21.2
4+
- Fix validation bug on local patch files
5+
- Fix bug preventing launch of QuickBooks POS application after installation
6+
- Minor bug fixes
7+
8+
#### v0.21.1
49
- Fix licensing issues for POS v19 ([#30](https://github.com/neuralpain/qbactivator/issues/30)) and custom licenses ([#31](https://github.com/neuralpain/qbactivator/issues/31))
510
- Code refactoring
611

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Activation script for QuickBooks Point of Sale Software on Windows. — [Download Now!][download]
99

1010
> [!CAUTION]
11-
> **DO NOT** clone or download this repository in an attempt to run `qbactivator` (Ref: [#10][issue_10]). Downloading this repository is not necessary to run the script. The source files are not meant to be run individually and `qbactivator` will not run correctly if executed this way.
11+
> **Do not** clone or download this repository in an attempt to run `qbactivator` (Ref: [#10][issue_10]). Downloading this repository is not necessary to run the script. The source files are not meant to be run individually and `qbactivator` will not run correctly if executed this way.
1212
> If you want to run the script, please [read the Wiki][getstarted] to get started using `qbactivator` or proceed to [download the latest release package][release].
1313
1414
### Features
@@ -93,7 +93,7 @@ Licensed under [BSD 2-Clause](LICENSE).
9393
[getstarted]: https://github.com/neuralpain/qbactivator/wiki#getting-started
9494
[update]: https://github.com/neuralpain/qbactivator/wiki#downloads--updates
9595
[instructions]: https://github.com/neuralpain/qbactivator/wiki/How-to-Use
96-
[download]: https://github.com/neuralpain/qbactivator/releases/download/v0.21.1/qbactivator-0.21.1.min.zip
96+
[download]: https://github.com/neuralpain/qbactivator/releases/download/v0.21.2/qbactivator-0.21.2.min.zip
9797
[release]: https://github.com/neuralpain/qbactivator/releases/latest
9898
[powershell]: https://github.com/PowerShell/PowerShell/releases/latest
9999
[updatepowershell]: https://github.com/neuralpain/qbactivator/wiki/Updating-PowerShell

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.21.1
1+
0.21.2

src/main/Main.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ function Invoke-QuickBooksInstaller {
6767
Write-Host -NoNewLine "Verifying `"$exe`"... "
6868

6969
foreach ($hash in $qbHashList) {
70-
$isValid = (Compare-IsValidHash -Hash $hash -File .\$exe)
70+
$isValid = (Compare-IsValidHash $hash .\$exe)
7171
if ($isValid) {
7272
Write-Host "OK"
73-
Get-IntuitLicense -Hash $hash
73+
Get-IntuitLicense $hash
7474
Install-IntuitLicense
7575
break
7676
}

src/main/functions/ClientModuleOperations.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ function Install-ClientModule {
4545
Rename-Item $CLIENT_MODULE "${CLIENT_MODULE}.bak" >$null 2>&1
4646

4747
if (Test-Path "$PATCH_FILE" -PathType Leaf) {
48-
$result = Compare-IsValidHash -Hash $PATCH_HASH -File $PATCH_FILE
49-
if ($result -ne $ERR) { Copy-Item $PATCH_FILE $CLIENT_MODULE }
48+
$isValid = Compare-IsValidHash $PATCH_HASH $PATCH_FILE
49+
if ($isValid) { Copy-Item $PATCH_FILE $CLIENT_MODULE }
5050
else {
5151
Write-Host "`nPatch file may be corrupted."
5252
Get-ClientModule

src/main/functions/Downloader.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ function Start-InstallerDownload {
9696
$estimated_download_time = Get-TimeToComplete $Script:INSTALLER_BITS $Script:BANDWIDTH_BITS
9797
Write-Host "`nDST: $Target`nETC: $estimated_download_time @ $($Script:BANDWIDTH) Mbps" -ForegroundColor White
9898
} else {
99-
Write-Host "`nDST: $Target`nETC: UNKNOWN @ >0.01 Mbps" -ForegroundColor White
99+
Write-Host "`nDST: $Target`nETC: UNKNOWN_DURATION @ >0.01 Mbps" -ForegroundColor White
100100
}
101101

102102
Write-Host "`nEstimated time is calculated from the point that your`ninternet speed was tested. This is just an estimation and`nmay not reflect the actual time that it would take for the`ndownload to complete on your system. This is subject to`nchange as your internet speed fluctuates."
103-
Write-Host "`nPlease wait while the installer is being downloaded.`nThe installer will be satrted automatically after the`ndownload is complete.`n" -ForegroundColor Yellow
103+
Write-Host "`nPlease wait while the installer is being downloaded.`nThe installer will be started automatically after the`ndownload is complete.`n" -ForegroundColor Yellow
104104

105105
$installer_download_path = "$Target\QuickBooksPOSV${Version}.exe"
106106
$installer_download_url = "https://dlm2.download.intuit.com/akdlm/SBD/QuickBooks/${Year}/Latest/QuickBooksPOSV${Version}.exe"

src/main/functions/InformationDisplay.ps1

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function Write-MainMenu {
3333
Write-Host "3 - I have my own license :p"
3434
Write-Host "4 - General QuickBooks activation"
3535
# Write-Host " ^^^^ Pro/Enterprise/Other ^^^"
36+
Write-Host "5 - Terminate QuickBooks Processes"
3637
Write-Host "0 - Exit"
3738
$query = Read-Host "`n#"
3839

@@ -44,12 +45,22 @@ function Write-MainMenu {
4445
Invoke-QuickBooksInstaller
4546
}
4647
3 {
47-
Clear-Host; Write-Host;
4848
Write-LieResponse
4949
Invoke-QuickBooksInstaller
5050
}
51-
4 { Write-Action_OptionUnavailable; Write-MainMenu }
52-
# 4 { Clear-Host; Write-Host; Invoke-Activation -GeneralActivation }
51+
4 {
52+
Write-Action_OptionUnavailable
53+
Write-MainMenu
54+
}
55+
40 {
56+
Clear-Host; Write-Host
57+
Invoke-Activation -GeneralActivation
58+
}
59+
5 {
60+
Clear-Host; Write-Host
61+
Stop-QuickBooksProcesses
62+
Write-MainMenu
63+
}
5364
default { Write-MainMenu }
5465
}
5566
}

src/main/main.cmd

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@title "QuickBooks POS Activator v%uivr%"
1+
@title QuickBooks POS Activator v%uivr%
22
@mode 60,18
33
set "wdir=%~dp0"
44
set "pwsh=PowerShell -NoP -C"
@@ -53,10 +53,15 @@ set "CLIENT_MODULE=%SystemRoot%\Microsoft.NET\assembly\GAC_MSIL\Intuit.Spc.Map.E
5353

5454
:: start quickbooks
5555
echo Starting QuickBooks...
56-
if exist "%QBPOSDIR19%" ( %pwsh% "Start-Process -FilePath '%QBPOSDIR19%'")
57-
else if exist "%QBPOSDIR18%" ( %pwsh% "Start-Process -FilePath '%QBPOSDIR18%'")
58-
else if exist "%QBPOSDIR12%" ( %pwsh% "Start-Process -FilePath '%QBPOSDIR12%'")
59-
else if exist "%QBPOSDIR11%" ( %pwsh% "Start-Process -FilePath '%QBPOSDIR11%'")
56+
if exist "%QBPOSDIR19%" (
57+
%pwsh% "Start-Process -FilePath '%QBPOSDIR19%'"
58+
) else if exist "%QBPOSDIR18%" (
59+
%pwsh% "Start-Process -FilePath '%QBPOSDIR18%'"
60+
) else if exist "%QBPOSDIR12%" (
61+
%pwsh% "Start-Process -FilePath '%QBPOSDIR12%'"
62+
) else if exist "%QBPOSDIR11%" (
63+
%pwsh% "Start-Process -FilePath '%QBPOSDIR11%'"
64+
)
6065

6166
:: export and open minified readme
6267
pushd "%wdir%"
175 KB
Loading

0 commit comments

Comments
 (0)