Skip to content

further fixes for in installer batch script when NASM or its installer files are already present on the machine.#30

Merged
Sibras merged 1 commit intoShiftMediaProject:masterfrom
GerHobbelt:path2
Mar 1, 2025
Merged

further fixes for in installer batch script when NASM or its installer files are already present on the machine.#30
Sibras merged 1 commit intoShiftMediaProject:masterfrom
GerHobbelt:path2

Conversation

@GerHobbelt
Copy link
Contributor

As per the commit message, the fixes:

  • typo fix in comment
  • At least on some Win10 machines, attempting to execute a non-existent "%NASMPATH%\nasm.exe" will cause the subsequent %ERRORLEVEL% equ 0 check to pass inadvertently, hence we MUST first check whether the indicated nasm.exe exists, truly, before running this version test/check in the installer batch script.
  • At least on Win10, when NASM had already been previously installed using the standard Windows NASM installer application, the path to the nasm.exe WILL contain spaces (C:/Program Files...) and we must make sure our installer batch script correctly deals with this scenario, requiring paths to be surrounded by " double quotes.
  • Expanded the error/progress messages in the installer batch script a bit to make them more useful and legible when the NASMPATH environment variable has not been set up or is (probably erroneously) empty: now at least one of the installer progress messages allows the user to diagnose this scenario.

These fixes were necessary to complete the installer script when the NASM files were already present/installed on two fresh Win10 dev machine installs (thanks to a catastrophic failure, I had to install everything from scratch and our in-house procedure already fetched the latest NASM binary before we got to the stage where we installed VSNASM. (Redacted) sysinfo:


OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.19045 N/A Build 19045
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
System Manufacturer:       ASUS
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: AMD64 Family 23 Model 113 Stepping 0 AuthenticAMD ~3600 Mhz
BIOS Version:              American Megatrends Inc. 2803, 28/04/2022
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume3
System Locale:             en-us;English (United States)
Input Locale:              en-us;English (United States)
Time Zone:                 (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
Total Physical Memory:     130.956 MB
Available Physical Memory: 81.995 MB
Virtual Memory: Max Size:  150.412 MB
Virtual Memory: Available: 99.856 MB
Virtual Memory: In Use:    50.556 MB
Page File Location(s):     C:\pagefile.sys
Hotfix(s):                 9 Hotfix(s) Installed.
                           [01]: KB5049621
                           [02]: KB5007401
                           [03]: KB5011048
                           [04]: KB5015684
                           [05]: KB5019180
                           [06]: KB5026037
                           [07]: KB5051974
                           [08]: KB5050388
                           [09]: KB5050111
Network Card(s):           5 NIC(s) Installed.
Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.

Plus latest MSVC2022 version installed (Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.13.1)

- typo fix in comment
- At least on some Win10 machines, attempting to execute a *non-existent* `"%NASMPATH%\nasm.exe"` will cause the subsequent `%ERRORLEVEL% equ 0` check to **pass** inadvertently, hence we MUST first check whether the indicated nasm.exe exists, truly, before running this version test/check in the installer batch script.
- At least on Win10, when NASM had already been previously installed using the standard Windows NASM installer application, the path to the nasm.exe WILL contain spaces (`C:/Program Files...`) and we must make sure our installer batch script correctly deals with this scenario, requiring paths to be surrounded by `"` double quotes.
- Expanded the error/progress messages in the installer batch script a bit to make them more useful and legible when the `NASMPATH` environment variable has not been set up or is (probably erroneously) *empty*: now at least one of the installer progress messages allows the user to diagnose this scenario.
@GerHobbelt
Copy link
Contributor Author

I believe this also takes care of #28, BTW.

@Sibras Sibras merged commit 3f1ce73 into ShiftMediaProject:master Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants