Ben.Hahlen Posted May 6, 2004 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
GuuZ Posted May 6, 2004 Author Posted May 6, 2004 Well I'll give it a shot tonight. Thanx for your reply
ZoSTeR Posted May 6, 2004 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 %
RyanVM Posted May 6, 2004 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.
ZoSTeR Posted May 6, 2004 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%
johann83 Posted May 6, 2004 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
GuuZ Posted May 7, 2004 Author Posted May 7, 2004 Ah I see Now I understand.. thanx Will try this when I get home from work
GuuZ Posted May 10, 2004 Author 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?
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