Trust No Program
Reply to topic
Error - Shortcuts on desktop don't work
WHills


Joined: 21 Jun 2012
Posts: 5
Reply with quote
Hello, I just joined. I've been using Sandboxie for a long time but this is the first time I'm facing a problem. It has started after a reinstall of Windows (XP SP3, 32 bit). I've tried clearing the sandbox, deleting it, stopping and starting the service from "services.msc" and installing the latest version.

The problem is that every time I click on the desktop shortcut of any program and try to run it sandboxed, I get the message

Could not invoke program:

"C:\Documents and Settings\All Users\Desktop\Program.lnk"

System Error Code:

%1 is not a valid Win32 application
(193)

This happens even when I try to run the sandboxed web browser by clicking the shortcut on the desktop. This happens with all programs on the desktop, but if I go to the Program Files folder and run it from there, the program runs sandboxed.

There is only one user on this computer, and the account is an administrator account.

So how do I solve this problem?

Smile
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
How about if you right-click on the link and select "send to" and then select a sandbox?

_________________
tzuk
View user's profileSend private message
Guest10


Joined: 27 Apr 2008
Posts: 4348
Location: Ohio, USA
Reply with quote
This type of error has been caused by the lack of double-quotes around a path that contains a <space> character in it.
"Documents and Settings" would fit that description, because of the spaces in the folder name.

If the shortcuts on the Desktop work normally for you, but they do not work with the Run Sandboxed command, then the first thing that I would do is check the Run Sandboxed entry in the Registry, to verify that it is correct.
I don't see how it could not be correct, but use the Registry Editor and look at:
HKEY_CLASSES_ROOT\*\shell\sandbox\command

Does it match this exactly:
"C:\Program Files\Sandboxie\Start.exe" /box:__ask__ "%1" %*

especially the "" around %1

One other thing:
Have you used Windows Update to update your new install of XP?
I vaguely remember having this problem with XP years ago.
A recent install of XP as a VirtualBox Guest OS didn't have this problem, but I also spent a lot of time getting the updates for XP, using Windows Update, before I really started using it.
Some update may have fixed this problem.

_________________
Paul
XP Pro SP3 (Admin rights), Zone Alarm Pro Firewall, Malwarebytes Pro, Firefox 21, Thunderbird 17
View user's profileSend private message
WHills


Joined: 21 Jun 2012
Posts: 5
Reply with quote
It happens even if I use send to.

Guest10 wrote:
If the shortcuts on the Desktop work normally for you, but they do not work with the Run Sandboxed command, then the first thing that I would do is check the Run Sandboxed entry in the Registry, to verify that it is correct.
I don't see how it could not be correct, but use the Registry Editor and look at:
HKEY_CLASSES_ROOT\*\shell\sandbox\command

Does it match this exactly:
"C:\Program Files\Sandboxie\Start.exe" /box:__ask__ "%1" %*

especially the "" around %1



The shortcuts run normally but the problem occurs when I try to run the shortcuts sandboxed. I checked the registry entry, its exactly as you've said it should be. There's a "" around %1

I did update after installing. But this is something I always do: every two months or so, I reinstall the ghost image, and then update Windows. This is the first time the problem has happened.

Any other way to get around this? The only thing that is different this time is that all this time I was using Nod32 as AV, now its Bitdefender. There's also Comodo firewall, which has its own sandbox, but I've disabled that, and I've been using that for quite some time without any sandboxie problems.
View user's profileSend private message
Guest10


Joined: 27 Apr 2008
Posts: 4348
Location: Ohio, USA
Reply with quote
You could rule out BitDefender as the cause, but you would have to temporarily uninstall it and see if things work.
Trying to disable something like that, without actually uninstalling it, doesn't seem to work.
View user's profileSend private message
WHills


Joined: 21 Jun 2012
Posts: 5
Reply with quote
I disabled Bitdefender but to no avail. Also, I updated XP again, looks like there was some update was remaining to be installed. After this, the problem has got partially solved. Now, when I double click the Sandboxed Web Browser icon on the desktop, the default browser does open sandboxed. But the desktop shortcuts still don't open sandboxed, I have to go to the Program Files folder and open them from there.
View user's profileSend private message
Helper


Joined: 01 Mar 2012
Posts: 122
Reply with quote
So shortcuts that are on your Desktop work normally when you double-click them, but not when you right-click and choose "Run Sandboxed"?

Truthfully, this isn't likely to help - but it's easy to do and it's something to try:
Force Sandboxie Control to rebuild the "Run Sandboxed" entries in the Registry.
Sandboxie Control tray icon > Configure > Windows Shell Integration
UN-check the two "Run Sandboxed Actions" check boxes, at the bottom of the screen.
Click OK

Go back there and check those two boxes again.
OK


I found this when searching the forum messages for the same error message.

Since this is a new XP install, do you have:
HKEY_CLASSES_ROOT\lnkfile
IsShortcut

as a string data, type REG_SZ

NOT:
HKEY_CLASSES_ROOT\.lnk
View user's profileSend private message
WHills


Joined: 21 Jun 2012
Posts: 5
Reply with quote
Helper wrote:

Since this is a new XP install, do you have:
HKEY_CLASSES_ROOT\lnkfile
IsShortcut

as a string data, type REG_SZ

NOT:
HKEY_CLASSES_ROOT\.lnk


Tried the Windows shell integration but didn't work.

In the registry, in HKEY_CLASSES_ROOT, the lnkfile entry has three entries
(Default), type is REG_SZ, Data is "Shortcut"
EditFlags, type is REG_DWORD, Data is some 0x00 numbers
NeverShowExt, type is REG_SZ, no data

Within the lnkfile entry, there's a um.. folder called "shellex", with entry
(Default), type is REG_SZ, data is "(value not set)"
There are four other folders in this folder, one's Teracopy which I use, but there's no sandboxie entry anywhere.
View user's profileSend private message
Helper


Joined: 01 Mar 2012
Posts: 122
Reply with quote
The post that I found in the forum said that the IsShortcut entry was missing from their Registry key, and that creating it fixed their problem. Unfortunately, there were multiple posts in that thread and I can't be sure that the original poster's problem was solved, even though it sounded like yours.

What I can be sure of is that I don't have any problem, and my Registry Key looks like this:


Whether it will help you or not, I can't say. But that's what I have and at least it doesn't hurt anything.
View user's profileSend private message
WHills


Joined: 21 Jun 2012
Posts: 5
Reply with quote
I have the IsShortcut entry. But your lnkfile has three folders, "CLSID", "shell", and "shellex", while mine doesn't have "shell" (in My Computer\HKEY_CLASSES_ROOT\lnkfile).

Can you paste a screenshot of that one, with its contents?

Thanks for the replies so far.
View user's profileSend private message
Helper


Joined: 01 Mar 2012
Posts: 122
Reply with quote
There's nothing much in that one.

photo hosting
View user's profileSend private message
Error - Shortcuts on desktop don't work
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

Use the RSS feed to watch this topic for replies
  
  
 Reply to topic  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 208,259,534 times since June 2004