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.
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!
For sure. But a few milliseconds later %Temp folder becomes valid
How would the platform know that TEMP would work a second or two later?
Sometimes, the impossible can become possible, if you're awesome!
Don't exit immediately in case of error / %temp folder does not exist, just wait up to one second
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!