The MASM Forum

Microsoft 64 bit MASM => MASM64 SDK => Topic started by: jj2007 on July 06, 2023, 08:14:16 AM

Title: Installing the Masm64 SDK
Post by: jj2007 on July 06, 2023, 08:14:16 AM
I just made a fresh install of the Masm64 SDK downloaded it here (https://masm32.com/board/index.php?topic=10052.0). The installer Jan_20_2023.exe has 8.5MB.

Download it. Windows will try everything to scare you away from running it. Read the legal stuff, and then decide if you want to become a fearless Assembly programmer, or if it's better to stick to C/C++ or Python.

In case you are courageous enough to run Jan_20_2023.exe:
When asked where to extract, put C:\ or D:\ or whatever your MASM drive is. Do not add a folder name.

Afterwards, you'll find a folder x:\Masm64 containing 34.5MB of files.

The only additional ingredient you need is ml64.exe: Download VC.14.29.16.11.Tools.HostX86.TargetX64 (https://download.visualstudio.microsoft.com/download/pr/a5caea7c-7f6b-4d48-9b80-c77732421206/62abc41e56191faaa597d3cb32814199a874ff06092c8dfe5608a2c857065864/Microsoft.VC.14.29.16.11.Tools.HostX86.TargetX64.base.vsix) (thanks, Timo); it's a small 15MB download. Open it with 7-zip, and inside the archive click your way through:

Contents->VC->Tools->MSVC->14.29.30133->bin->Hostx86->x64

Find ml64.exe and drag it into your \Masm64\bin folder.

I've tested a number of the sources in x:\Masm64\Examples.
When you open the *.asm file in RichMasm (http://masm32.com/board/index.php?topic=94.0) and hit F6, they assemble and run smoothly (and you don't need the makeit.bat). If not, give me feedback, please.

P.S.: If I find the time, I will try to develop a solution that makes the SDK compatible with UAsm (http://www.terraspace.co.uk/uasm.html#p2). This may take a while, though :cool:
Title: Re: Installing the Masm64 SDK
Post by: Caché GB on July 06, 2023, 09:03:11 AM
Finally.  :joking:
Title: Re: Installing the Masm64 SDK
Post by: jj2007 on July 07, 2023, 04:52:53 AM
I've added the best solution to find ML64.exe above.
Title: Re: Installing the Masm64 SDK
Post by: DeviousMalcontent on July 07, 2023, 09:55:42 AM
Quote from: jj2007 on July 06, 2023, 08:14:16 AM
I just made a fresh install of the Masm64 SDK downloaded here (https://masm32.com/board/index.php?topic=10052.0). The installer Jan_20_2023.exe has 8.5MB.

Download it. Windows will try everything to scare you away from running it. Read the legal stuff, and then decide if you want to become a fearless Assembly programmer, or if it's better to stick to C/C++ or Python.


It's a bit silly actually, I was trying to get the damn thing download it several times onto my main Windows PC, but Firefox kept bloody removing it, even after I told it that it was fine to download, or it was caused by Windows Defender, which is an exercise in futility to disable, because even with that it was still being flagged and removed by... 'something'.

I honestly don't have any antivirus on my PC whatsoever, and I haven't since the days of AVG free before they started selling users information.

All this is to say, I think the main reason the file is being flagged is because it has a generic name "Jan_20_2023.exe", without knowing what it is it's possible someone created something very similar that actually was a virus, I reckon to overcome this issue what we should do is distribute the SDK in a zip file, (or move it to an open git repository like GitLab), and rename it to be something more meaningful like Masm64SDKver, nearly every version of Windows ships with some software to extract zip files with, so I think the use of a self-extract is unnecessary.

I managed to get around the issue by downloading the SDK onto my MacBook, with Firefox, and yes it was flagged there as well, but after copying it over to a flash drive my main Windows PC didn't seem to care...  :cool:
Title: Re: Installing the Masm64 SDK
Post by: jj2007 on July 07, 2023, 10:10:38 AM
Here is a test, it works fine for me but no idea if your OS+settings allow it:

include \masm32\MasmBasic\MasmBasic.inc
  Init
  Let esi=FileRead$("http://www.masm32.com/download/Jan_20_2023.exe")
  FileWrite "Jan_20_2023.exe", esi, LastFileSize
  Launch "Jan_20_2023.exe"
EndOfCode


Exe and source attached, use at your own risk bla bla: just open the archive and double-click on the exe.
Title: Re: Installing the Masm64 SDK
Post by: zedd151 on July 07, 2023, 10:25:29 AM
Werks fer mi. Of course I'm running Windows 7 and zero AV. Very fast download, no browser overhead.  :tongue:


Title: Re: Installing the Masm64 SDK
Post by: DeviousMalcontent on July 07, 2023, 10:57:55 AM
Quote from: jj2007 on July 07, 2023, 10:10:38 AM
Here is a test, it works fine for me but no idea if your OS+settings allow it:

include \masm32\MasmBasic\MasmBasic.inc
  Init
  Let esi=FileRead$("http://www.masm32.com/download/Jan_20_2023.exe")
  FileWrite "Jan_20_2023.exe", esi, LastFileSize
  Launch "Jan_20_2023.exe"
EndOfCode


Exe and source attached, use at your own risk bla bla: just open the archive and double-click on the exe.

I'll have to give it a go when I get home tonight, I did try doing something similar with a PowerShell command, and it was still being removed (but I'll check again, because my memory is a bit iffy on that testing).

I know if I trigger the antivirus scanner at work it launches an investigation, so I'll check your attachment when I get home tonight, in the next 4-5hours or so.
Title: Re: Installing the Masm64 SDK
Post by: jj2007 on July 07, 2023, 11:07:57 AM
See Grab the 64-bit binaries (ML64.exe, link.exe) (https://masm32.com/board/index.php?topic=10934.0) :cool:
Title: Re: Installing the Masm64 SDK
Post by: jj2007 on July 07, 2023, 06:39:36 PM
Notice anything wrong?
    include \masm32\include64\masm64rt.inc

These files are affected:
\Masm64\Examples\Advanced\NewButns\lib\iButton.asm
\Masm64\Examples\Advanced\MBwin\Original\rsrc.rc
\Masm64\Examples\Advanced\MBwin\Original\MBwin.asm
\Masm64\Examples\Advanced\tEdit\Modules\is_selected.asm
\Masm64\Examples\Advanced\tEdit\Modules\set_ucase.asm
\Masm64\Examples\Advanced\tEdit\Modules\set_lcase.asm
\Masm64\Examples\Advanced\tEdit\Modules\tab_replace.asm
\Masm64\Examples\Advanced\tEdit\Modules\current_line_index.asm
Title: Re: Installing the Masm64 SDK
Post by: piton on September 23, 2024, 04:34:55 PM
Hello

Is there masm64 sdk in non self-extracted archive, i.e. non exe file? Maybe it sounds funny, but there is a problem to download or email an exe file. After some tries i have to disable windows security to finally download an exe from browser.
Another question - is it ok to place sdk packed by simple zip on my github (with description where i got it)?
Title: Re: Installing the Masm64 SDK
Post by: zedd151 on September 23, 2024, 05:40:46 PM
I cannot offer help with Windows security settings, or any antivirus program that may be preventing you from downloading. What operating system are you using, maybe someone else can assist you with that. Are you running any third party antivirus software? If yes, what company/brand is it? Sometimes antivirus software will prevent you from downloading certain types of files.

Quote from: piton on September 23, 2024, 04:34:55 PMAnother question - is it ok to place sdk packed by simple zip on my github (with description where i got it)?
If you are talking about posting the contents of the Masm64 SDK to your GitHub, the answer is NO

If you are talking about posting to GitHub your work that was made with The Masm64 SDK, the answer to that is YES - you can do as you see fit with it - it is your work.
Title: Re: Installing the Masm64 SDK
Post by: piton on September 26, 2024, 01:29:39 AM
QuoteI cannot offer help with Windows security settings, or any antivirus program that may be preventing you from downloading.
it's not a really big deal for me to disable some software for a while. But as for a masm 32 SDK i can just post a link to the download page and there will be the obvious zip file. And for masm 64 there is no download page (ok, it is beta now) and there is an exe file in the forum's post. It is an extremelly usefull thing for 64 masm. But you need to download a self-extracted exe instead of zip. And maybe play with your antivirus/browser/windows. And, yes, i did it already but i'm unable to place its content, so everyone interested have to do it.
Why so complicated? Or this is some kind of trial to get 'fearless Assembly programmers', not hard, but you have to do something :biggrin:
Title: Re: Installing the Masm64 SDK
Post by: zedd151 on September 26, 2024, 01:41:29 AM
Quote from: piton on September 26, 2024, 01:29:39 AMAnd, yes, i did it already but i'm unable to place its content
Are you getting any error messages?? If so, what exactly does it say? This will help track down why the installation is not working.

Or is nothing happening at all??

I just tested downloading the self extracting executable, it downloaded without issues.
I also ran the self extracting executable. It extracted the masm64 SDK exactly in the path I had chosen, in my case it is in D: (the root of drive D).
I am running WIndows 7 64 bit, using Opera Browser (ver. 95.0.4635.84).

What OS and which browser are you using, piton??
Title: Re: Installing the Masm64 SDK
Post by: piton on October 02, 2024, 01:51:48 AM
Hi, zedd151
Thanks for your effort, i already downloaded it, after some tries though.
Title: Re: Installing the Masm64 SDK
Post by: zedd151 on October 02, 2024, 02:01:02 AM
Quote from: piton on October 02, 2024, 01:51:48 AMThanks for your effort, i already downloaded it, after some tries though.
:thumbsup:
Title: Re: Installing the Masm64 SDK
Post by: jj2007 on October 02, 2024, 02:29:21 AM
Quote from: piton on September 26, 2024, 01:29:39 AMBut you need to download a self-extracted exe instead of zip.

Show me one professional software that comes with a zip archive instead of an installer.
Title: Re: Installing the Masm64 SDK
Post by: zedd151 on October 02, 2024, 04:53:03 AM
Quote from: jj2007 on October 02, 2024, 02:29:21 AMShow me one professional software that comes with a zip archive instead of an installer.
The original version of the masm64 SDK download was a zip file "masm64v01.zip". https://masm32.com/board/index.php?topic=5669.0 (https://masm32.com/board/index.php?topic=5669.0)   :smiley:
Title: Re: Installing the Masm64 SDK
Post by: NoCforMe on October 02, 2024, 07:08:15 AM
You're calling that professional???
Title: Re: Installing the Masm64 SDK
Post by: zedd151 on October 02, 2024, 07:17:39 AM
Quote from: NoCforMe on October 02, 2024, 07:08:15 AMYou're calling that professional???

Nah, just mentioning that the original Masm64 SDK download was in fact a zip file, and not a self extracting archive.   :biggrin:
Title: Re: Installing the Masm64 SDK
Post by: piton on October 02, 2024, 07:08:52 PM
Quote from: jj2007 on October 02, 2024, 02:29:21 AMShow me one professional software that comes with a zip archive instead of an installer.
ILSpy has zip, vsix and msi https://github.com/icsharpcode/ILSpy/releases (https://github.com/icsharpcode/ILSpy/releases)
Process monitor just a zip file https://learn.microsoft.com/en-us/sysinternals/downloads/procmon (https://learn.microsoft.com/en-us/sysinternals/downloads/procmon)
The MASM32 SDK just a zip file as well
Standalone software doesnt need an installer, you just copy bunch of files to some folder and use it.