The forum

How to create a shortcut(launcher) to a no installer exe program

Author Replies
tarata Sunday 15 July 2012 at 8:34
tarataAnonymous

Hi, could someone please help me on creating a shortcut to a simple exe that runs without installation.

When I go through the standard installation method the program opens up at the point where normally installation takes place, then I close the program and complete the installation procedure. However there is no shortcut icon to the program.

Thanks !
petch Sunday 15 July 2012 at 9:15
petch


Configure button > (selection of virtual drive) > General tab > Make a new shortcut from this virtual drive
tarata Sunday 15 July 2012 at 9:43
tarataAnonymous

I've tried that and got an error: binary not found "have you installed the program to the default location ?"

Is that means I have to copy the exe into the wine's default location ?
I thought I could just make a shortcut linking to the exe outside wine's virtual folder
petch Sunday 15 July 2012 at 10:24
petch


That means it must be installed (or copied) inside a virtual drive, yes

Edited by petch

tarata Sunday 15 July 2012 at 10:51
tarataAnonymous

petch, thanks for your help :)

I've also tried WinOnX. It allows to create a shortcut directly linking to a exe outside a virtual drive, however it can't display Japanese font (not a unicode program).

Then there's no other way from copying to inside a virtual drive.

Edited by tarata

Quentin PÂRIS Sunday 15 July 2012 at 11:08
Quentin PÂRISAnonymous

Why do you want your .exe file to be outside of the virtual drive?

We've set that rule so that you can't break your program. We could change it in a future release though if you give a good reason for that :)
tarata Sunday 15 July 2012 at 12:10
tarataAnonymous

Why do you want your .exe file to be outside of the virtual drive?

We've set that rule so that you can't break your program. We could change it in a future release though if you give a good reason for that :)

Quote from Tinou

Because when I make some change to a program's setting (change to .ini for instance),  if a program outputs some files, or it got updated, I don't need to copy them to the original location. And I could keep .exe in an external drive.

If a shortcut could link to .exe outside a virtual drive, that would be very handy :)
Quentin PÂRIS Sunday 15 July 2012 at 15:02
Quentin PÂRISAnonymous

Well, running wine programs from external (fat32) drives can cause problems that wouldn't exist with a normal use. That's why we prefer to disable this feature...
pazuzuthewise Thursday 19 July 2012 at 20:41
pazuzuthewiseAnonymous

This restriction is irritating. It shouldn't be mandatory (please add something like an option that could manually toggle it on/off). I've had no problems at all in earlier versions of playonlinux, when running programs from symbolic links to an ntfs partition.

I'm dual booting with windows, using a large ntfs partition to share data between the OS'es. It is a waste of space to have to copy a program from the ntfs partition (where I need it to be in order to run it from inside windows) to my home directory (to be able to run it from inside linux). Also, I'd like to be able to share between the operating systems the data modified by the respective program, which being saved in it's own folder, shouldn't be a problem if I were able to run it from the ntfs partition.
petch Thursday 19 July 2012 at 21:43
petch

It already exists, open Tools > PlayOnLinux console, then type
POL_Config_Write NO_FSCHECK TRUE
Just don't expect support if something doesn't work.
vekt0r7 Saturday 2 August 2014 at 21:03
vekt0r7Anonymous

I would like to point out that "POL_Config_Write NO_FSCHECK TRUE" doesn't work for me.

This is what I get:

PlayOnLinux Console
-------------------
PlayOnLinux: /home/rosix/.PlayOnLinux > POL_Config_Write NO_FSCHECK TRUE
[POL_Config_Write] Message: Config write: NO_FSCHECK TRUE
PlayOnLinux: /home/rosix/.PlayOnLinux >

Quote

However, upon trying to create a shortcut I still get the same error message:

Error in POL_Shortcut
Binary not found: sm16.exe
Have you installed the program to the default location?

Quote

I have installed a program called SuperMemo 16 to my Dropbox folder ~/Dropbox so I can access it from anywhere. Now I would like to create a shortcut in order make it more convenient to start SuperMemo.

 

At the moment the procedure to open SuperMemo is the following:

1. Start PlayOnLinux

2. Click on the big "Konfigurieren" button

3. Choose the appropriate bottle (named sm16_ie8 after the installed programs)

4. Navigate to "Diverses"

5. Chose "Eine .exe-Datei im virutellen Laufwerk ausführen"

6. Navigate to ~/Dropbox/SuperMemo16/sm16.exe

 

I would be very thankful for ideas on how to make starting SuperMemo a less painful process - ideally through a shell script or a shortcut.

Thank you very much.

Edited by vekt0r7

vekt0r7 Saturday 2 August 2014 at 21:37
vekt0r7Anonymous

All right, this is how I solved it. I looked at the other files in ~/.PlayOnLinux/shortcuts and created my own file there named "Super Memo 16"


#!/bin/bash
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
export WINEPREFIX="/home/rosix/.PlayOnLinux//wineprefix/sm16_ie8"
export WINEDEBUG="-all"
#POL_Log=Super Memo 16
#ScriptID=Super Memo 16
cd "/home/rosix/Dropbox/SuperMemo16"
POL_Wine sm16.exe "$@"

Quote

Now i can enter the following command in the console to start Super Memo:

/usr/share/playonlinux/playonlinux --run "Super Memo 16"

 

Edited by vekt0r7

petch Sunday 3 August 2014 at 1:19
petch

Right, it only disables the check that you're running programs off fully POSIX filesystems (even if it's not totally obvious Wine does not support FAT32 and NTFS those days; Only some implementations seem to lack required features, see "Does Wine run on all Unix filesystems?" in their FAQ)

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com