Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ale211734

macrumors newbie
Original poster
Nov 21, 2017
4
0
Hello,
i need to create a compress zip executable .exe for windows from mac.
The file .exe its a autoextracting archive that lunch one application.
The .exe should be executed only on windows platform. I would like create it on mac.
Now on windows, I use winrar to do it with the command:

ztestSFX.txt
setup=%appdata%\Luncher.exe
path="%appdata%\test\"
silent=1
Overwrite=1

WinRar a caso5051-2 caso5051-2 -sfx -iiconeye2.ico -ztestSFX.txt
 
You could try running a VM in paralllels, or Fusion....or maybe run winzip in Crossovers...
 
I found some steps for making an .exe that will launch on both a Mac, and Windows.
However, I don't think that is the same as making a self-extracting .exe that you would only use on Windows, and make that .exe using a Mac app.

If you want to do Windows things like "making a Windows .exe that will be used only on Windows", then why not make the process easy, and use Windows for that? There's several different solutions for using Windows, or using Windows .exe.
Some use a VM.
Something like Wine, or Crossover does not use a VM.
Maybe someone can tell you for sure if you can create a self-extracting .exe with Crossover.

Or, there's always your Boot Camp assistant, which lets you create a full Windows install, bootable on a separate partition.
 
  • Like
Reactions: kohlson
I suppose my simple question is, how do you know this works, without a Windows platform?
 
Last edited:
  • Like
Reactions: DeltaMac
I will try it on another pc with windows platform. My file should be clean from windows virus.
This is the reason because I want avoid to use a VM that can be infected by windows virus.
 
If you are really worried about viruses the best solution would still be a VM. Install a fresh copy of Windows with the VM's network adaptor disabled. Create a snapshot, then install WinRAR by copying a clean copy to the VM from your Mac, create your .exe and copy it back to your Mac. You can then shutdown the VM without saving changes and you'll always have a fresh virus free Windows install. This solution carries the same risk from viruses as creating the exe on your Mac, which I'm not sure is possible.
 
  • Like
Reactions: neliason
StuffIt Deluxe can create self extracting exe files, though I have no idea if one can implement a special launching path.
 
If you are really worried about viruses the best solution would still be a VM. Install a fresh copy of Windows with the VM's network adaptor disabled. Create a snapshot, then install WinRAR by copying a clean copy to the VM from your Mac, create your .exe and copy it back to your Mac. You can then shutdown the VM without saving changes and you'll always have a fresh virus free Windows install. This solution carries the same risk from viruses as creating the exe on your Mac, which I'm not sure is possible.

If you are really worried about viruses the best solution would still be a VM. Install a fresh copy of Windows with the VM's network adaptor disabled. Create a snapshot, then install WinRAR by copying a clean copy to the VM from your Mac, create your .exe and copy it back to your Mac. You can then shutdown the VM without saving changes and you'll always have a fresh virus free Windows install. This solution carries the same risk from viruses as creating the exe on your Mac, which I'm not sure is possible.


It's not a bad solution, but its possibile I would like some script and automatize the process to create the self extractor file.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.