Striker___ Posted September 4, 2009 Share Posted September 4, 2009 (edited) HelloI have a application that I use 2 different versions of and it uses the same config file that is located at Application Data\ApplicationName\config.iniThe problem is that some settings disappears when switching between the different versions and I have not been able to find a parameter that can make it to use a different config.iniIs it possible to "fool" a program to use a custom Application data folder?So i could make it use Application Data\ApplicationName\versionX\config.ini where "X" is the versionIf it makes any difference the application is Ventrilo Edited September 4, 2009 by Striker___ Link to comment Share on other sites More sharing options...
DigeratiPrime Posted September 4, 2009 Share Posted September 4, 2009 One way could be to use Run As with two different user accounts for each instance of the program.There are launchers that override API calls and can redirect the paths for a process.For example: http://portableapps.com/Typically created with NSIS http://nsis.sourceforge.net/Main_PageAnother is application virtualization software such as App-V or ThinApp.http://www.microsoft.com/systemcenter/appv/default.mspxhttp://www.vmware.com/products/thinapp/ Link to comment Share on other sites More sharing options...
MHz Posted September 5, 2009 Share Posted September 5, 2009 An example CMD script to show changing of an environmental variable which the program will normally inherit.setlocalset appdata=%userprofile%\desktopstart notepad.exeendlocalrem Use save in notepad and save as %appdata%\test.txtrem You will then notice the file test.txt saved on your desktoprem Programs will normally inherit the environment passed to themrem Use admin privilages to start the script if needed Link to comment Share on other sites More sharing options...
Striker___ Posted September 5, 2009 Author Share Posted September 5, 2009 (edited) DigeratiPrimeApp-V & ThinApp looks a bit to complicated to use for what Im after but i will look in to PortableApps.com and see if its possible to use.I also like the idea of having both versions in the same "launcher" as Im currently using something similar for that and it would be great if it could solve my problem and be the launcher at the same time.MHzfor some reason Ventrilo just ignores this and uses the config file from its regular pathThank you both for your quick answers Edited September 5, 2009 by Striker___ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now