Your program might require some environment variable to be set properly in order to run successfully. In this case you need to set this environment variable in the Linux shell, since Wine will pass on the entire shell environment variable settings to the Windows environment variable space. Example for the bash shell (other shells may have a different syntax !):
export MYENVIRONMENTVAR=myenvironmentvarsetting |
Note however that there are some exceptions to the rule: If you want to change the PATH, SYSTEM or TEMP variables, the of course you can't modify it that way, since this will alter the Unix environment settings. Instead, you should set them into the registry. To set them you should launch wine regedit and then go to the
HKEY_CURRENT_USER/Environment |
"System" = "c:\\windows\\system" |
"Temp" = "c:\\temp" |
"Path" = "c:\\windows;c:\\windows\\system;c:\\blanco" |
PATH setting on UNIX
boxes. When wine is run like wine
sol.exe, if sol.exe
resides in a directory specified in the
Path setting, wine will run it (Of
course, if sol.exe resides in the
current directory, wine will run that one). Make sure it
always has your windows directory and
system directory (For this setup, it must have
"c:\\windows;c:\\windows\\system").