Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:

%temp%\setup.exe

doing:

cd %temp%
setup.exe

also failed

share|improve this question
1  
have you tried cd %workingdir% \%temp%\setup.exe ? –  DrNoone Jan 27 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 at 20:18

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.