Ben.Hahlen Posted May 6, 2004 Share Posted May 6, 2004 Hey Guuz,I've been playing around with this stuff as well, because like you, I would like to have my apps on a different partition.Maybe this is not what your looking for, but it will save you a lot of work:Switches for the installation folder:MSI:msiexec /i Setup.msi INSTALLDIR="D:\Folder" /qnMight not always work.NSIS:Setup.exe /S /D="D:\Folder"case sensitive!Inno Setup:Setup.exe /VERYSILENT /DIR="D:\Folder"InstallShield:Either extract the msi or record the setup with /rWise:?Found it hereThis works with most of the apps for me Good luck,Greetz,Ben Link to comment Share on other sites More sharing options...
GuuZ Posted May 6, 2004 Author Share Posted May 6, 2004 Well I'll give it a shot tonight. Thanx for your reply Link to comment Share on other sites More sharing options...
ZoSTeR Posted May 6, 2004 Share Posted May 6, 2004 This won't work:SET PF1=%ProgramSET PF2=Files%RRC Search /data /text="%%PF1%%PF2%%" /replace="C:\Program Files" /nopromptJust use:RRC search /text="%%ProgramFiles%%" /replace="C:\Program Files" /data /nopromptas mentioned before.In a batch file %% resolves to % Link to comment Share on other sites More sharing options...
RyanVM Posted May 6, 2004 Share Posted May 6, 2004 This won't work:SET PF1=%ProgramSET PF2=Files%RRC Search /data /text="%%PF1%%PF2%%" /replace="C:\Program Files" /nopromptJust use:RRC search /text="%%ProgramFiles%%" /replace="C:\Program Files" /data /nopromptas mentioned before.In a batch file %% resolves to %It appears that the problem with that method is that it was automatically resolves the string to C:\Program Files instead of leaving it in %ProgramFiles% format. Link to comment Share on other sites More sharing options...
ZoSTeR Posted May 6, 2004 Share Posted May 6, 2004 Ok I solved the RRC not working... IT didn't work because it aumatically converted %ProgramFiles% into C:\ProgramFiles.. so that made the command: RRC Search /data /text="C:\Program Files" /replace="C:\Program Files" /noprompt..Notice the % instead of %%.The batch did what it was supposed to do.Once again:Dummy1.batecho %ProgramFiles%will resolve to: C:\Program Filesor whatever the variable containsDummy2.batecho %%ProgramFiles%%will resolve to: %ProgramFiles% Link to comment Share on other sites More sharing options...
GuuZ Posted May 6, 2004 Author Share Posted May 6, 2004 C:\>echo %%ProgramFiles%%%C:\Program Files% C:\> Link to comment Share on other sites More sharing options...
alienkiller Posted May 6, 2004 Share Posted May 6, 2004 im inteerested in this too.. Link to comment Share on other sites More sharing options...
johann83 Posted May 6, 2004 Share Posted May 6, 2004 C:\>echo %%ProgramFiles%%%C:\Program Files%C:\>I don't think you completely understood what he was saying... The double percents (%%) only work in a batch file. If you do as he suggested and put the following code in a batch file and run it, you will get what you expect (which is %ProgramFiles%).echo %%ProgramFiles%%I'm still not certain this will give the desired result using the RRC program, but I just thought I'd clear this up.Matt Link to comment Share on other sites More sharing options...
GuuZ Posted May 7, 2004 Author Share Posted May 7, 2004 Ah I see Now I understand.. thanx Will try this when I get home from work Link to comment Share on other sites More sharing options...
alienkiller Posted May 8, 2004 Share Posted May 8, 2004 any results from this?? Link to comment Share on other sites More sharing options...
GuuZ Posted May 10, 2004 Author Share Posted May 10, 2004 still busy... trying and solving Link to comment Share on other sites More sharing options...
GuuZ Posted May 10, 2004 Author Share Posted May 10, 2004 works now but after installing I changed my programfilespath back to c:\program files.... works fine.But there's still one thing.. All the shortcuts that should direct to D:\Applications direct to C:\Progam Files now ;(... Should I just replace those shortcuts with a batch file? Link to comment Share on other sites More sharing options...
GuuZ Posted May 12, 2004 Author Share Posted May 12, 2004 ^^no one?^^ 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