You are here

%Temp partitition/folder is not ready

6 posts / 0 new
Last post
baniaczek
Offline
Last seen: 3 years 6 months ago
Joined: 2008-07-12 15:54
%Temp partitition/folder is not ready

Requirements:
- Windows 7 64
- Fast filesystem (I'm using Samsung Evo 960 PCIe drive)
- Start,exe located on fast filesystem
- user is automatically logging in after system startup
- shortcut to start.exe is added to startup folder: C:\Users\[user]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
- I'm using RamDisk: ImsDisk or SoftPerfect. Unfotunatelly - it is not a service, but program executed from HKLM\Software\Microsoft\CurrentVersion\Run
- RamDisk automatically mounts RAM drive, let's say T: and then creates T:\Temp folder
- Env vars %Temp and %Tmp both point to T:\Temp

---------

Scenario:
System starts, user logs in, Start.exe is executed while T: partition is not ready yet or Folder %Tmp does not exist yet

PortableApps platform displays error messages (it depends):

Using ImsDisk - a bit slower startup:
Error 1050 (I'm not sure if I remember the number correctly) - error reading parttion
alternatively: Error 78

Using SoftPerfect 3.5.8 - a bit faster:
"Folder pointed by %Tmp does not exist"

-------------

Solution: It was enough to delay start of PortableApps platform for 1 second.

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 6 min ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Valid TEMP

As a general rule, it's a bad idea to start any piece of software without a valid TEMP directory. The platform specifically checks for it as otherwise a ton of your portable apps will fail in random ways without telling you why.

Sometimes, the impossible can become possible, if you're awesome!

baniaczek
Offline
Last seen: 3 years 6 months ago
Joined: 2008-07-12 15:54
For sure. But a few

For sure. But a few milliseconds later %Temp folder becomes valid

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 6 min ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
How would it know?

How would the platform know that TEMP would work a second or two later?

Sometimes, the impossible can become possible, if you're awesome!

baniaczek
Offline
Last seen: 3 years 6 months ago
Joined: 2008-07-12 15:54
Don't exit immediately in

Don't exit immediately in case of error / %temp folder does not exist, just wait up to one second

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 6 min ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Wait To Launch

As this hasn't come up before, I don't think this is a common issue. As you know not to launch any apps until your custom TEMP solution is running, I would suggest you do as you do now and wait at least 1 second before launching any apps.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments