Jump to content

Apps not in Program Files


Recommended Posts

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" /qn

Might 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 /r

Wise:

?

Found it here

This works with most of the apps for me :)

Good luck,

Greetz,

Ben

Link to comment
Share on other sites


This won't work:

SET PF1=%ProgramSET PF2=Files%RRC Search /data /text="%%PF1%%PF2%%" /replace="C:\Program Files" /noprompt

Just use:

RRC search /text="%%ProgramFiles%%" /replace="C:\Program Files" /data /noprompt

as mentioned before.

In a batch file %% resolves to %

Link to comment
Share on other sites

This won't work:
SET PF1=%Program

SET PF2=Files%

RRC Search /data /text="%%PF1%%PF2%%" /replace="C:\Program Files" /noprompt

Just use:

RRC search /text="%%ProgramFiles%%" /replace="C:\Program Files" /data /noprompt

as 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

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.bat

echo %ProgramFiles%

will resolve to:

C:\Program Files

or whatever the variable contains

Dummy2.bat

echo %%ProgramFiles%%

will resolve to:

%ProgramFiles%

Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...