Archive: redirect APPDATA


redirect APPDATA
I'm working on a launcher for Handbrake and it stores files in APPDATA. Is there any way I can make the launcher tell Handbrake that APPDATA is a different folder? Or, redirect what it stores in the APPDATA folder?


This question should be asked in a Handbrake forum.


Im making a launcher in nsis. The launcher will move the settings and then launch HandBrake. HandBrake has seiitngs in APPDATA and if I can I would like the launcher to tell HandBrake that APPDATA is in the data folder.

HandBrake Portable: folder
+HandBrake: folder that has HandBrake in.
+launcher.exe
+Data: folder
Can that be done?


What I understand from your question is that you want to find out what to change in the HandBrake application in order to make it behave differently. So, like I said, this question should be asked in a Handbrake forum.

Once you know what you want to change and how, we can help you with finding a way to automate that change using NSIS.


I believe he's asking if he can use NSIS to fool Handbrake about the location of APPDATA, not how to change Handbrake so that it looks somewhere else for its settings.

I guess it depends on how Handbrake is getting the location of the APPDATA folder. There are what, a Windows API call, a registry check or an environment variable check it could be using? Determine which of those three it is, then a solution can be made.


You can use a batch file to use the 'set' command to set %APPDATA% to a different directory, then launch Handbrake from the same batch file so Handbrake will inherit it from the command prompt, and the system APPDATA will remain unaltered and won't stick after it's done.

set APPDATA=C:\something