Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For a system we are deploying for our customer we need to run the setup executable from %temp% and have it use for the installation, files in another directory. This cannot be solved at the application level. So, basically what I need it to somehow "cheat" the setup.exe located at %temp% to think it ran under another directory.

Any ideas? I tried doing pushd & popd, that doesn't work because the OS tries to call setup.exe from the data files' directory, not setup.exe. I also tried calling setup.exe by running a bat from the data files directory, that basically calls it by doing:



cd %temp%

also failed

share|improve this question
have you tried cd %workingdir% \%temp%\setup.exe ? – DrNoone Jan 27 '14 at 19:21
This seems like a programming question. This can be solved by using system variables. What version of Windows? Solutions will be different across certain versions. – Ramhound Jan 27 '14 at 20:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.