Install a "Portable" Windows Executable

Questions about Wine on Linux
Locked
KnightFire
Newbie
Newbie
Posts: 1
Joined: Thu Aug 06, 2020 12:46 pm

Install a "Portable" Windows Executable

Post by KnightFire »

Hello super noob here,

Just installed wine 5 stable on Mint 20 and am trying to install a "portable" windows executable that uses its own local directory full of DLLs. It's "portable" and thus has no installer.

Please Help. T.I.A.

PS, I'm posting as the search wants me to wait for like 2000+ seconds.

- -
Matt
🇨🇦
fargodwe

Re: Install a "Portable" Windows Executable

Post by fargodwe »

I believe you actually have to install a program in wine. You can't just say "execute this file", at least not that I know of. If the folder of dll's are not "standard", that being what is created when you create a wine prefix, they would need to be copied into a wine prefix and possibly registered in wine. As far as I know there is no way of running a windows program in wine without a wine prefix and the program installed or copied to it,

What you wanting to run?
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: Install a "Portable" Windows Executable

Post by spoon0042 »

In theory it should just work: in a terminal 'cd' to the directory and then 'wine program.exe' (or with the path to wine if needed). If things work then you can make a shortcut or menu entry or whatever.

One possible issue is if any dlls are ones wine implements then by default wine's will be used. I think. Don't worry about it though if it works.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Install a "Portable" Windows Executable

Post by Bob Wya »

@KnightFire,

See: WineHQ User's Guide: 3.1.1 How to run Windows programs from the command line.
See: WineHQ FAQ: 6.5 Wineprefixes.

I'd generally recommend moving the portable executable into the root directory of the WINEPREFIX you are going to use, and then running it from there.
E.g. if using the default WINEPREFIX:

Code: Select all

mv ~/Downloads/portable.exe ~/.wine/drive_c/
wine start 'C:\portable.exe'
Bob
Locked