Vista: Executing exe-files from archives does not work

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
chill
Junior Member
Junior Member
Posts: 3
Joined: 2007-02-22, 22:02 UTC
Location: Germany
Contact:

Vista: Executing exe-files from archives does not work

Post by *chill »

With Vista it's not possible to execute a programm from within an archive (zip in my case). TotalCommander asks for "unpack and execute" as usual. After unpacking the message "file not found" appears.

Other file types have no problems. So I can view images or text files from archives.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48124
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I can think of two possible reasons:

1. Where is your TEMP variable pointing? I guess that it points to an invalid location.

2. What file type? Can you try with a different file type, e.g. a TXT or even an EXE file? Vista seems to make a mess with associations.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

I cannot reproduce the problem here on Vista where I can execute programs from archives without problems.
chill
Junior Member
Junior Member
Posts: 3
Joined: 2007-02-22, 22:02 UTC
Location: Germany
Contact:

Post by *chill »

Updated Bug-Description:

It seems to happen only on programs which causes the Vista UAC dialog to appear. Mostly this happens on setups and installers.

My TEMP-var is ok. It points to the usual location in my user dir.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48124
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed the UAC dialog isn't currentls supported by WinExec, which is used in this function.

2Lefteous
You said that WinExec supports UAC dialogs in your tests, but this wasn't the case in my tests. Can you test this again, please?

Just put the TC installer in a ZIP and try to start it from there while logged in as administrator with restricted rights on Vista.
Do you get the UAC dialog?
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
You said that WinExec supports UAC dialogs in your tests, but this wasn't the case in my tests. Can you test this again, please?
Yes it still works when I call WinExec directly in a test app.
Just put the TC installer in a ZIP and try to start it from there while logged in as administrator with restricted rights on Vista.
Do you get the UAC dialog?
No in this case I can actually confirm the "file not found" message. Other apps work fine when started from an archive though. I don't understand the problem here. TC extracts the file frm the archive and then executes it. If should work in the same way as direct execution.
chill
Junior Member
Junior Member
Posts: 3
Joined: 2007-02-22, 22:02 UTC
Location: Germany
Contact:

Post by *chill »

It seems you have fixed this in TC7 RC1. I just tested it and now I can start programs with UAC-Dialogs from archives without problems.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48124
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Nice to hear that, thanks for your feedback!
Author of Total Commander
https://www.ghisler.com
Post Reply